Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. Instructions for manually symbolicating partially symbolicated Crash Logs in Xcode 7.2:
  2.  
  3.  
  4.  
  5. Create a folder on your computer. I called mine “Crash Stuff” in the example.
  6.  
  7. We’re going to need 3 things to symbolicate .crash files.
  8.  
  9. 1. The .dSYM that relates to the crash files.
  10. 2. The symbolicatecrash script
  11. 3. The .crash file that we want to symbolicate
  12.  
  13.  
  14. 1. The .dSYM file
  15.  
  16. In Xcode
  17.  
  18. * Go to Window ► Organizer and click on the Crashes tab.
  19.  
  20. * Choose the crash logs you want. Assuming they’re partially symbolicated that’s what we’re going to fix.
  21.  
  22. * On the Crash information panel on the right make a note of the release and build numbers.
  23.  
  24. * Click on the Archives tab and locate the Archive with the same release/build numbers.
  25.  
  26. * Right click it and Show In Finder
  27.  
  28. * Right click the .xcarchive file and Show Package Contents
  29.  
  30. * Locate the .dSYM file and copy it to your “Crash Stuff” folder
  31.  
  32.  
  33. 2. The symbolicatecrash script
  34.  
  35. In Finder
  36.  
  37. * In the Finder menu Go ► Go To Folder paste the following: /Applications/Xcode.app/Contents/SharedFrameworks/DTDeviceKitBase.framework/Versions/Current/Resources/symbolicatecrash
  38.  
  39. * Copy the symbolicatecrash file to your “Crash Stuff” folder
  40.  
  41.  
  42. 3. The .crash file
  43.  
  44. In XCode
  45.  
  46. * In Window ► Organiser click the Crashes tab
  47.  
  48. * Right click one of the crash reports (in the left panel) and show in finder.
  49.  
  50. * Show Package Contents and locate the .crash file
  51.  
  52. * Copy it into this folder
  53.  
  54. * RENAME IT my.crash (this is just to make the script we have to run easier)
  55.  
  56.  
  57.  
  58. Launch Terminal
  59.  
  60. * cd to your Crash Stuff folder
  61.  
  62. * Run the command: export DEVELOPER_DIR=/Applications/XCode.app/Contents/Developer
  63.  
  64. We’re going to symbolicate the my.crash
  65.  
  66.  
  67. * Run the terminal command: ./symbolicatecrash -v my.crash PolyNome.app.dSYM > symbolicated.crash
  68.  
  69. (note - change PolyNome.app.dSYM to the name of your .dSYM file)
  70.  
  71.  
  72.  
  73. Now we have a symbolicated crash file (symbolicated.crash). Rename it to the original .crash file name and copy it over the original.
  74.  
  75. 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.
  76.  
  77.  
  78. 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.
  79.  
  80. 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