Skip to content

Instantly share code, notes, and snippets.

@brentvatne
Last active February 17, 2022 16:00
Show Gist options
  • Star 19 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brentvatne/7210bfbc9ad209fb49dd to your computer and use it in GitHub Desktop.
Save brentvatne/7210bfbc9ad209fb49dd 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