Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instructions for manually symbolicating partially symbolicated Crash Logs in Xcode 7.2:
- Create a folder on your computer. I called mine “Crash Stuff” in the example.
- We’re going to need 3 things to symbolicate .crash files.
- 1. The .dSYM that relates to the crash files.
- 2. The symbolicatecrash script
- 3. The .crash file that we want to symbolicate
- 1. The .dSYM file
- In Xcode
- * Go to Window ► Organizer and click on the Crashes tab.
- * Choose the crash logs you want. Assuming they’re partially symbolicated that’s what we’re going to fix.
- * On the Crash information panel on the right make a note of the release and build numbers.
- * Click on the Archives tab and locate the Archive with the same release/build numbers.
- * Right click it and Show In Finder
- * Right click the .xcarchive file and Show Package Contents
- * Locate the .dSYM file and copy it to your “Crash Stuff” folder
- 2. The symbolicatecrash script
- In Finder
- * In the Finder menu Go ► Go To Folder paste the following: /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/Current/Resources/symbolicatecrash
- * Copy the symbolicatecrash file to your “Crash Stuff” folder
- 3. The .crash file
- In XCode
- * In Window ► Organiser click the Crashes tab
- * Right click one of the crash reports (in the left panel) and show in finder.
- * Show Package Contents and locate the .crash file
- * Copy it into this folder
- * RENAME IT my.crash (this is just to make the script we have to run easier)
- Launch Terminal
- * cd to your Crash Stuff folder
- * Run the command: export DEVELOPER_DIR=/Applications/XCode.app/Contents/Developer
- We’re going to symbolicate the my.crash
- * Run the terminal command: ./symbolicatecrash -v my.crash PolyNome.app.dSYM > symbolicated.crash
- (note - change PolyNome.app.dSYM to the name of your .dSYM file)
- Now we have a symbolicated crash file (symbolicated.crash). Rename it to the original .crash file name and copy it over the original.
- In Xcode click on another crash log, then back on the one we changed - it should show <missing symbol> instead of memory locations. You can mouse over and click the arrow to open the line in the relevant project.
- I save a .zip of my project directory when I’ve uploaded a build to Apple. That’s what I want to view the code in.
- NOTE: Once you’ve figured out the bug BE SURE TO MAKE THE CODE CHANGE IN THE UP TO DATE version and not the one you’re looking in.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement