iOS symbolic crash log

Manual symbolization requires the following 3 things

 
 

symbolicatecrash is a symbolization tool officially provided by Apple.

First, find symbolicatecrash, open the terminal and enter:
find /Applications/Xcode.app -name symbolicatecrash -type f
The following results appear, the paths may be different
/Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash
/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash
Because this is a mobile phone, use
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/DVTFoundation.framework/symbolicatecrash
 

The dSYM file is in the package:

· Open the Organizer panel: Xcode > Window > Organizer
· Select the package corresponding to the crash log version, right-click Show In Finder
· Select the xcarchive file, right-click to display package contents
· The dSYM file is in the dSYMs folder
Xcode does not create dSYM files when packaging by default. You need to set the Debug Information Format to DWARF with sSYM File in Build Settings (as shown below), otherwise the dSYMs folder is empty.
 
To view the uuid of the dSYM file, enter the following command in the terminal
dwarfdump --uuid dSYM file path
 

Crash log:

Obtained from the device (sometimes it is already fully symbolic and can be viewed directly)
    1. Connect the target device to the computer > Open Xcode > Window > Devices (shortcut key shift + ⌘ + 2)
    2. Select View Devices Logs
    3. Select the file in the list, right-click and select Export
 
Or record and upload it yourself
 

To symbolize:

Create a folder on the desktop and put symbolicatecrash, crash log and dSYM files in it
Terminal cd to the created folder
Excuting an order
./symbolicatecrash XXXX/XXXX/appName.crash XXXX/XXXX/appName.app.dSYM > customName.crash
 
 

Replenish:

When manually parsing iOS crash files, this error will appear.
 
Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 69.
 
Just enter the following command
 
export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"

Guess you like

Origin blog.csdn.net/qizd0802/article/details/103507353