To parse the crash log, you first need to keep the compiled. xcarchive file at the time of publication. This file contains the. dSYM file.
My general practice is, after the successful release, put this file. Xcarchive directly into the version branch of the code repository, so it won't be lost.
Where is this file? Open the Xcode-> menu Window->organizer, and Right-click on the compiled file to open it.
Two ways to be more troublesome.
The first method:
Using the Dwarfdump command
Dwarfdump--uuid Xx.app.dSYM is used to get the app's UUID.
Dwarfdump--lookup 0x12b45d-arch armv7 Xx.app.dSYM make the wrong log to understand the corresponding memory address to the correct place.
If the Dwarfdump command is not available at the beginning, you need to install command line Tools, which can be downloaded in the settings (cmd+ "," Open settings). In addition, it must be entered. The folder where the dSYM is located.
Use dwarfdump to install command line Tools,xcode to set up the download. and need to enter. dSYM in the folder where you are working.
The second method:
Using the Xcrun Atos command
Atos-o Yourapp.app.dsym/contents/resources/dwarf/yourapp 0x00062867
The following key recommendations of this method, convenient and fast
Third method: Visual Tools
This is the crash log that I've counted in my project, and if you look at those log reports, you won't know what line of code is causing it.
To use this method, drag the corresponding version of the. xcarchive file to the tool. Compare the UUID to the Friend Union log, and copy the wrong address information to the arrow. Click Analyze.
You can get the exact code crash location. It's simple.
DSYM File Analysis Tool http://answerhuang.duapp.com/index.php/2014/07/06/dsym_tool/
This is the blogger Answer-huang has developed a tool that is designed to quickly locate the crash log code. Thank the man for providing such a handy tool.
The tool code is still open source: https://github.com/answer-huang/dSYMTools
Tool: Http://pan.baidu.com/s/1bnkxPvT
Baidu Network disk Easy failure, I upload csdn download, of course, is free of points downloaded.
Address: http://download.csdn.net/detail/totogo2010/8012367
Thanks for sharing
How to analyze Post app crash logs with friends league-B