简体   繁体   English

象征崩溃报告iOS

[英]Symbolicating Crash Report ios

Along with crash report, I've .app and .dSYM package as well. 除了崩溃报告,我还具有.app和.dSYM软件包。 I'm trying to symbolicate the crash report by running the following command 我正在尝试通过运行以下命令来表示崩溃报告

/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash crash.crash > SymbolicatedPaperio.crash

The first few lines of exception stack trace looks like, 异常堆栈跟踪的前几行看起来像,

Last Exception Backtrace: 0 CoreFoundation 0x00000001898a61c0 0x189777000 + 1241536 1 libobjc.A.dylib 0x00000001882e055c 0x1882d8000 + 34140 2 CoreFoundation 0x00000001898a6094 0x189777000 + 1241236 3 Foundation 0x000000018a333808 0x18a285000 + 714760 4 UIKit 0x000000018f984848 0x18f6f1000 + 2701384 5 UIKit 0x000000018f9a4fac 0x18f6f1000 + 2834348 6 CoreFoundation 0x00000001898537dc 0x189777000 + 903132 7 CoreFoundation 0x000000018985140c 0x189777000 + 893964 8 CoreFoundation 0x0000000189780068 0x189777000 + 36968 9 paperio 0x00000001000b0d80 0x1000a4000 + 52608 10 paperio 0x00000001000bf0fc 0x1000a4000 + 110844 11 UIKit 0x000000018f768f3c 0x18f6f1000 + 491324 12 UIKit 0x000000018f987158 0x18f6f1000 + 2711896 13 FrontBoardServices 0x000000018b4365e8 0x18b413000 + 144872 14 Foundation 0x000000018a345794 0x18a285000 + 788372 15 BaseBoard 0x000000018b3b0f00 0x18b37e000 + 208640 16 FrontBoardServices 0x000000018b4306a8 0x18b413000 + 120488 17 FrontBoardServices 0x000000018b4363c4 0x18b413000 + 144324 18 UIKit 0x000000018f9885c0 0x18f6f1000 + 2717120 19 UIKit 0x000000018f988264 0x18f6f1000 + 2716260 20 UIKit 0x000000018fcb9ba4 0x18f6f1000 + 6065060

For the first line, on my mac, it is not symbolicated and the output remains same (as the non-symbolicated line above). 对于第一行,在我的Mac上,它没有符号化,并且输出保持不变(与上面的非符号化行一样)。 However, on a different mac, I can see the output as: 但是,在另一台Mac上,我可以看到以下输出:

0 CoreFoundation 0x00000001898a61c0 __exceptionPreprocess + 124

This is happening for all the frameworks and libraries. 所有框架和库都在发生这种情况。 Want to understand what possibly could be missing on my mac - that its not symbolicating properly and how to fix this. 想了解我的Mac上可能缺少的内容-它不能正确表示符号以及如何解决此问题。

Basically, to symbolicate libraries and framework's method, we need to have symbols for the iOS version for which crash was generated. 基本上,要符号化库和框架的方法,我们需要具有针对其生成崩溃的iOS版本的符号。 These are (by default) present in ~/Library/Developer/Xcode\\iOS DeviceSupport . 这些(默认情况下)存在于~/Library/Developer/Xcode\\iOS DeviceSupport So, if the symbol for correct iOS version is not present here - the symbolicator would not be able to properly decrypt the reports. 因此,如果此处没有提供正确的iOS版本的符号,则该符号器将无法正确解密报告。

您需要指定存档文件的位置:

./symbolicatecrash crashPath archivePath > output

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM