Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
AppleScript to hide iOS Simulator when you run Xcode Tests.
  1. Save Tests.scpt to the folder ~/.Xcode/
  2. Open the folder ~/.Xcode/ in
  3. Perform the command chmod +x ./Tests.scpt in
  4. Open Xcode ➭ Behaviors ➭ Testing Succeeds
  5. Choose ~/.Xcode/Tests.scpt in the Run popup
  6. Open Xcode ➭ Behaviors ➭ Testing Fails and repeat
tell application "System Events" to tell process "iOS Simulator" to keystroke "h" using command down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment