安装
1
xcode-select --install

Xcode版本切换
显示当前使用的xocde版本
1
$ xcode-select --print-path
选择Xcode中的默认版本
1
$ sudo xcode-select -switch /Applications/Xcode.app
1
xcode-select --install

1
$ xcode-select --print-path
1
$ sudo xcode-select -switch /Applications/Xcode.app