Xcode | 如何符号化崩溃文本文件

我从Apple收到了文本格式的崩溃日志文件,以下步骤可帮助我对其进行符号化并轻松解决崩溃问题。

步骤1:建立一个名为Crash的资料夹
步骤2:将重命名为1.crash的崩溃文件并放入崩溃
步骤3:将您的.app文件复制到崩溃中的文件夹中。
步骤4:使用以下命令示例arm64查找崩溃中存在的体系结构

  grep -A 1'Binary Images:'1.crash | 尾-1 

步骤4:使用以下命令示例0x1000f4000查找起始地址

  grep -A 1'Binary Images:'1.crash | 剪切-d“” -f1 | 尾-1 

步骤5:在以下命令中输入地址并执行

  xcrun atos -o MyApp.app/MyApp -arch arm64 -l 0x1000f4000 -f 1.崩溃> 1.sym.txt 

步骤6:1.sym.txt包含象征性的崩溃

阅读更多:

https://medium.com/@ankitkumargupta/learnings-converted-project-from-objective-c-to-swift-82fc98ee7204

https://medium.com/@ankitkumargupta/ios-how-i-handled-hardcoded-strings-of-images-storyboards-xibs-using-shell-scripts-c86712586529

https://medium.com/@ankitkumargupta/vector-images-in-ios-using-xcassets-2ddb102171b9

https://medium.com/@ankitkumargupta/xcode-add-build-phase-shell-script-without-cluttering-your-project-file-2de8aa3fe0ce