我開發了iPhone應用程序,它似乎在模擬器5.0上正常工作。但是,當我試圖在真實設備上測試它時,iPhone w/ios 5無法正常工作。 該應用程序啓動,但我看到的只是一個黑屏。應用程序在模擬器上工作,但不在iPhone上
下面是我在設備日誌中找到的崩潰日誌 對不起,我對此很新。我不確定這些是否是符號化的。 (好像他們是誰?)
Incident Identifier: B2601015-4CBF-478D-B9C3-2D2B4BEED892 CrashReporter Key: 9c71d7c2ed64b2862a0a6d90e3d4ce839868a03c Hardware Model: iPhone4,1 Process: memoryChallenger [21037] Path: /var/mobile/Applications/C0981716-8CDF-4816-8E94- 261CD8F164FD/memoryChallenger.app/memoryChallenger Identifier: memoryChallenger Version: ??? (???) Code Type: ARM (Native) Parent Process: launchd [1] Date/Time: 2012-01-30 21:54:18.753 -0800 OS Version: iPhone OS 5.0.1 (9A405) Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000 Crashed Thread: 0 Last Exception Backtrace: 0 CoreFoundation 0x37ecb8bf __exceptionPreprocess + 163 1 libobjc.A.dylib 0x319b11e5 objc_exception_throw + 33 2 CoreFoundation 0x37ecb7b9 +[NSException raise:format:] + 1 3 CoreFoundation 0x37ecb7db +[NSException raise:format:] + 35 4 UIKit 0x354f7747 -[UINib instantiateWithOwner:options:] + 1567 5 UIKit 0x354f8bb9 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 137 6 UIKit 0x35431a45 -[UIApplication _loadMainNibFileNamed:bundle:] + 37 7 UIKit 0x352bb227 -[UIApplication _loadMainInterfaceFile] + 223 8 UIKit 0x352b5313 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 227 9 UIKit 0x35283921 -[UIApplication handleEvent:withNewEvent:] + 1017 10 UIKit 0x352833bf -[UIApplication sendEvent:] + 55 11 UIKit 0x35282d2d _UIApplicationHandleEvent + 5809 12 GraphicsServices 0x379a0df3 PurpleEventCallback + 883 13 CoreFoundation 0x37e9f553 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39 14 CoreFoundation 0x37e9f4f5 __CFRunLoopDoSource1 + 141 15 CoreFoundation 0x37e9e343 __CFRunLoopRun + 1371 16 CoreFoundation 0x37e214dd CFRunLoopRunSpecific + 301 17 CoreFoundation 0x37e213a5 CFRunLoopRunInMode + 105 18 UIKit 0x352b4457 -[UIApplication _run] + 551 19 UIKit 0x352b1743 UIApplicationMain + 1091 20 memoryChallenger 0x000050d9 main (main.m:14) 21 memoryChallenger 0x000027ec start + 40 Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x3376532c __pthread_kill + 8 1 libsystem_c.dylib 0x36331f54 pthread_kill + 48 2 libsystem_c.dylib 0x3632afe4 abort + 88 3 libc++abi.dylib 0x37e10f64 abort_message + 40 4 libc++abi.dylib 0x37e0e346 _ZL17default_terminatev + 18 5 libobjc.A.dylib 0x319b12dc _objc_terminate + 140 6 libc++abi.dylib 0x37e0e3be _ZL19safe_handler_callerPFvvE + 70 7 libc++abi.dylib 0x37e0e44a std::terminate() + 14 8 libc++abi.dylib 0x37e0f81e __cxa_rethrow + 82 9 libobjc.A.dylib 0x319b122e objc_exception_rethrow + 6 10 CoreFoundation 0x37e2153e CFRunLoopRunSpecific + 398 11 CoreFoundation 0x37e2139e CFRunLoopRunInMode + 98 12 UIKit 0x352b4450 -[UIApplication _run] + 544 13 UIKit 0x352b173c UIApplicationMain + 1084 14 memoryChallenger 0x000050d2 main (main.m:14) 15 memoryChallenger 0x000027e4 start + 32 Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread 1: 0 libsystem_kernel.dylib 0x337553b4 kevent + 24 1 libdispatch.dylib 0x37b89f74 _dispatch_mgr_invoke + 708 2 libdispatch.dylib 0x37b89c92 _dispatch_mgr_thread + 30 Thread 2: 0 libsystem_kernel.dylib 0x33765cd4 __workq_kernreturn + 8 1 libsystem_c.dylib 0x362ee30a _pthread_wqthread + 610 2 libsystem_c.dylib 0x362ee09c start_wqthread + 0 Thread 3: 0 libsystem_kernel.dylib 0x33765cd4 __workq_kernreturn + 8 1 libsystem_c.dylib 0x362ee30a _pthread_wqthread + 610 2 libsystem_c.dylib 0x362ee09c start_wqthread + 0 Thread 4 name: WebThread Thread 4: 0 libsystem_kernel.dylib 0x33755010 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x33755206 mach_msg + 50 2 CoreFoundation 0x37e9f41c __CFRunLoopServiceMachPort + 120 3 CoreFoundation 0x37e9e154 __CFRunLoopRun + 876 4 CoreFoundation 0x37e214d6 CFRunLoopRunSpecific + 294 5 CoreFoundation 0x37e2139e CFRunLoopRunInMode + 98 6 WebCore 0x326f2128 _ZL12RunWebThreadPv + 396 7 libsystem_c.dylib 0x362f3c16 _pthread_start + 314 8 libsystem_c.dylib 0x362f3ad0 thread_start + 0 Thread 0 crashed with ARM Thread State: r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000 r4: 0x00000006 r5: 0x3f31dce8 r6: 0x00000002 r7: 0x2fdff864 r8: 0x3f14edec r9: 0x00000000 r10: 0x00188cc0 r11: 0x00185b40 ip: 0x00000148 sp: 0x2fdff858 lr: 0x36331f5b pc: 0x3376532c cpsr: 0x00000010
好像這條線在這裏就是我在尋找..
20 memoryChallenger 0x000050d9 main (main.m:14)
,它是這一行主營:
int retVal = UIApplicationMain(argc, argv, nil, nil);
但它沒有讓我到任何地方..
有人可以引導我到正確的方向嗎? 謝謝!
修復了問題!謝謝Mugunth! :D – 2012-02-01 06:58:43