Skip to content

Instantly share code, notes, and snippets.

@jonathanpenn
Created February 2, 2011 03:52
Show Gist options
  • Save jonathanpenn/807211 to your computer and use it in GitHub Desktop.
Save jonathanpenn/807211 to your computer and use it in GitHub Desktop.
Toggle Xcode between Device and Simulator SDKs
tell application "Xcode"
set targetProject to project of active project document
tell targetProject
if active SDK contains "iphoneos" then
set active SDK to "iphonesimulator"
else
set active SDK to "iphoneos"
end if
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment