Skip to content

Instantly share code, notes, and snippets.

@ming-chu
Last active April 9, 2018 10:10
Show Gist options
  • Save ming-chu/8179726fdd6ccef216bb9949f2c59d59 to your computer and use it in GitHub Desktop.
Save ming-chu/8179726fdd6ccef216bb9949f2c59d59 to your computer and use it in GitHub Desktop.
Find symbolicatecrash path for DSYM file symbolicate
#/bin/sh
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
find /Applications/Xcode.app/ -name "symbolicatecrash" | grep "SharedFrameworks"
#/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash
#This app can sybolicate the *.crash, *.ips files, it really helps!
symbolicatecrash --dsym /path/xxxx.xcarchive/dSYMs --output name.symbolicated.crash name.crash
#get uuid from dsym
dwarfdump -u MyApp.app.dSYM
#desymbolicate each ips in current folder
dSYMsPATH="/..../Developer/Xcode/Archives/2018-01-01/MyApp.xcarchive/dSYMs"
for fileName in $(ls *.ips); do symbolicatecrash --dsym "$dSYMsPATH" --output "$fileName"_symbolicated.crash $fileName; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment