Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to symbolicate crash report from Apple received in .txt format not .crash format

My app got rejected from Apple and I have got crash reports in .txt format instead of .crash format.

How can I symbolicate or read the crash report ?

like image 724
bably Avatar asked Nov 08 '16 05:11

bably


People also ask

How do you Symbolicate a crash report?

To symbolicate in Xcode, click the Device Logs button in the Devices and Simulators window, then drag and drop the crash report file into the list of device logs. Crash reports must have the . crash file extension.

What does it mean to Symbolicate?

Symbolication is the process of converting them into human readable, class/method names, file names, and line numbers.

How to analyze crash report from Apple?

Steps to analyze crash report from apple: Copy the release .app file which was pushed to the appstore, the .dSYM file that was created at the time of release and the crash report receive from APPLE into a FOLDER. OPEN terminal application and go to the folder created above (using cd command)

Why can't I see OS symbols in Xcode crash reports?

OS symbols are architecture specific - a release of iOS for 64-bit devices won't include armv7 symbols. Xcode will automatically copy OS symbols from each device that you connect to your Mac. If any of these are missing Xcode may not be able to symbolicate the crash report, or may only partially symbolicate the crash report.

How do I symbolicize a crash file?

Copy .crash file (ascii file, with stack trace in begging of file) and .xarchive of crashing release to same temporarly folder Show activity on this post. In order to symbolicate crashes, Spotlight must be able to find the .dSYM file that was generated at the same time the binary you submitted to Apple was.

How do I display crash results in Xcode?

Xcode will automatically symbolicate the crash report and display the results To symbolicate a crash report, Xcode needs to be able to locate the following: The crashing application's binary and dSYM file. The binaries and dSYM files for all custom frameworks that the application links against.


1 Answers

When you get your crash report as a .txt file just follow these steps :

  1. Change the file extension .txt to .crash (eg mycrash.txt to mycrash.crash).

  2. Create a new folder in desktop and copy the mycrash.crash file to the newly created folder.

  3. Copy the .dSYM file:

    • update: download all DSYMs from appstoreconnect activity- they are properly named with their UUIDs
    • Unzip DSYMs, then copy the App and Sybolicate script as defined below: https://appstoreconnect.apple.com/WebObjects/iTunesConnect.woa/ra/ng/app/[appID]/activity/ios/builds/[version]/[build]/details
  4. Open the Archives window in Xcode by navigating the menus: xcode -> window -> orgnizer or xcode -> product -> Archive:

    • Select any Archives of your app Right click on it, then select Show in Finder

    • Right-click on appname.xcarchive and select Show Package Contents.

    • Open the dSYMs folder and get the .dSYM file, and paste it too in the newly created folder.

    • Copy the .app file from the same xcarchive to the new folder.

  5. Go to path /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/

    • Finder hotkey (⇧ + ⌘ + G) and just paste in the path.
  6. Copy the symbolicatecrash file to the newly created folder.

    The folder should now have:
    • mycrash.crash
    • myapp.app
    • myapp.app.dSYM
    • symbolicatecrash
  7. Open terminal, navigate to your folder path and then run:
    $ export DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer"

  8. Then run the symbolicate command on your crash like so:
    $ ./symbolicatecrash mycrash.crash > symbolicated.crash

like image 127
Shakti Avatar answered Sep 23 '22 09:09

Shakti