Symbolicate iPhone app crash - Map hexadecimal addresses to valid function namespace (call stack)
Listing requirements: Symbolicating crashes
- Using Xcode Organizer
- Using external services
- Using .crash file and .dSYM file
Sources: iTunesConnect crash report (distributed)
Device crash log or external services.
Provided I have .crash file and .dSYM file, this works.
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)Go to
~/temp/
Set path: 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
Create shortcut
Alias symbolicateCrash /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/symbolicatecrash
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'
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 filename.crash
References:
How to Manually Symbolicate iOS Crash to View Crash Logs
Symbolicating iPhone App Crash Reports
iphone: Where the .dSYM file is located in crash report
you should go with -->Xcode -- > Organizer--> Devices --> Device Logs :)
Here you can find crash log.... OR you can use TestFlight SDK for use see crash log of your testing teams Device....
来源:https://stackoverflow.com/questions/15064368/symbolicate-iphone-app-crash