(1)查看xcode-select可使用命令
xcode-select -h
or
xcode-select --help
(2)查看当前正在使用的Xcode版本路径
xcode-select -p
or
xcode-select --print-path
(3)查看xcode-select版本
xcode-select -v
or
xcode-select --version
(4)重置为默认的命令行路径
xcode-select -r
or
xcode-select -reset
(5)修改Xcode使用版本
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
or
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
参考:https://www.jianshu.com/p/ddbdc4400dee
-----------------------------------------------------------
个人博客:https://blog.csdn.net/Crazy_SunShine
个人公众号:Flutter小同学