打开终端:
1.查看xcode-select可使用命令
xcode-select -h 或者 xcode-select --help
2.查看当前Xcode版本路径:
xcode-select -p 或者 xcode-select -print-path
3.切换xcode路径:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer(xcode路径)
4.查看当前Xcode的版本:
xcodebuild -version