When our App crashes, a crash report will be created and stored on the device. But usually, we need to symbolicate the log before we analyze it. So here, I’m just writing down the steps to symbolicate crash logs~
Create a new folder. Place our crash file and dSYM file in that folder:
- myApp.crash
- myApp.dSYM
Find
symbolicatecrash
file in your Xcode (which is written by perl). Copy it to the folder that you just created.Usually, the path should be:
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrashOr, You could find the path by yourself:
1
find /Applications/Xcode.app -name symbolicatecrash -type f
export env var
1
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
Final step, symbolicate crash
1
./symbolicatecrash myApp.crash > SymbolicatedM.crash
Ok alright, we’ve already done all of the work. So if the dSYM is matched with the crash file, here should be possible to generate a new file: SymbolicatedM.crash. Just open it, after symbolicating it should be much easier to read this time.