iOS crash & error logs

Collect crash reports and device logs from an iPhone or iPad so developers can find the cause of a crash, freeze or error.

Before you start

View crash reports in Xcode

Use this when the crash already happened on the device.

  1. Connect the device with USB, unlock it and tap Trust if asked.
  2. In Xcode, open Window › Devices and Simulators.
  3. On the Devices tab, select your device under Connected.
  4. Click Open Recent Logs. Crash reports are listed with the app name and timestamp.
  5. Find the report that matches the time of the crash and export it, or drag it to Finder. Attach the file to the bug report as it is.
Xcode Devices and Simulators window with a connected iPhone and the Open Recent Logs and Open Console buttons
Xcode › Window › Devices and Simulators.

Capture live logs while you reproduce

Use this when you can make the problem happen again.

  1. In the same window, click Open Console. The Console app opens on your Mac.
  2. Select the device in the sidebar and click Start to begin streaming.
  3. Type the app name in the search field to hide messages from other apps.
  4. Reproduce the issue, then click Pause.
  5. Select the messages (⌘A), copy them and save them in a .txt file.

Without a Mac

Testers can share crash reports straight from the device.

  1. Open Settings › Privacy & Security › Analytics & Improvements › Analytics Data.
  2. Find the entry that starts with the app name and the date of the crash.
  3. Open it and tap the share button to send the file.

What to include in the report

Keep the original fileSend the crash report file itself (.ips) instead of copied text. Developers need the full file to match the crash to the code.