Last active
January 27, 2024 23:17
-
-
Save maxchuquimia/c9f72c80620f2e65035992cdea19f087 to your computer and use it in GitHub Desktop.
Shutdown all Simulator clones created by Xcode when running tests
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 --set testing list | grep Booted | grep Clone | sed 's/^.*(\([A-Z0-9\-]*\)).*$/\1/g' | xargs -I {} xcrun simctl --set testing shutdown "{}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I put this in Xcode Preferences > Behaviours > Testing > Succeeds > Run 😊