--- title: "Extracting Logs from an iOS Device" slug: "extracting-logs-from-an-ios-device" updated: 2026-02-05T11:37:25Z published: 2026-02-05T11:37:25Z canonical: "docs.smarsh.com/extracting-logs-from-an-ios-device" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.smarsh.com/llms.txt > Use this file to discover all available pages before exploring further. # Extracting Logs from an iOS Device 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. Download the library [here](https://github.com/libimobiledevice/libimobiledevice). #### 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` ![](https://cdn.document360.io/20248637-fef6-4111-82b6-c3bf43c0155e/Images/Documentation/extracting-logs-from-an-ios-device-image-lqctndd9.png?sv=2026-02-06&spr=https&st=2026-11-10T16%3A44%3A28Z&se=2026-11-10T17%3A44%3A28Z&sr=c&sp=r&sig=XSEcg4Lv2OfO0XjBIJA2HUDwoSfvfG4KBR5ea4tG2KY%3D) 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**. > **Note** > > You might see **Open cmd window here**. ![](https://cdn.document360.io/20248637-fef6-4111-82b6-c3bf43c0155e/Images/Documentation/extracting-logs-from-an-ios-device-image-yu2dek5y.png?sv=2026-02-06&spr=https&st=2026-11-10T16%3A44%3A28Z&se=2026-11-10T17%3A44%3A28Z&sr=c&sp=r&sig=XSEcg4Lv2OfO0XjBIJA2HUDwoSfvfG4KBR5ea4tG2KY%3D) 1. In the PowerShell window, type .\idevicesyslog.exe > log.txt 2. Connect your iPhone to the PC using a USB cable. 3. Open WhatsApp and replicate the crash. 4. After crash has occurred, wait for 15 to 20 seconds. 5. Type Ctrl+C in the opened shell. “Exiting…” is displayed. 6. A file named log.txt is created in the extracted directory. 7. 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. ![](https://cdn.document360.io/20248637-fef6-4111-82b6-c3bf43c0155e/Images/Documentation/extracting-logs-from-an-ios-device-image-vigcsk58.png?sv=2026-02-06&spr=https&st=2026-11-10T16%3A44%3A28Z&se=2026-11-10T17%3A44%3A28Z&sr=c&sp=r&sig=XSEcg4Lv2OfO0XjBIJA2HUDwoSfvfG4KBR5ea4tG2KY%3D) 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.