簡體   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

在應用程序中,主窗口是導航控制器,在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。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM