My application is crashing, and I cannot find an exact way how to reproduce the crash for two days. So, I would like to decode the dSYM file, and to see there what's the problem (hoping it helps). How can I get the dSYM file from the device?
Asked
Active
Viewed 6,088 times
1 Answers
8
You will probably need to get the dSYM from the Xcode build products.
- Open the Xcode Organizer (in Xcode see Window -> Organizer)
- Go to the Archives tab and select the crashing build of the relevant project
- Select Distribute, then choose Export as Xcode Archive
- Locate your exported archive (.xcarchive file), control-click on it and select View Package Contents
- Your dSYM will be in the dSYMs subfolder of the Xcode Archive contents
But, a far easier way to get the stack trace is to either make the app crash while running in the iOS Simulator or on a tethered iOS device in Xcode (i.e. when running with Product -> Run in Xcode), or by connecting your device and viewing the desymbolicated crash reports in the Devices section of the Xcode Organiser Devices tab.
(The above all assumes that you've build the app in Xcode on a machine you can access and you've kept the archives for the build in the Xcode Organizer.)
For more information see Apple's tech note: Understanding and Analyzing iOS Application Crash Reports.

jstr
- 1,271
- 10
- 17
-
So what if archives is empty, even though you have crash logs on your device? – Nic Foster Mar 21 '13 at 23:21
-
If you don't have the dSYMs you won't be able to desymbolicate the crash logs, and they won't be much use unfortunately. – jstr Apr 16 '13 at 22:34