Extracting Logs from an iOS device

Contact Us

Contact Us

[contact-form-7 404 "Not Found"]

If the app on you iOS device crashes, you can extract low level logs in one of the ways described in this topic.

Using the libimobiledevice Library

You can extract logs from the app using the libimobiledevice library on a MAC or Windows PC.

On MAC

  1. Download the latest version of the libimobile library.
  2. Extract the contents of the zipped file to your MAC.
  3. Open the terminal and navigate to the directory where you have extracted the contents of the zipped file.
  4. Run the following commands:
    1. chmod 777 *
    2. ./idevicesyslog
  5. Approve several times for each file.
  6. Open System Preferences.
  7. Navigate to Security & Privacy.
  8. In the General tab, under Allow apps downloaded from, click Open Anyway.

On Windows PC

  1. Download the latest version of the libimobile library.
  2. Extract the contents of the zipped file to your PC.
  3. Navigate to the location where the extracted directory is saved.
  4. Press Shift on your keyboard and right-click the directory.
  5. Click Open PowerShell window here. (You might see Open cmd window here).
  6. In the PowerShell window, type .\idevicesyslog.exe > log.txt
  7. Connect you iPhone to the PC using a USB cable.
  8. Open WhatsApp and replicate the crash.
  9. After crash has occurred, wait for 15 to 20 seconds.
  10. Type Ctrl+C in the opened shell.
    “Exiting…” is displayed.
  11. A file named log.txt is created in the extracted directory.
  12. Share the file with your Smarsh representative.

Using the Console App

  1. Connect your iPhone to your MAC.
  2. Open the Console app.
  3. Select the connected iPhone on the left menu and click Start to start streaming.
  4. Reproduce the crash.
    Logs are streamed in the Console.
  5. Copy all the log entries and paste them in any text editor.
  6. Save the file.
  7. Share the file with your Smarsh representative.
Skip to content