Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to symbolicate a crash that occured in framework?

I got this crash log from production:

enter image description here

This is visible via XCode organizer -> Crashes. The lines in red rectangle are of interest to me but they are not symbolicated. EasyTypeShared is a framework written by me and it is contained in the project. How can I symbolicate that part of crash report? Why is it not symbolicated by default?

like image 556
Rasto Avatar asked Jun 01 '16 00:06

Rasto


1 Answers

Xcode isn't always the best at symbolicating crash reports in the organizer. I recommend using the command line tool (symbolicatecrash) to confirm that it isn't an Xcode issue.

As long as you have a local copy of the dSYM you should be good to go, even if it never got uploaded to Apple.

Place the .dSYM, .crash and .app in the same folder then in Terminal cd into the folder and run these commands:

# symbolicatecrash requires this value to be set
export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"

# could instead add this to your bash profile
SYMBOLICATE_FOLDER=/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/

# symbolicate asdf.crash into out.crash
$SYMBOLICATE_FOLDER/symbolicatecrash asdf.crash > out.crash
like image 185
Casey Avatar answered Oct 21 '22 13:10

Casey