iOS应用崩溃日志分析


总结:

1.注意,以下xxx皆为项目名

2.xcode进入Archives,选择打包上架的版本,show in finder ,打开包内容,dSYMs,xxx.app.dSYM,显示包内容,Contents,Resources,DWARF,xxx

3.将xxx拷进crash所在文件夹

4.在终端找symbolicatecrash工具

find /Applications/Xcode6.1.app -name symbolicatecrash -type f

5.找到symbolicatecrash后将symbolicatecrash拷贝进crash文件夹里

6..终端进入crash等文件文件目录

7..在终端运行:./symbolicatecrash    xxx.crash(目录,如:/Users/mr_lin/Desktop/Payload/xxx.crash)    xxx(目录,如:/Users/mr_lin/Desktop/Payload/xxx)  >   Control_symbol.crash

8.提示: “Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 53.”

解决办法:

在不关闭当前终端的情况下,输入:

export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"

9.然后再在终端输入:./symbolicatecrash    /Users/mr_lin/Desktop/Payload/Amei.app_Amei.crash    /Users/mr_lin/Desktop/Payload/Amei   >   Control_symbol.crash

生成的Control_symbol.crash便是符号化后的文件



参考:

http://www.cocoachina.com/industry/20130725/6677.html


http://www.cnblogs.com/smileEvday/p/Crash1.html


http://stackoverflow.com/questions/7675863/atos-cannot-get-symbols-from-dsym-of-archived-application


http://www.cocoachina.com/bbs/read.php?tid=129732


http://blog.sina.com.cn/s/blog_69a620100102vaf3.html


http://blog.csdn.net/ys410900345/article/details/26756589


http://www.tuicool.com/articles/rymyEf


你可能感兴趣的:(iOS应用崩溃日志分析)