Summary of IOS crash file analysis methods

Time:2021-1-19

Method one: symbolic crash

1. Find symbolic crash

Different Xcode versions of symbolicatecrash have different directories

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

2. Create a crash folder

mkdir crash

3. Copy crash file, symbolic crash and dsym to the same directory

4. Export Designer_ Dir environment variable

export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"

If this line is not executed, the following error may occur

Error:"DEVELOPER_DIR"isnotdefinedat./symbolicatecrashline69.

5. Wrong symbols everywhere

./symbolicatecrash your.crash your.dSYM > result.crash

Method 2: xcrun Atos

Take Baidu statistics background as an example

xcrun atos -arch arm64 -o yourappname.app.dSYM/Contents/Resources/DWARF/yourappname -l 0x104b84000 0x0000000104c0a678

Find app UUID


dwarfdump --uuid xxx.app/xxx

dwarfdump --uuid xxx.app.dSYM