Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A script to stream all the logs that simulator is currently booted
#/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