//查询当前选中
Xcode xcode-select -p
//切换xcode
sudo xcode-select -s /Applications/Xcode.app
如果通过命令切换Xcode不生效的话 到~/.bash_profile文件中检查一下DEVELOPER_DIR路径 将DEVELOPER_DIR修改成想要修改的Xocde路径
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
//然后保存下配置
source ~/.bash_profile
在检查当前选中的Xcode就生效啦
网友评论