我开发了和iPhone应用程序,它似乎在模拟器5.0上正常工作。然而,当我试图在真实设备上测试它时,i / OS 5,它不起作用。 该应用已推出,但我看到的只是一个黑屏。
这是我在设备日志中找到的崩溃日志 对不起,我对此很新......我不确定这些是否符号化。 (好像他们是?)
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);
但它没有让我到任何地方..
有人可以指导我走向正确的方向吗? 谢谢!
答案 0 :(得分:3)
从这一行开始,
-[UINib instantiateWithOwner:options:] + 1567
看起来您的应用程序的XIB文件未正确复制到设备上。 做一个干净的安装。
答案 1 :(得分:1)
对于我的情况,这是由于iOS 5找不到XIB文件(即使它被复制到应用程序包中)。
这是由于使用Base Internationalization,仅在iOS 6中支持。
奇怪的是,使用iOS 5在Simulator上运行会起作用。这就是一个错误。
我通过这次愚蠢的启动崩溃发布我的应用程序后详细介绍了我的经验:http://samwize.com/2012/11/22/warning-do-not-use-base-internationalization-in-ios-5/
答案 2 :(得分:0)
在IB中,xib的目标会员 - >当前目标未选中
发生这种情况时的另一种情况。