Created
October 15, 2016 13:24
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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