xcode-select Command Examples

Switch between different versions of Xcode and the included developer tools. Also used to update the path to Xcode if it is moved after installation. More information: https://developer.apple.com/library/archive/technotes/tn2339/_index.html.

xcode-select --install

xcode-select --switch {{path/to/Xcode.app/Contents/Developer}}

xcode-select --switch {{path/to/Xcode_file.app}}

xcode-select --print-path

sudo xcode-select --reset