Getting Logs on iOS Devices

This article explains how to obtain iOS device logs using Mac, Windows and Linux devices.

Using Mac Device

  1. Connect your iOS device to a Mac.
  2. Select Trust this computer on the iOS pop-up request.
  3. Start the Console app and choose the relevant device.
  4. Select your connected iOS device, and you will see the iOS device logs being gathered.
  5. You can filter the log messages using the search bar on top right.
  6. Reproduce the problem.
  7. Highlight all of the log data.
  8. Copy the log messages using Command + C or Edit > Copy
  9. Open a text editor and paste the data
  10. Save this log file as a .log

Using Windows Device

  1. Install iTools on your Windows machine.
  2. Launch iTools.
  3. Connect your iOS device to the Windows machine through USB.
  4. Click on Toolbox.
  5. 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.
  6. Click on Save to save the log activities.

Using Ubuntu Device

  1. Install the libimobiledevice libraries.
    sudo apt-get install libimobiledevice6 libimobiledevice4 libimobiledevice-utils ifuse usbmuxd libplist3
  2. Connect your iOS device to Ubuntu computer and check its availability:
    dmesg |grep ipheth
  3. If the device is recognized, check that it is paired with the computer:
    $ idevicepair list
    If desired, you can update the pairing:
    $ idevicepair unpair
    $ idevicepair pair
  4. Select Trust this computer on the iOS pop-up request.
  5. Create the mount point:
    $ sudo mkdir /mnt/iphone
  6. Change access rights:
    $ sudo chmod 777 /mnt/iphone/
  7. Run the iOS device multiplexer daemon. We recommend that you run the service interactively in a separate terminal window while debugging:
    $ sudo usbmuxd -fv
    If you need to stop the daemon later, use the command
    $ sudo usbmuxd -X
  8. Reproduce the problem.
  9. Mount the iOS file system to the previously created mount point:
    $ ifuse /mnt/iphone/

The command is executed without the “sudo” prefix.

  1. Run the command:
    idevicesyslog | grep <your app name>
    This will show you all debug info and logs from NSLog statements.

You can unmount the iOS file system using the standard command:

$ umount /mnt/iphone

CONTENTS
Sign-in
Sign-in with your SmartLabs Support Portal account credentials to see non-public articles.