Crash Re-Symbolication
Many times developers like me come to a situation where you have only an Un-Symbolicated crash logs from the remote user and have to find out the exact issue of the crash. For such situation, we can Re-Symbolicate crash logs manually.
Requirement
To get your symbolicated logs from Crash logs you will need following files:
- MyApp.app — Application file (Executable).
- MyApp-dsym.dSYM — dSYM file, generated by XCODE when actual .app file complied.
- MyApp-Crash-log.crash — Crash log, that can be taken from real device.
STEP 1
Move all the above files (MyApp.app, MyApp-dSYM.dSYM and MyApp-Crash-log.crash) into a Folder with a convenient name wherever you can go using Terminal easily.
For me, Desktop is the most easily reachable place ;)
So, I have moved these three files into a folder MyApp at Desktop.
STEP 2
Now its turn of Finder, Go to the path from following whichever is applicable for your XCODE version.
XCode 8 /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash
XCode 7.3 /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash
XCode 7 /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources/symbolicatecrash
Xcode 6
/Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/A/Resources
Other then Xcode 6
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKitBase.framework/Versions/A/Resources
Or
Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources
Copy symbolicatecrash file from this location, and paste it to the Desktop/MyApp
(Wait… Don’t blindly follow me, I am pasting sybolicatecrash file in folder MyApp, one that you created in step one at your favorite location, having three files.)
STEP 3
Open Terminal, and CD to the MyApp Folder.
- cd Desktop/MyApp — Press Enter
- export DEVELOPER_DIR=”/Applications/XCode.app/Contents/Developer” — Press Enter
- ./symbolicatecrash -v MyApp-Crash-log.crash MyApp.dSYM — Press Enter
That’s it !! Symbolicated logs are on your terminal…
Now what are you waiting for? Simply, Find out the Error and resolve it ;)
Happy Coding !!!