Skip to content

Instantly share code, notes, and snippets.

@dolphinsue319
Created October 15, 2016 13:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dolphinsue319/ffcc7d3fab51dc8e494a9d578f7ea66c to your computer and use it in GitHub Desktop.
Save dolphinsue319/ffcc7d3fab51dc8e494a9d578f7ea66c to your computer and use it in GitHub Desktop.
Observe watch app and iPhone app's console log at the same time.
#!/bin/bash
myArray=($(xcrun simctl list pairs | grep Booted | cut -d "(" -f2 | cut -d ")" -f1))
tail -f ~/Library/Logs/CoreSimulator/${myArray[0]}/system.log -f ~/Library/Logs/CoreSimulator/${myArray[1]}/system.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment