How to Manually Symbolicate iOS Crash to View Crash Logs

前端 未结 6 2272
粉色の甜心
粉色の甜心 2020-11-28 18:13

Trying to debug app. The trouble is I cannot find this program.

symbolicatecrash.sh

sudo cp /Developer/Platforms/iPhoneOS.platform/Developer/Library/         


        
6条回答
  •  悲哀的现实
    2020-11-28 18:44

    A plugin is available for Xcode under the Product menu. This plugin is available through Alcatraz package manager or can be directly downloaded from github.

    This plugin internally incorporates a shell script that does the set up of running the following commands for manual crash symbolication.

    1. Set an alias to symbolicatecrash.pl perl script

    alias symbolicatecrash='/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash'

    1. To find symbolicatecrash, should it differ from the alias above:

    find /Applications/Xcode.app -name symbolicatecrash -type f

    1. Set the DEVELOPER_DIR variable:

    export DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'

    1. With the dSYM the crash can be symbolicates as:

    symbolicatecrash /path/to/MyApp_2012-10-01_Device.crash /path/to/MyApp.app.dSYM.

提交回复
热议问题