iphone os 4 应用程序无法在 ipod touch os 3+ 上运行

发布于 2024-09-09 17:40:30 字数 480 浏览 9 评论 0原文

在我在 IOS4 上编译我的应用程序后,我的应用程序停止在 iPod Touch 上运行。它是第一代 iPod touch,搭载 OS 3。所以我假设 OS4 的应用程序无法在旧的 iPodtouch 上运行?但应用商店并没有引起任何争议,甚至还列出了 iPod touch 的下载。有什么想法吗?

基础 SDK 是 iphone 设备 4,开发目标是 iphone os 3。我在带有 os 3 的 iphone 上工作,但是当我在带有 os 3.1.3 的 iPod touch 上尝试它时,它崩溃了。我收到此错误 mi_cmd_stack_list_frames: 堆栈中没有足够的帧。我在 main.m 上添加了一个中断,应用程序甚至在进入 main.m 中的第一行之前就崩溃了。调试正常,当我尝试在设备上运行它时,它崩溃了。它在模拟器中运行良好。

另一件事,这是一个通用应用程序,我正在使用 uisplitview 控制器..所以我认为当它在 os 3 上运行时它会崩溃..有什么办法可以解决这个问题吗?

after i complied my app on IOS4 my app stopped working on ipod touches. it is a first generation ipod touch, with os 3 on it. So i assume application for OS4 are not working on old ipodtouches ? but there was no warring from the app store and it is even listed for download for ipod touch too. any ideas ?

base SDK is iphone device 4 and development target is iphone os 3. i works on iphone's with os 3 but when i try it on my ipod touch with os 3.1.3 it crashed. and i am getting this error mi_cmd_stack_list_frames: Not enough frames in stack. I added a break on main.m and the app crashes even before getting to first line in main.m .. the debug is ok it crashes when i try to run it on the device. it works fine in simulator.

One more thing, this is a universal app, and i am using uisplitview controller.. so i think when it runs on os 3 it breaks.. is there anyway to fix this ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忘你却要生生世世 2024-09-16 17:40:30

为 iOS 4.0 构建的应用程序无法在 3.0 的设备上运行。请注意,在 App Store 中,“要求:”下有一个部分显示“需要 iOS 4.0 或更高版本”。在这样的情况下。

Apps built for iOS 4.0 will not run on devices with 3.0. Note that in the App Store, there is a section under "Requirements:" that says "Requires iOS 4.0 or later." in cases like this.

冬天旳寂寞 2024-09-16 17:40:30

好的!!!我假设我的 main.m 会完成这项工作并指向正确的应用程序委托,但显然我仍然需要检查这些类是否存在。所以这就是幸福结局的答案

Class splitVCClass = NSClassFromString(@"UISplitViewController");
if (splitVCClass)
{
        //UISplitViewController* mySplitViewController = [[splitVCClass alloc] init];
    UISplitViewController* _splitViewController = [[splitVCClass alloc]init];
    [_splitViewController setViewControllers:[NSArray arrayWithObjects:_rootNavigationController,_navigationController,nil]];
}

Ok!!! I assumed my main.m will do the job and point the right appdelegate but apparently i still needed to check if the classes exist. so here is the answer

Class splitVCClass = NSClassFromString(@"UISplitViewController");
if (splitVCClass)
{
        //UISplitViewController* mySplitViewController = [[splitVCClass alloc] init];
    UISplitViewController* _splitViewController = [[splitVCClass alloc]init];
    [_splitViewController setViewControllers:[NSArray arrayWithObjects:_rootNavigationController,_navigationController,nil]];
}

happy ending.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文