Skip to content

Instantly share code, notes, and snippets.

@ahoppen
Created February 27, 2015 10:38
Show Gist options
  • Save ahoppen/aa71c48bafd62472a446 to your computer and use it in GitHub Desktop.
Save ahoppen/aa71c48bafd62472a446 to your computer and use it in GitHub Desktop.
Focus Xcode after test has been started
#!/bin/sh
# Add this script as an action to Xcode -> Behaviours -> Edit Behaviours... -> Testing starts
# to automatically jump back from the simulator to Xcode when unit test are started
sleep 3
osascript -e 'tell application "Xcode" to activate'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment