- In simulator, press
⌘ + /
or go toDebug -> Open System Log
. - That's it.
- Run
instruments -s devices
- Find the device / OS version that the simulator you are using, eg: iPhone 6s (9.2) [5083E2F9-29B4-421C-BDB5-893952F2B780]
- 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
brew install libimobiledevice
- Plug your phone in
idevicepair pair
- Accept on your device
- Run
idevicesyslog
- Ensure Android SDK is installed
- Run
adb logcat