如何使用 xcarchive 符号化崩溃文件
how Symbolicate a crash file using xcarchive
我找到了这个很好的教程:https://www.apteligent.com/technical-resource/symbolicating-an-ios-crash-report/
阅读后我明白我必须使用崩溃文件和 xcarchive/pathtodsymfile 来符号化崩溃文件,因为我的 IPA 不在应用程序商店中,只是一个临时 IPA。
我找到了文件:myapp.xcarchive/dSYMs/myapp.app.dSYM
然后我使用以下命令:
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash -v my.crash myapp.xcarchive/dSYMs/myapp.app.dSYM > results.txt
这是输出:
Num stacks found: 13
0 binary images remain after pruning:
($hwModel, $osVersion, $osBuild) = (iPhone9?4, 12.2, 16E227)
$versionPattern = {iPhone9?4 12.2 (16E227),iPhone9?4 12.2 (16E227) *,12.2 (16E227),12.2 (16E227) *,12.2,16E227,16E227 *}
Symbol directory paths: /Users/myuser/Library/Developer/Xcode/iOS DeviceSupport/12.2 (16E227)/Symbols /Users/myuser/Library/Developer/Xcode/iOS DeviceSupport/12.2 (16E227) arm64e/Symbols
Finding Symbols:
0 binary images were found.
No symbolic information found
并且 results.txt 文件与 my.crash 相同
我做错了什么?
my.crash 文件 https://gist.github.com/rchampa/7d162aab64f0d21f594a8188bf00fac1
我发现我的日志是 __hidden
所以我刚刚
设置 Build Settings -> Enable bitcode to No
然后就不需要符号化了。
我找到了这个很好的教程:https://www.apteligent.com/technical-resource/symbolicating-an-ios-crash-report/
阅读后我明白我必须使用崩溃文件和 xcarchive/pathtodsymfile 来符号化崩溃文件,因为我的 IPA 不在应用程序商店中,只是一个临时 IPA。
我找到了文件:myapp.xcarchive/dSYMs/myapp.app.dSYM
然后我使用以下命令:
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash -v my.crash myapp.xcarchive/dSYMs/myapp.app.dSYM > results.txt
这是输出:
Num stacks found: 13
0 binary images remain after pruning:
($hwModel, $osVersion, $osBuild) = (iPhone9?4, 12.2, 16E227)
$versionPattern = {iPhone9?4 12.2 (16E227),iPhone9?4 12.2 (16E227) *,12.2 (16E227),12.2 (16E227) *,12.2,16E227,16E227 *}
Symbol directory paths: /Users/myuser/Library/Developer/Xcode/iOS DeviceSupport/12.2 (16E227)/Symbols /Users/myuser/Library/Developer/Xcode/iOS DeviceSupport/12.2 (16E227) arm64e/Symbols
Finding Symbols:
0 binary images were found.
No symbolic information found
并且 results.txt 文件与 my.crash 相同
我做错了什么?
my.crash 文件 https://gist.github.com/rchampa/7d162aab64f0d21f594a8188bf00fac1
我发现我的日志是 __hidden
所以我刚刚
设置 Build Settings -> Enable bitcode to No
然后就不需要符号化了。