konstantinbueschel
7/14/2017 - 9:19 AM

Switch Xcode version from CLI

Switch Xcode version from CLI

# print current selected Xcode path
xcode-select --print-path

# switch to another version of Xcode
sudo xcode-select --switch /PATH/TO/YOUR/OTHER/XCODE/Xcode45.app

# switch back to main Xcode version / installation
sudo xcode-select --switch /Applications/Xcode.app