简体   繁体   English

应用程序在iPhone / iPod上运行良好,但在iPad(甚至模拟器)上崩溃

[英]App works fine on iPhone/ iPod but crashes on iPad (even simulator)

#5  0x0298261c in _objc_terminate
#6  0x9532515a in __cxxabiv1::__terminate
#7  0x9532519a in std::terminate
#8  0x95325298 in __cxa_throw
#9  0x029823d8 in objc_exception_throw
#10 0x028677e1 in -[NSException raise]
#11 0x0005e0e0 in _NSSetUsingKeyValueSetter
#12 0x0005df1e in -[NSObject(NSKeyValueCoding) setValue:forKey:]
#13 0x0031e1e1 in -[UIView(CALayerDelegate) setValue:forKey:]
#14 0x004fc09f in -[UIRuntimeOutletConnection connect]
#15 0x027eac75 in -[NSArray makeObjectsPerformSelector:]
#16 0x004faae4 in -[UINib instantiateWithOptions:owner:loadingResourcesFromBundle:]
#17 0x004fcad9 in -[NSBundle(NSBundleAdditions) loadNibNamed:owner:options:]
#18 0x002f3272 in -[UIApplication _loadMainNibFile]
#19 0x002f4754 in -[UIApplication _runWithURL:payload:launchOrientation:]
#20 0x002fad3e in -[UIApplication handleEvent:withNewEvent:]
#21 0x002f64f7 in -[UIApplication sendEvent:]
#22 0x002fe1d8 in _UIApplicationHandleEvent
#23 0x030fb17c in PurpleEventCallback
#24 0x027b789c in CFRunLoopRunSpecific
#25 0x027b68a8 in CFRunLoopRunInMode
#26 0x002f4221 in -[UIApplication _run]
#27 0x002fc372 in UIApplicationMain

In the App, the Main Window is a Navigation controller and it works fine on iPod/iPhone. 在应用程序中,主窗口是导航控制器,在iPod / iPhone上运行良好。 Its even live on the iTunes store. 它甚至可以在iTunes商店中找到。 But when i launch the app as an iPad simulator, it crashes with SIGABRT even before it can launch the view. 但是,当我将应用程序作为iPad模拟器启动时,它甚至在可以启动视图之前就与SIGABRT一起崩溃了。

It seems like a problem with my xib files and I verified the parameters but could not find the cause. 我的xib文件似乎有问题,我验证了参数,但找不到原因。

SDK: 4.1 iPad Simulator: 3.2 SDK:4.1 iPad模拟器:3.2

Loading an iOS 4 specific item from a Nib, an iAd banner for example, would give this type of error. 从Nib(例如iAd横幅)加载iOS 4特定项目会出现此类错误。

You can upgrade to the latest version of Xcode with the iPad simulator running iOS 4.2. 您可以使用运行iOS 4.2的iPad模拟器将Xcode升级到最新版本。 Then your final application would have to require iOS 4 or later. 然后,您的最终应用程序将需要iOS 4或更高版本。

Alternatively, you can make an iOS 3.2 compatible Nib, and load that version when running on less than iOS 4. You'll have to write some code to check at runtime and then choose the appropriate Nib. 另外,您可以制作一个与iOS 3.2兼容的Nib,并在低于iOS 4的版本上运行时加载该版本。您必须编写一些代码以在运行时进行检查,然后选择适当的Nib。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 应用程序在iPhone上崩溃,但在模拟器或iPad上没有崩溃? - App crashes on iPhone but not simulator or iPad? iPhone应用程序由于内存不足而崩溃,但在模拟器中可以正常使用 - iPhone App Crashes due to Low Memory but works fine in simulator iPhone应用程序由于内存不足而崩溃,但在模拟器中工作正常 - iphone app crashes due to Low Memory but works fine in simulator 应用程序在模拟器上崩溃,但在iPod 3.1.3上运行良好。 当应用程序在模拟器中运行时,超级类的init方法没有被击中(甚至在调试时) - App crashes on simulator but runs fine on iPod 3.1.3. The Super class' init method is not being hit (even at debug) when app runs in simulator 应用在iPhone6上启动时崩溃,在iPhone4s和iPad Retina和iPhone6模拟器上运行良好 - App crashes at launch on iPhone6, runs fine on iPhone4s and iPad Retina and iPhone6 simulator SQLite Code在iPhone模拟器上运行,在iPad上崩溃 - SQLite Code works on iPhone simulator, crashes on iPad UICollectionView布局在iPad上崩溃,但在iPhone上运行良好 - UICollectionView layout crashes on iPad, but works fine on iPhone UILabel甚至在iPhone 5c上具有内容压缩所需的优先级时也会截断字符串。 但可以在模拟器和iPad(设备)上正常工作 - UILabel truncating string even with required priority for content compression on iPhone 5c. But works fine in the simulator and iPad(device) removeFromSuperView 在 iPod 上正常,但在 iPhone 上崩溃 - removeFromSuperView fine on iPod but crashes on iPhone iPhone应用程序可以在iPad上正常运行,但不能在iPhone上运行 - iPhone app works fine on iPad, but not on iPhone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM