Created
January 13, 2016 18:41
-
-
Save mr-fixit/93babda8fa0c3db4d53a to your computer and use it in GitHub Desktop.
bulk delete ios simulators
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
xcrun simctl list devices | awk '/-- .* --/ { if ( $2 == "iOS" && $3 ~ /8*/ ) { inIOS = 1 } else { inIOS = 0 }}; { if ( inIOS && match($0,/\([0-9A-F\-]*\)/) ) { print substr($0,RSTART+1, RLENGTH-2) }} ' | xargs -I {} xcrun simctl delete {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment