应用程序在iPhone / iPod上工作正常,但在iPad(甚至是模拟器)上崩溃

#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
在应用程序中,主窗口是一个导航控制器,它在iPod / iPhone上运行良好。它甚至可以在iTunes商店中使用。但是,当我将应用程序作为iPad模拟器启动时,它甚至在启动视图之前就会与SIGABRT崩溃。 这似乎是我的xib文件的问题,我验证了参数,但找不到原因。 SDK:4.1 iPad模拟器:3.2     
已邀请:
例如,从Nib(例如iAd横幅)加载iOS 4特定项会产生此类错误。 您可以使用运行iOS 4.2的iPad模拟器升级到最新版本的Xcode。然后你的最终申请将需要iOS 4或更高版本。 或者,您可以制作iOS 3.2兼容的Nib,并在低于iOS 4的情况下运行时加载该版本。您必须编写一些代码以在运行时检查,然后选择适当的Nib。     

要回复问题请先登录注册