Skip to content

Instantly share code, notes, and snippets.

@shahdhiren
Last active July 30, 2018 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shahdhiren/b507ce8485dfdf71a9f9f9fb88a9a973 to your computer and use it in GitHub Desktop.
Save shahdhiren/b507ce8485dfdf71a9f9f9fb88a9a973 to your computer and use it in GitHub Desktop.
Symbolicate Xcode Crashlogs
Symbolicate Xcode Crashlogs
---------------------------
To properly get symbols from your archived app's dSYM file and get useful information from your BugSense crash reports (or any other crash reports for that matter):
1. Copy the stack trace from BugSense into TextEdit or any other text editor.
Make sure to use the "clipboard" icon, rather than simply copying the text.
Otherwise you will not get the actual memory locations of the stack trace, which are necessary to look up the references using atos and symbolicate your stack trace.
2. Open XCode and go to the Organizer
3. Find your archive and right-click it, go to open it in the finder.
4. Navigate to the directory of the archive, usually ~/Library/Developer/XCode/Archives/YYYY-MM-DD/
5. Go into the specific archive, and then the dSYMs folder
6. You will see the file MyApp.app.dSYM and you may think, this is the file that I should run atos against! This is incorrect.
It is actually another package! cd into this package, into the folder: MyApp.app.dSYM/Contents/Resources/DWARF
and you will find another file simply called MyApp. This is the actual dSYM file.
7. Run atos -arch armv7 -o MyApp 0x0000000 (or whatever the memory address is) to find the location of your error, or simply
atos -arch armv7 -o MyApp to enter interactive mode.
Apple Link: https://developer.apple.com/library/content/technotes/tn2151/_index.html#//apple_ref/doc/uid/DTS40008184-CH1-SYMBOLICATIONTROUBLESHOOTING
Stackoverflow: http://stackoverflow.com/questions/7675863/atos-cannot-get-symbols-from-dsym-of-archived-application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment