OS X Crash Log Symbolication

前端 未结 4 695
旧巷少年郎
旧巷少年郎 2021-02-06 04:54

I cannot symbolicate OS X (not iOS) crash logs from testers and users using XCode 4.6 . The crash logs cannot be dragged into the organizer, and the organizer does not show any

4条回答
  •  难免孤独
    2021-02-06 05:05

    We had the same problem with our app and I was symbolicating the crash reports manually line by line with atos.

    I now tweaked Apple's symbolicate script such that it works with Mac apps and crash reports from PLCrashReporter.

    https://github.com/lksnmnn/Symbolicate-CrashReports

    How to use it:

    Make sure you have all of the following files on your computer:

    1. The crash report: report.crash
    2. The dSYM file of your app: MyApp.dSYM
    3. The executable / app folder of your app: MyApp.app
    4. The improved symbolicate script: symbolicatecrash

    Now go in the command line (Terminal) and do the following:

    # set the developer directory
    export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"
    
    # Now run the script
    /Path/To/symbolicatecrash /Path/To/report.crash > /Path/To/readable_report.crash
    
    # Use -v for verbose logging.
    

    The script will find your dSYM and your executable and symbolicates as much as it cans. You will now find your symbolicated report in the stated output file readable_report.crash

    Build settings:

    For proper reports and symbols, set your build settings to this:

    Strip Debug Symbols During Copy: Yes
    Strip Style: All Symbols
    Strip Linked Product: Yes
    

提交回复
热议问题