Skip to content

Instantly share code, notes, and snippets.

@viktorbenei
Created November 1, 2014 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktorbenei/4c33a26d22e25e8e2773 to your computer and use it in GitHub Desktop.
Save viktorbenei/4c33a26d22e25e8e2773 to your computer and use it in GitHub Desktop.
Bitrise: list Xcode versions
#!/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