How to obtain iOS device logs using Mac and Windows
This article explains how to obtain iOS device logs using Windows and Mac devices.
Using Mac Device
Using Apple Configurator 2
- First, install Apple Configurator 2 from App Store and launch the application.
- Connect your iOS device to the mac through USB. On the device screen, you will be asked if you trust the computer. Tap Trust.
- By default, all the connected devices will appear on the home screen. Double click on the device you wish to get the logs from.
- Click on Console from the menu on the top left corner of the new window. You can see the log activities on the screen.
- Click on Clear to clear the screen and perform the necessary actions (for example, an app crash) you wish to.
- Click on Save button to save the logs.
- First, install Xcode on your mac machine. Next, launch Xcode.
- Connect your iOS device to the Mac through USB.
- Launch Xcode. Go to Windows > Devices and Simulators.
- Reproduce the problem you encountered.
- Choose your device from the devices section on the left side of the screen.
- Click on the up-triangle on the bottom of the screen to view device logs.
- Click on the down arrow on the bottom right of the screen to save the device logs as a file.
- Select View Device Logs button under the Device Information section on the right-hand panel to view crash logs.
- Under Process column on the left, identify and select your app and click on Crash Log to see the contents.
- Right click the corresponding app entry on the Process Column and click on Export Log to save the crash log.
- Install iTools on your Windows machine.
- Launch iTools.
- Connect your iOS device to the Windows machine through USB.
- Click on Toolbox.
- When you are ready to reproduce the issue, click on Real-time log under Advanced Features. You can see the logging happening in real time.
- Click on Save to save the log activities.
- Install iOSLogInfo on your device.
- Extract the contents of the folder to the local hard drive.
- Connect your iOS device to the Windows machine through a cable.
- Open a new command prompt and make sure that you run as administrator.
- On your command prompt, use the following command to navigate to the location where you have extracted the files.
For example, if I have extracted the files to my C drive, the command would be as follows:
- Type in the following command to start capturing the device log to a file. Give a suitable name for the file.
1sdsiosloginfo.exe -d C:\iOSLogInfo\logfile.txt
- Reproduce the action causing the issue.
- Click CTRL+C to stop logging.
- A new text file(logfile.txt) will be created in the iOSLogInfo folder.
Few additional commands are available:
- Capture console logs:
- Capture Crash logs:
- Pull disk_usage:
- Pull Device Stats:
- Pull iTunes logs:
sdsiosloginfo.exe -d > C:\iOSLogInfo\consolelogs.log
Create a new folder(CrashLogs) to store your crash logs.
sdsioscrashlog.exe -e -k C:\iOSLogInfo\CrashLogs
sdsdeviceinfo.exe -q com.apple.disk_usage -x > C:\iOSLogInfo\iOS_Disk_Usage.xml
sdsdeviceinfo.exe -x > C:\iOSLogInfo\iOS_Device_Stats.xml
sdsioscrashlog.exe -e -k C:\iOSLogInfo\ItunesLogs
Need more help?