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
-
Change directory to the linux-amd64 directory: cd /opt/hpmc/libimobiledevice/linux-amd64
-
Run the following command: ./idevicesyslog –u <UDID>
-
Windows server/connector
-
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
-
Run the following command: idevicesyslog –u <UDID>
-
Mac connector
-
Change directory to the linux-amd64 directory: cd /opt/hpmc/libimobiledevice/linux-amd64
-
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 |
|
-
Email the logs on the device
Crash information can be found in the following location on your device:
-
iOS 7.x: Settings > General > About >Diagnostics & Usage > Diagnostic & Usage Data
-
iOS 8.x/ iOS 9: Settings > Privacy > Diagnostic & Usage > Diagnostic & Usage Data
-
Use the Xcode Organizer (Requires Mac OS and Xcode)
-
Launch Xcode on your desktop machine.
-
Open the Xcode Organizer window. (Window menu > Organizer, or Cmd-Shift-2.)
-
Find your device in the left sidebar, and then select device logs.