Skip to content

Instantly share code, notes, and snippets.

@maxchuquimia
Last active January 27, 2024 23:17
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxchuquimia/c9f72c80620f2e65035992cdea19f087 to your computer and use it in GitHub Desktop.
Save maxchuquimia/c9f72c80620f2e65035992cdea19f087 to your computer and use it in GitHub Desktop.
Shutdown all Simulator clones created by Xcode when running tests
xcrun simctl --set testing list | grep Booted | grep Clone | sed 's/^.*(\([A-Z0-9\-]*\)).*$/\1/g' | xargs -I {} xcrun simctl --set testing shutdown "{}"
@maxchuquimia
Copy link
Author

maxchuquimia commented Jan 9, 2020

I put this in Xcode Preferences > Behaviours > Testing > Succeeds > Run 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment