How to get logs from iOS devices

  • KM02528523
  • 22-Aug-2016
  • 31-Aug-2016

Summary

Sometime the iOS device log is required

Question

How to get logs from iOS devices

Answer

You can get crash logs from a device in a number of ways.

From the Mobile Center server or a connector machine

  • Linux server/connector
  1. Change directory to the linux-amd64 directory: cd /opt/hpmc/libimobiledevice/linux-amd64
  2. Run the following command: ./idevicesyslog –u <UDID>
  • Windows server/connector
  1. Open a command prompt window and navigate to the following folder: 
    • Devices connected to server machine: <Path to your Windows server folder>\server\libimobiledevice\windows-amd64
    • Devices connected to standalone connector: <Path to your Windows Connector folder>\libimobiledevice\windows-amd64
  1. Run the following command: idevicesyslog –u <UDID>
  • Mac connector
  1. Change directory to the linux-amd64 directory: cd /opt/hpmc/libimobiledevice/linux-amd64
  2. Run the following command: ./idevicesyslog –u <UDID>
  • Sync with iTunes

After syncing, crash reports will be copied to a specific location on your hard drive:

Operating system

Location
Mac OS X ~/Library/Logs/CrashReporter/MobileDevice/<DEVICE_NAME>
Windows
C:\Users\<USERNAME>\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\<DEVICE_NAME>

 

 

 

 

  • Email the logs on the device

Crash information can be found in the following location on your device:

  1. iOS 7.x: Settings > General > About >Diagnostics & Usage > Diagnostic & Usage Data
  2. iOS 8.x/ iOS 9: Settings > Privacy > Diagnostic & Usage > Diagnostic & Usage Data
  • Use the Xcode Organizer (Requires Mac OS and Xcode)
  1. Launch Xcode on your desktop machine.
  2. Open the Xcode Organizer window. (Window menu > Organizer, or Cmd-Shift-2.)
  3. Find your device in the left sidebar, and then select device logs.