为什么crashlytics没有在swift中显示确切的崩溃行号?它只显示方法名称

时间:2017-10-24 14:03:21

标签: ios swift crashlytics

为什么crashlytics没有在swift中显示确切的崩溃行号?它只显示方法名称。有没有其他方法来确定确切的行号。 IBAction方法发生崩溃。 实际上,我可以通过查看强制解包的代码但无法手动重现场景来识别崩溃。

目标C和swift

编写的应用程序

Crashlytics版本 - 3.4.0

崩溃日志如下:

    #0. Crashed: com.apple.main-thread
0  AppName                 0x100d246c4 specialized CrashingViewController.ButtonClicked(sender : UIButton) -> () + 4342810308
1  AppName                0x1008c7208 @objc CrashingViewController.ButtonClicked(sender : UIButton) -> () + 4338233864
2  AppName                 0x1006192f8 @objc CrashingViewController.ButtonClicked(sender : UIButton) -> () + 4335424248
3  UIKit                          0x18bb5c20c -[UIApplication sendAction:to:from:forEvent:] + 96
4  UIKit                          0x18bb5c18c -[UIControl sendAction:to:forEvent:] + 80
5  UIKit                          0x18bb46f4c -[UIControl _sendActionsForEvents:withEvent:] + 440
6  UIKit                          0x18bb5ba80 -[UIControl touchesEnded:withEvent:] + 576
7  UIKit                          0x18bb5b5a0 -[UIWindow _sendTouchesForEvent:] + 2544
8  UIKit                          0x18bb56a70 -[UIWindow sendEvent:] + 3208
9  UIKit                          0x18bb28078 -[UIApplication sendEvent:] + 340
10 AppName                 0x1009c18d4 -[BCApplication sendEvent:] + 4339259604
11 UIKit                          0x18c467f98 __dispatchPreprocessedEventFromEventQueue + 2364
12 UIKit                          0x18c46a408 __handleEventQueueInternal + 4760
13 UIKit                          0x18c463574 __handleHIDEventFetcherDrain + 152
14 CoreFoundation                 0x1826c0358 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
15 CoreFoundation                 0x1826c02d8 __CFRunLoopDoSource0 + 88
16 CoreFoundation                 0x1826bfb60 __CFRunLoopDoSources0 + 204
17 CoreFoundation                 0x1826bd738 __CFRunLoopRun + 1048
18 CoreFoundation                 0x1825de2d8 CFRunLoopRunSpecific + 436
19 GraphicsServices               0x18446ff84 GSEventRunModal + 100
20 UIKit                          0x18bb8b880 UIApplicationMain + 208
21 AppName                 0x100d64f10 main (main.m:6)
22 libdyld.dylib                  0x18210256c start + 4

0 个答案:

没有答案