1
我的應用程序在我的設備上工作正常,但我添加了功能,並且在我的設備上進行測試時(iPhone 4 iOs 4.2.1),它僅在啓動時崩潰;但它在模擬器上正常工作。 我已經找了一個回答我的問題在網絡和這個論壇上,但我不覺得......設備上的應用程序崩潰,但在iPhone模擬器上正常工作
這裏是崩潰報告:
Incident Identifier: 7204BFE3-E826-438E-8B3E-78301DE6AA99 CrashReporter Key: 06d77d7d3219de2a9a56c2fa0510b92310e5da62 Hardware Model: iPhone3,1 Process: ColorMixer [1074] Path: /var/mobile/Applications/AD6EC67E-FCBE-4D02-8EE3-06153233CA2E/ColorMixer.app/ColorMixer Identifier: ColorMixer Version: ??? (???) Code Type: ARM (Native) Parent Process: punchd [1] Date/Time: 2011-05-20 00:02:28.738 +0200 OS Version: iPhone OS 4.2.1 (8C148) Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000 Crashed Thread: 0 Thread 0 Crashed: 0 libSystem.B.dylib 0x33bd52d4 __kill + 8 1 libSystem.B.dylib 0x33bd52c4 kill + 4 2 libSystem.B.dylib 0x33bd52b6 raise + 10 3 libSystem.B.dylib 0x33be9d72 abort + 50 4 libstdc++.6.dylib 0x31bdba20 __gnu_cxx::__verbose_terminate_handler() + 376 5 libobjc.A.dylib 0x3347c594 _objc_terminate + 104 6 libstdc++.6.dylib 0x31bd9df2 __cxxabiv1::__terminate(void (*)()) + 46 7 libstdc++.6.dylib 0x31bd9e46 std::terminate() + 10 8 libstdc++.6.dylib 0x31bd9f16 __cxa_throw + 78 9 libobjc.A.dylib 0x3347b4c4 objc_exception_throw + 64 10 CoreFoundation 0x33ac07c2 +[NSException raise:format:arguments:] + 62 11 CoreFoundation 0x33ac07fc +[NSException raise:format:] + 28 12 UIKit 0x3224b77c -[UINib instantiateWithOwner:options:] + 1104 13 UIKit 0x3224cb32 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 86 14 UIKit 0x3209e86a -[UIApplication _loadMainNibFile] + 90 15 Backgrounder.dylib 0x00090b4c 0x8f000 + 6988 16 UIKit 0x3209a1f6 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 174 17 UIKit 0x32066484 -[UIApplication handleEvent:withNewEvent:] + 1108 18 UIKit 0x32065ec2 -[UIApplication sendEvent:] + 38 19 UIKit 0x32065900 _UIApplicationHandleEvent + 5084 20 GraphicsServices 0x33b0eefc PurpleEventCallback + 660 21 CoreFoundation 0x33a556f8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20 22 CoreFoundation 0x33a556bc __CFRunLoopDoSource1 + 160 23 CoreFoundation 0x33a47f76 __CFRunLoopRun + 514 24 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224 25 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52 26 UIKit 0x32099302 -[UIApplication _run] + 374 27 UIKit 0x32096e8c UIApplicationMain + 664 28 ColorMixer 0x00002c70 main (main.m:23) 29 ColorMixer 0x00002c18 start + 32 Thread 1: 0 libSystem.B.dylib 0x33b89974 kevent + 24 1 libSystem.B.dylib 0x33c33704 _dispatch_mgr_invoke + 88 2 libSystem.B.dylib 0x33c33174 _dispatch_queue_invoke + 96 3 libSystem.B.dylib 0x33c32b98 _dispatch_worker_thread2 + 120 4 libSystem.B.dylib 0x33bd724a _pthread_wqthread + 258 5 libSystem.B.dylib 0x33bcf970 start_wqthread + 0 Thread 2: 0 libSystem.B.dylib 0x33bd79e0 __workq_kernreturn + 8 1 libSystem.B.dylib 0x33bd7364 _pthread_wqthread + 540 2 libSystem.B.dylib 0x33bcf970 start_wqthread + 0 Thread 3: 0 libSystem.B.dylib 0x33b5d268 mach_msg_trap + 20 1 libSystem.B.dylib 0x33b5f354 mach_msg + 44 2 CoreFoundation 0x33a48648 __CFRunLoopServiceMachPort + 88 3 CoreFoundation 0x33a47ed2 __CFRunLoopRun + 350 4 CoreFoundation 0x33a47c80 CFRunLoopRunSpecific + 224 5 CoreFoundation 0x33a47b88 CFRunLoopRunInMode + 52 6 WebCore 0x304df124 RunWebThread(void*) + 332 7 libSystem.B.dylib 0x33bd6886 _pthread_start + 242 8 libSystem.B.dylib 0x33bcba88 thread_start + 0 Thread 0 crashed with ARM Thread State: r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x3eaf12e8 r4: 0x00000006 r5: 0x31bd9989 r6: 0x001667ac r7: 0x2fdfe024 r8: 0x3ea4f538 r9: 0x00000065 r10: 0x0015c6b0 r11: 0x00000001 ip: 0x00000025 sp: 0x2fdfe024 lr: 0x33bd52cb pc: 0x33bd52d4 cpsr: 0x00080010
我不知道我有什麼要做的,我沒有看到我的代碼的參考... 感謝您的未來幫助。
這不是在你的代碼,它在你的主NIB。某處發生異常。一種可能性是你有一個視圖控制器應該從另一個NIB加載,但是這個NIB不存在。它仍然可以在模擬器中工作,因爲如果舊資源不再使用,它們不會被刪除。 – ughoavgfhw 2011-05-19 22:31:46
嘗試重置模擬器中菜單選項的內容和設置。你會知道這個問題,因爲ughoavgfhw評論。 – Hanuman 2011-05-19 22:44:47
在再次運行之前,您可能會嘗試將設備從設備上刪除。 – Joe 2011-05-20 01:10:41