Friday, November 14, 2014

Symbolicating crash report using symbolicatecrash Xcode command line utility

Recently, all of the app store crash reports i was able to symbolicate using symbolicatecrash utility. 
Some tips are below for this process. 

bestomet-MacBook-Pro:Resources bestomet$ /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash -v "/Users/bestomet/Desktop/RR/projects/WFF/debugs/appstore_crash_reports/mytwc_ios_reports/TWC-WiFi-Finder_4-3-20_2014-11-12_iOS-7-1_Top-Crash_1.tqohuwwj.zip_1.crash"
Error: "DEVELOPER_DIR" is not defined at /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash line 60.

The developer directory can be set like the below 
export DEVELOPER_DIR="/Applications/XCode.app/Contents/Developer"


Once the Path is set, the above can be executed again. 

Just need to make sure the dSym file and the crash report are in the same folder


Also, to verify the the build is corresponding to the crash file, below steps can be followed

https://developer.apple.com/library/ios/qa/qa1765/_index.html
the below step will help to find the udid from the crash file.
            
            $ grep --after-context=2 "Binary Images:" Example.crash
            Binary Images:
            0xb6000 - 0xb7fff +Example armv7 <270a9b9d7a333a4a9f1aaf8186f81394> /var/mobile/Applications /28D4F177-D312-4D3B-A76C - C2ACB4CB7DAD / Example.app / Example
            0x2feb5000 - 0x2fed6fff dyld armv7<4 a817f3e0def30d5ae2032157d889c1d> /usr/lib/dyld
            
            below step will help to find the udid from the binary image

            $ xcrun dwarfdump --uuid


References: 
http://stackoverflow.com/questions/1460892/symbolicating-iphone-app-crash-reports

No comments:

Post a Comment