-->

Resolving problems in XCode 7 crash reporter

2020-07-24 05:11发布

问题:

I recently released the 2.0 version of my app. https://itunes.apple.com/app/neo-virtual-reality-for-reddit/id1013650716

I have users reporting that the app crashes but I can't figure out what to do in XCode. When I open a crash in the project it does not show me anything where the crash occured. See the screenshot attached for more information:

How can I solve my crashes in the future?

Edit: Bitcode is enabled and app symbols are included

回答1:

If you do enable the Bitcode and having this issue, simply click the " Download dSYMs" button in the Organizer and try again.

Refer to the Apple Technical Note,

Because the final compilation of your binary occurs on the App Store, your Mac will not contain the debug symbol (dSYM) files needed to symbolicate crash reports received from App Review or from users who have sent you crash reports from their devices. Although a dSYM file is produced when you archive your application, it is for the bitcode binary and can not be used to symbolicate crash reports. The App Store makes the dSYM files generated during bitcode compilation available for you to download, from Xcode or from the iTunes Connect website. You must download these dSYM files in order to symbolicate crash reports received from App Review or from users who have sent you crash reports from their devices.



回答2:

You have to symbolicate the crash report:

  1. Download the crash report from iTunes Connect
  2. Open the Devices window in XCode:

  1. Connect an iOS device
  2. Choose View Device Logs:

  1. Drag the report from Finder to the left section

  2. See a more detailed error message

This works only, if you have the archived project still available (you can check this in your Organizer window



回答3:

The answer is: disable BitCode when uploading the archive to iTunes Connect