A script to stream all the logs that simulator is currently booted
This file contains 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 | |
A=`xcrun simctl list | grep Booted | perl -ne 'print "$1\n" if / \(([0-9A-Z\-]+)\) /' | sort | uniq ` | |
for UUID in $A | |
do | |
xcrun simctl spawn $UUID log stream --level debug\ | |
--timeout 1h\ | |
--style compact \ | |
--predicate 'subsystem == "my.domain.name"' & | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment