Symbolicating iPhone App Crash Reports

后端 未结 25 2584
迷失自我
迷失自我 2020-11-21 05:38

I\'m looking to try and symbolicate my iPhone app\'s crash reports.

I retrieved the crash reports from iTunes Connect. I have the application binary that I submitted

25条回答
  •  梦毁少年i
    2020-11-21 05:48

    I prefer a script that will symbolicate all my crash logs.

    Preconditions

    Create a folder and put there 4 things:

    1. symbolicatecrash perl script - there are many SO answers that tells it's location

    2. The archive of the build that match the crashes (from Xcode Organizer. simple as Show in Finder and copy) [I don't sure this is necessery]

    3. All the xccrashpoint packages - (from Xcode Organizer. Show in Finder, you may copy all the packages in the directory, or the single xccrashpoint you would like to symbolicate)

    4. Add that short script to the directory:

      #!/bin/sh
      
      echo "cleaning old crashes from directory"
      rm -P *.crash
      rm -P *.xccrashpoint
      rm -r allCrashes
      echo "removed!"
      echo ""
      echo "--- START ---"
      echo ""
      
      mkdir allCrashes
      mkdir symboledCrashes
      find `ls -d *.xccrashpoint` -name "*.crash" -print -exec cp {} allCrashes/ \;
      
      cd allCrashes
      for crash in *.crash; do
          ../symbolicatecrash $crash > ../symboledCrashes/V$crash
      done
      cd ..
      
      echo ""
      echo "--- DONE ---"
      echo ""
      

    The Script

    When you run the script, you'll get 2 directories.

    1. allCrashes - all the crashes from all the xccrashpoint will be there.

    2. symboledCrashes - the same crashes but now with all the symbols.

    3. you DON'T need to clean the directory from old crashes before running the script. it will clean automatically. good luck!

提交回复
热议问题