我已将 PLCrashReporter Framework 集成到我的iOS应用中,
请。参考:https://www.plcrashreporter.org/
完全正常。它生成崩溃日志,将其转换为protobuff格式,并以文本文件格式发送电子邮件(使用protobuff数据)。这里的问题是,解码的数据与设备崩溃日志不匹配,即它不显示回溯(存在于设备日志中)。
以下是设备崩溃日志,其中包含PLCrashReport中不存在的Last Exception Backtrace。
Last Exception Backtrace:
0 CoreFoundation 0x33b2329e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3b84b97a objc_exception_throw + 26
2 CoreFoundation 0x33a6de88 -[__NSArrayI objectAtIndex:] + 160
3 Project 0x000ffede -[MyQuestionsViewController viewDidLoad] (MyQuestionsViewController.m:44)
4 UIKit 0x3594a590 -[UIViewController loadViewIfRequired] + 360
5 UIKit 0x3599f146 -[UIViewController contentScrollView] + 22
6 UIKit 0x3599f08c -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] + 24
7 UIKit 0x3599ef70 -[UINavigationController _layoutViewController:] + 28
8 UIKit 0x3599ee94 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 268
9 UIKit 0x3599e5d4 -[UINavigationController _startTransition:fromViewController:toViewController:] + 60
10 UIKit 0x3599e4bc -[UINavigationController _startDeferredTransitionIfNeeded:] + 320
11 UIKit 0x3598cb8e -[UINavigationController pushViewController:transition:forceImmediate:] + 854
12 UIKit 0x3598c82e -[UINavigationController pushViewController:animated:] + 34
13 Mirai 0x00133334 -[HomeViewController goToMyQuestions:] (HomeViewController.m:364)
14 UIKit 0x35a160c0 -[UIApplication sendAction:to:from:forEvent:] + 68
15 UIKit 0x35a16072 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
16 UIKit 0x35a16050 -[UIControl sendAction:to:forEvent:] + 40
17 UIKit 0x35a15906 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498
18 UIKit 0x35a15dfc -[UIControl touchesEnded:withEvent:] + 484
19 UIKit 0x3593e5ec -[UIWindow _sendTouchesForEvent:] + 520
20 UIKit 0x3592b7fc -[UIApplication sendEvent:] + 376
21 UIKit 0x3592b116 _UIApplicationHandleEvent + 6150
.
.
.
有没有办法添加" BackTrace"使用PLCrashReport?