Created
November 11, 2019 18:53
-
-
Save MLKrisJohnson/359ee9fa590ad6eda3c464f6bbf559f2 to your computer and use it in GitHub Desktop.
AppleScript that tells Xcode to do a "Clean" and then a "Build"
This file contains hidden or 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
tell application "Xcode" | |
tell active workspace document | |
set actionResult to clean | |
repeat | |
if completed of actionResult is true then | |
exit repeat | |
end if | |
delay 0.5 | |
end repeat | |
set actionResult to build | |
repeat | |
if completed of actionResult is true then | |
exit repeat | |
end if | |
delay 0.5 | |
end repeat | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tip: In Script Editor > Preferences > General, enable the Script Menu, and then put this script in your
~/Library/Scripts/Applications/Xcode
directory so it will appear in the script menu when Xcode is active.