Skip to content

Instantly share code, notes, and snippets.

@thapakazi
Forked from brentvatne/logs.markdown
Created August 19, 2025 04:22
Show Gist options
  • Save thapakazi/1a8c68b469ff7295d09b5e3ab3b59ab7 to your computer and use it in GitHub Desktop.
Save thapakazi/1a8c68b469ff7295d09b5e3ab3b59ab7 to your computer and use it in GitHub Desktop.
Logs for iOS / Android on your computer

Logs in iOS simulator

Option 1: Use GUI log

  1. In simulator, press ⌘ + / or go to Debug -> Open System Log.
  2. That's it.

Option 2: Open it in terminal

  1. Run instruments -s devices
  2. Find the device / OS version that the simulator you are using, eg: iPhone 6s (9.2) [5083E2F9-29B4-421C-BDB5-893952F2B780]
  3. The part in the brackets at the end is the device code, so you can now do this tail -f ~/Library/Logs/CoreSimulator/DEVICE_CODE/system.log, eg: tail -f ~/Library/Logs/CoreSimulator/5083E2F9-29B4-421C-BDB5-893952F2B780/system.log

Logs from iOS device

  1. brew install libimobiledevice
  2. Plug your phone in
  3. idevicepair pair
  4. Accept on your device
  5. Run idevicesyslog

Logs from Android device

  1. Ensure Android SDK is installed
  2. Run adb logcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment