美文网首页
安装多个版本Xcode时切换默认Xcode

安装多个版本Xcode时切换默认Xcode

作者: frola_ | 来源:发表于2020-01-14 19:44 被阅读0次
//查询当前选中
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就生效啦

相关文章

网友评论

      本文标题:安装多个版本Xcode时切换默认Xcode

      本文链接:https://www.haomeiwen.com/subject/sbgaactx.html