出现符号后,如何从App Store崩溃日志中查找根本原因?

时间:2018-09-29 12:14:01

标签: ios objective-c crash

从App Store收到崩溃日志时,我遇到了麻烦。崩溃日志显示EXC_CORPSE_NOTIFY崩溃。

符号化崩溃日志文件后,我不知道如何进一步进行故障排除。我一直在尝试在自己的设备上进行测试,但没有遇到任何崩溃(均为IOS 12)。

以下是我的崩溃日志:-

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x000000020055d104 __pthread_kill + 8
1   libsystem_pthread.dylib         0x00000002005d80e0 pthread_kill$VARIANT$mp + 380
2   libsystem_c.dylib               0x00000002004b4d78 abort + 140
3   libc++abi.dylib                 0x00000001ffb7cf78 __cxa_bad_cast + 0
4   libc++abi.dylib                 0x00000001ffb7d120 default_unexpected_handler+ 8480 () + 0
5   libobjc.A.dylib                 0x00000001ffb95e48 _objc_terminate+ 28232 () + 124
6   libc++abi.dylib                 0x00000001ffb890fc std::__terminate(void (*)+ 57596 ()) + 16
7   libc++abi.dylib                 0x00000001ffb88cec __cxa_rethrow + 144
8   libobjc.A.dylib                 0x00000001ffb95c10 objc_exception_rethrow + 44
9   CoreFoundation                  0x0000000200950624 CFRunLoopRunSpecific + 544
10  GraphicsServices                0x0000000202bc4584 GSEventRunModal + 100
11  UIKitCore                       0x000000022cfcb558 UIApplicationMain + 212
12  MyAPP                           0x0000000100510584 main + 1131908 (main.m:13)
13  libdyld.dylib                   0x0000000200410b94 start + 4

已编辑

Last Exception Backtrace:
0   CoreFoundation                  0x2009c7ef8 __exceptionPreprocess + 228
1   libobjc.A.dylib                 0x1ffb95a40 objc_exception_throw + 55
2   CoreFoundation                  0x2008dfdcc -[NSException raise] + 11
3   Foundation                      0x2013d3e54 -[NSObject+ 622164 (NSKeyValueCoding) valueForUndefinedKey:] + 247
4   Foundation                      0x201347650 -[NSObject+ 46672 (NSKeyValueCoding) valueForKey:] + 267
5   Jasiez                          0x1004114f8 -[Map_ViewController viewDidLoad] + 87288 (Map_ViewController.m:303)
6   UIKitCore                       0x22d68de4c -[UIViewController loadViewIfRequired] + 999
7   UIKitCore                       0x22d28f750 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 75
8   UIKitCore                       0x22d28fa58 -[UINavigationController _startTransition:fromViewController:toViewController:] + 171
9   UIKitCore                       0x22d2909e8 -[UINavigationController _startDeferredTransitionIfNeeded:] + 1183
10  UIKitCore                       0x22d291ce8 -[UINavigationController __viewWillLayoutSubviews] + 163
11  UIKitCore                       0x22d223e30 -[UILayoutContainerView layoutSubviews] + 223
12  UIKitCore                       0x22d679998 -[UIView+ 10570136 (CALayerDelegate) layoutSublayersOfLayer:] + 1379
13  QuartzCore                      0x204fa9a34 -[CALayer layoutSublayers] + 183
14  QuartzCore                      0x204fae9c4 CA::Layer::layout_if_needed+ 1317316 (CA::Transaction*) + 323
15  QuartzCore                      0x204f0d9d4 CA::Context::commit_transaction+ 657876 (CA::Transaction*) + 339
16  QuartzCore                      0x204f3c2f4 CA::Transaction::commit+ 848628 () + 607
17  UIKitCore                       0x22cfe5cfc __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 139
18  CoreFoundation                  0x200956408 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 19
19  CoreFoundation                  0x200955d08 __CFRunLoopDoBlocks + 271
20  CoreFoundation                  0x200950cfc __CFRunLoopRun + 1059
21  CoreFoundation                  0x2009505b8 CFRunLoopRunSpecific + 435
22  GraphicsServices                0x202bc4584 GSEventRunModal + 99
23  UIKitCore                       0x22cfcb558 UIApplicationMain + 211
24  Jasiez                          0x100510584 main + 1131908 (main.m:13)
25  libdyld.dylib                   0x200410b94 start + 3

请帮助,谢谢!

1 个答案:

答案 0 :(得分:2)

您可能想阅读本Tech Note

崩溃日志中的堆栈跟踪可以为您提供有关应用程序在发生之前正在做什么的线索。
就您而言:

Last Exception Backtrace:
0   CoreFoundation                  0x2009c7ef8 __exceptionPreprocess + 228
1   libobjc.A.dylib                 0x1ffb95a40 objc_exception_throw + 55
2   CoreFoundation                  0x2008dfdcc -[NSException raise] + 11
3   Foundation                      0x2013d3e54 -[NSObject+ 622164 (NSKeyValueCoding) valueForUndefinedKey:] + 247
4   Foundation                      0x201347650 -[NSObject+ 46672 (NSKeyValueCoding) valueForKey:] + 267
5   Jasiez                          0x1004114f8 -[Map_ViewController viewDidLoad] + 87288 (Map_ViewController.m:303)

看起来您在[Map_ViewController viewDidLoad]方法中调用了未知属性。 As Apple Documentation states

  

由valueForKey调用:未找到与a对应的属性时   给定密钥。

那些使我想到了Outlet连接的问题,但是我可以确定没有更多的上下文。