首页 文章

象征性崩溃报告ios

提问于
浏览
0

除了崩溃报告,我还有.app和.dSYM包 . 我试图通过运行以下命令来表示崩溃报告

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

异常堆栈跟踪的前几行看起来像,

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

对于第一行,在我的Mac上,它没有符号化,输出保持相同(如上面的非符号线) . 但是,在不同的Mac上,我可以看到输出为:

0 CoreFoundation 0x00000001898a61c0 __exceptionPreprocess + 124

这种情况发生在所有框架和库中 . 想要了解我的Mac上可能缺少的东西 - 它没有正确的象征性以及如何解决这个问题 .

2 回答

  • 1

    基本上,为了象征库和框架的方法,我们需要为生成崩溃的iOS版本提供符号 . 这些(默认情况下)出现在 ~/Library/Developer/Xcode\iOS DeviceSupport 中 . 因此,如果此处不存在正确iOS版本的符号 - 符号符将无法正确解密报告 .

  • -1

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

    ./symbolicatecrash crashPath archivePath > output
    

相关问题