How to symbolicate iPhone \ iPad crash logs?
Asked Answered
J

3

14

I would like to know how to symbolicate crashes in XCode, i have .crash files and i don't know how to do it.

I want to fix a damn bug that affects my app, thanks in advance!

Jube answered 17/11, 2011 at 19:12 Comment(0)
C
18

The App needs to be built without stripping debug symbols:

debug_symbols

then, when it crashes on a device, go into the organizer window, under the "Device Logs" section, and you should see a nice symbolicated crash log:

enter image description here


To import the crash logs into Xcode (from, say, an email), just drag it into the organizer window like so:

Categorical answered 17/11, 2011 at 19:18 Comment(3)
Damn, i would have not say it better than this. Thank ya! :DJube
I uploaded my app to the app store and now the app crashed on my client's device after apple approves it so he sent me the crash log... Any idea how I can symbolicate it?Teteak
@Pr You probably cannot since it was built as a release version with symbols stripped out.Categorical
M
2

Symbolicating iPhone App Crash Reports

With the latest version of Xcode (3.2.2), you can drag and drop any crash reports into the Device Logs section of the Xcode Organiser and they will automatically by symbolicated for you. I think this works best if you built that version of the App using Build & Archive (also part of Xcode 3.2.2)

Maggy answered 17/11, 2011 at 19:19 Comment(1)
You're totally right, this functionality could have been taken out of Xcode.Maggy
A
2

You need the .xcarchive files of the application from which you received the crash file

  1. From .xcarchive we pull out MyApp.app, MyApp-dSYM.dSYM and MyApp-Crash-log.crash, create a folder on the desktop and the treasure and put them.

  2. Open the terminal and write the following commands(Replace MyApp with your names):

    • cd Desktop/MyApp

    • export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer

    • /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash -v MyApp.crash MyApp.app.dSYM

Agave answered 9/10, 2018 at 17:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.