Created
November 1, 2014 15:20
-
-
Save viktorbenei/4c33a26d22e25e8e2773 to your computer and use it in GitHub Desktop.
Bitrise: list Xcode versions
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
#!/bin/bash | |
FILES=/Applications/Xcodes/Xcode*.app | |
for f in $FILES | |
do | |
echo "--------------" | |
echo "Switching to Xcode at: ${f}" | |
xcode_switch_arg="${f}/Contents/Developer" | |
sudo xcode-select --switch "${xcode_switch_arg}" | |
echo " Version info:" | |
xcodebuild -version | |
echo " SDKs:" | |
xcodebuild -showsdks | |
echo "--------------" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment