You have already deployed your application to the App Store (or as an Ad Hoc or Enterprise assembly), then you cannot connect the Xcode debugger to the deployed debugging application. To debug problems, you need to analyze the Crash Logs and Console outputs from the device. To read crash reports with backtraces, you need to symbolize them before you can analyze them. Symbolization is a process that replaces memory addresses with human-readable function names and line numbers.
To understand and analyze application crash reports, you can refer to Symbolicating Crash Reports , Debugging Deployed iOS Applications, or Crash Report Analysis .
Overview of crash and symbol reports.
- Set the debugging information format (DEBUG_INFORMATION_FORMAT) in the build settings, these debugging symbols are stored inside the binary file or in the Debug Symbol (dSYM) file for the companion.
- When archiving the distribution application, Xcode will assemble the application binary together with the .dSYM file and save it in a place inside your home folder.
- When deploying to the App Store or beta using a test flight, include the dSYM file when you upload your archive to iTunes Connect.
- If the application crashes, an unconnected crash report is created and saved on it.
- You can get crash reports directly from your device by following the steps in Debugging Deployed iOS Applications . If you distribute your application through AdHoc or Enterprise, this is the only way to receive crash reports from your users.
- Failure reports received from the device are asymmetrical and should be symbolized using Xcode. Xcode uses the dSYM file associated with your application binary to replace each address in the backtrace with the original location in the source code. The result is a symbolic failure report.
- If the user decides to share diagnostic data with Apple, or if the user has installed a beta version of your application through TestFlight, the crash report is uploaded to the App Store.
- The app store symbolizes a crash report and groups it with similar crash reports. This collection of similar crash reports is called a crash point.
- Symbolic crash reports are available to you in the Xcode Crashes organizer.
source share