Skip to content

Instantly share code, notes, and snippets.

@xr1337
Last active May 24, 2021 08:02
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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