Created
February 4, 2013 15:37
-
-
Save venkatarao/4707486 to your computer and use it in GitHub Desktop.
Symbolicate iPhone app crash - Map hexadecimal addresses to valid function namespace (call stack)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1)...Preliminary | |
Create a folder 'temp' in ~/, path is '~/temp/' | |
Keep all files in '~/temp/' i.e. script, .ipa, .dsym and .crash (in fact .ipa is not needed) | |
2)...Go to '~/temp/' | |
3)...If there are two Xcode's in system or paths not being set | |
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer/ | |
export DEVELOPER_DIR=/Applications/Xcode.app | |
4)...Create shortcut | |
Alias symbolicateCrash = "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash" | |
5)...Get symbolication: | |
atos -arch armv7 -o 'appname.app'.dSYM/Contents/Resources/DWARF/'appname' 0x0029c296 | |
atos -arch armv7 -o 'appname.app'.dSYM/Contents/Resources/DWARF/'appname -l "binary image line of crash log" | |
or | |
symbolicateCrash 'logname'.crash 'appname.app'.dSYM/Contents/Resources/DWARF/'appname' | |
6)...Still, if any issues? | |
Still couldn't link with some not found, couldn't figure out exceptions. | |
Downloaded script: external shell script (uploaded as 'symbolicatecrash') | |
./symbolicatecrash -v test.crash | |
References: | |
http://stackoverflow.com/questions/3832900/how-to-manually-symbolicate-ios-crash-to-view-crash-logs/8648232#8648232 | |
http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports | |
http://stackoverflow.com/questions/7088771/iphone-where-the-dsym-file-is-located-in-crash-report | |
http://stackoverflow.com/questions/5745391/how-to-create-dsym-file-in-xcode-4 | |
http://stackoverflow.com/questions/8172887/how-to-symbolicate-iphone-ipad-crash-logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment