Symbolicating crash log

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~

  1. Create a new folder. Place our crash file and dSYM file in that folder:

    • myApp.crash
    • myApp.dSYM
  1. 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/symbolicatecrash

    Or, You could find the path by yourself:

    1
    find /Applications/Xcode.app -name symbolicatecrash -type f
  2. export env var

    1
    export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
  3. 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.