Skip to content

Instantly share code, notes, and snippets.

@WiesnerPeti
Last active October 21, 2020 12:35
Show Gist options
  • Save WiesnerPeti/08437d2e9399b958addb669a23ca2ee8 to your computer and use it in GitHub Desktop.
Save WiesnerPeti/08437d2e9399b958addb669a23ca2ee8 to your computer and use it in GitHub Desktop.
Desymbolicate Crash
#Prerequisites
#- APP_NAME.app is in PWD folder
#- APP_NAME.app.dSYM is in PWD folder
#Thread 4 Crashed:: [...]
#0 YOUR_BUNDLE_ID 0x0 0x01 + 1234
LOAD_ADDRESS=0x01
SYMBOL_ADDRESS=0x0
#OR
#Thread 4 Crashed:: [...]
#0 APP_NAME 0x1 NEAREST_FOUND_SYMBOL + 1234
#Binary Images:
#LOAD_ADDRESS_START - LOAD_ADDRESS_END APP_NAME ARCH <DSYM UUID> APP_PATH
LOAD_ADDRESS=LOAD_ADDRESS_START
SYMBOL_ADDRESS=0x1
APP_PATH="YourApp.app/Contents/MacOS/YourApp" #"YourApp.app/YourApp"
ARCH="x86_64" #"arm64"
xcrun atos -o $APP_PATH -arch $ARCH -l $LOAD_ADDRESS $SYMBOL_ADDRESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment