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

孤人 提交于 2019-12-29 03:10:11

问题


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 ?


回答1:


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




回答2:


  1. Change the file extension .txt to .crash
  2. Make sure your device is plugged in.
  3. go to xcode -> window -> devices and simulators -> view device logs
  4. then drag the file that of the crash log and drag it to the left side of that windows
  5. then you can see the log and what happen there



回答3:


Can't add a comment to Shakti's answer, but I had trouble with steps 5 and 6 as it was complaining about DEVELOPER_DIR not being specified.

Some googling later I found out that the part 5 should have been:

5 now open terminal cd your folder path and then type this

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

So, the "export" is also a keyword and a part of the command, just in case anyone else gets the same problem.




回答4:


It worked for me ,might help some one else also

Apple gives you crash log in .txt format , which is unsymbolicated

**

With the device connected

**

  • Download ".txt" file , change extension to ".crash"
    • Open devices and simulators from window tab in Xcode
    • select device and select device logs
    • drag and drop .crash file to the device log window

We will be able to see symbolicated crash logs over there

Please see the link for more details on Symbolicating Crash logs



来源:https://stackoverflow.com/questions/40479835/how-to-symbolicate-crash-report-from-apple-received-in-txt-format-not-crash-fo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!