如何识别应用程序崩溃的原因(Apple)
我目前正在通过TestFlight测试我的应用程序,并报告了崩溃的报告。我一直在查看代码,并试图确定坠机发生的位置以及原因是什么,但我被卡住了。
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x180973d0c __exceptionPreprocess + 216 (NSException.m:200)
1 libobjc.A.dylib 0x198164ee4 objc_exception_throw + 56 (objc-exception.mm:565)
2 CoreFoundation 0x180a44750 -[NSObject(NSObject) doesNotRecognizeSelector:] + 140 (NSObject.m:147)
3 UIKitCore 0x183ac7f34 -[UIResponder doesNotRecognizeSelector:] + 268 (UIResponder.m:685)
4 CoreFoundation 0x18090d60c ___forwarding___ + 1472 (NSForwarding.m:3577)
5 CoreFoundation 0x18090c81c _CF_forwarding_prep_0 + 92
6 UIKitCore 0x1830b20b4 -[UIApplication sendAction:to:from:forEvent:] + 96 (UIApplication.m:5378)
7 UIKitCore 0x1831d120c -[UIControl sendAction:to:forEvent:] + 124 (UIControl.m:871)
8 UIKitCore 0x182f6743c -[UIControl _sendActionsForEvents:withEvent:] + 352 (UIControl.m:942)
9 UIKitCore 0x182cafd20 -[UIControl touchesBegan:withEvent:] + 408 (UIControl.m:543)
10 UIKitCore 0x182d6ded8 _UIGestureEnvironmentUpdate + 6708 (UIGestureEnvironment.m:0)
11 UIKitCore 0x182d9ee74 -[UIGestureEnvironment _updateForEvent:window:] + 736 (UIGestureEnvironment.m:1332)
12 UIKitCore 0x182dab978 -[UIWindow sendEvent:] + 4344 (UIWindow.m:3272)
13 UIKitCore 0x182f4c504 -[UIApplication sendEvent:] + 892 (UIApplication.m:11975)
14 UIKitCore 0x182d80974 __dispatchPreprocessedEventFromEventQueue + 8148 (UIEventDispatcher.m:2294)
15 UIKitCore 0x182d75838 __processEventQueue + 6544 (UIEventDispatcher.m:2600)
16 UIKitCore 0x182d7ac54 __eventFetcherSourceCallback + 168 (UIEventDispatcher.m:2672)
17 CoreFoundation 0x1809944ec __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1972)
18 CoreFoundation 0x1809a461c __CFRunLoopDoSource0 + 204 (CFRunLoop.c:2016)
19 CoreFoundation 0x1808e6824 __CFRunLoopDoSources0 + 256 (CFRunLoop.c:2053)
20 CoreFoundation 0x1808ebef8 __CFRunLoopRun + 768 (CFRunLoop.c:2951)
21 CoreFoundation 0x1808ff240 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
22 GraphicsServices 0x1a13cf988 GSEventRunModal + 160 (GSEvent.c:2200)
23 UIKitCore 0x1830ff41c -[UIApplication _run] + 1080 (UIApplication.m:3511)
24 UIKitCore 0x182e98b88 UIApplicationMain + 336 (UIApplication.m:5064)
25 Here 0x100d88afc main + 68 (SelectionViewController.swift:14)
26 dyld 0x100fac3d0 start + 444 (dyldMain.cpp:879)
我已经查看了各种资源,但仍然卡住了:
我已经研究了执行类型( https://developer.apple.com/documentation/xcode/addressing-language-exception-crashes-crashes )
- /current/#/dev612e6956“ rel =“ nofollow noreferrer”> https://help.apple.com/instruments/mac/current/current/#/dev612e6956 )
任何建议或帮助都将不胜感激 - 谢谢。
I am currently testing my app via TestFlight and have had a report of a crash. I've been looking at the code and trying to determine where the crash occurred and what the cause is but I'm stuck.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x180973d0c __exceptionPreprocess + 216 (NSException.m:200)
1 libobjc.A.dylib 0x198164ee4 objc_exception_throw + 56 (objc-exception.mm:565)
2 CoreFoundation 0x180a44750 -[NSObject(NSObject) doesNotRecognizeSelector:] + 140 (NSObject.m:147)
3 UIKitCore 0x183ac7f34 -[UIResponder doesNotRecognizeSelector:] + 268 (UIResponder.m:685)
4 CoreFoundation 0x18090d60c ___forwarding___ + 1472 (NSForwarding.m:3577)
5 CoreFoundation 0x18090c81c _CF_forwarding_prep_0 + 92
6 UIKitCore 0x1830b20b4 -[UIApplication sendAction:to:from:forEvent:] + 96 (UIApplication.m:5378)
7 UIKitCore 0x1831d120c -[UIControl sendAction:to:forEvent:] + 124 (UIControl.m:871)
8 UIKitCore 0x182f6743c -[UIControl _sendActionsForEvents:withEvent:] + 352 (UIControl.m:942)
9 UIKitCore 0x182cafd20 -[UIControl touchesBegan:withEvent:] + 408 (UIControl.m:543)
10 UIKitCore 0x182d6ded8 _UIGestureEnvironmentUpdate + 6708 (UIGestureEnvironment.m:0)
11 UIKitCore 0x182d9ee74 -[UIGestureEnvironment _updateForEvent:window:] + 736 (UIGestureEnvironment.m:1332)
12 UIKitCore 0x182dab978 -[UIWindow sendEvent:] + 4344 (UIWindow.m:3272)
13 UIKitCore 0x182f4c504 -[UIApplication sendEvent:] + 892 (UIApplication.m:11975)
14 UIKitCore 0x182d80974 __dispatchPreprocessedEventFromEventQueue + 8148 (UIEventDispatcher.m:2294)
15 UIKitCore 0x182d75838 __processEventQueue + 6544 (UIEventDispatcher.m:2600)
16 UIKitCore 0x182d7ac54 __eventFetcherSourceCallback + 168 (UIEventDispatcher.m:2672)
17 CoreFoundation 0x1809944ec __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1972)
18 CoreFoundation 0x1809a461c __CFRunLoopDoSource0 + 204 (CFRunLoop.c:2016)
19 CoreFoundation 0x1808e6824 __CFRunLoopDoSources0 + 256 (CFRunLoop.c:2053)
20 CoreFoundation 0x1808ebef8 __CFRunLoopRun + 768 (CFRunLoop.c:2951)
21 CoreFoundation 0x1808ff240 CFRunLoopRunSpecific + 572 (CFRunLoop.c:3268)
22 GraphicsServices 0x1a13cf988 GSEventRunModal + 160 (GSEvent.c:2200)
23 UIKitCore 0x1830ff41c -[UIApplication _run] + 1080 (UIApplication.m:3511)
24 UIKitCore 0x182e98b88 UIApplicationMain + 336 (UIApplication.m:5064)
25 Here 0x100d88afc main + 68 (SelectionViewController.swift:14)
26 dyld 0x100fac3d0 start + 444 (dyldMain.cpp:879)
I have looked at various resources but I'm still stuck:
I've looked into the execution type (https://developer.apple.com/documentation/xcode/addressing-language-exception-crashes)
I have looked into Zombies but nothing is showing (https://help.apple.com/instruments/mac/current/#/dev612e6956)
Any advice or help would be greatly appreciated - thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论