美文网首页iOS 开发 iOS Developer
升级系统至10.11 后,git 命令无效解决方案

升级系统至10.11 后,git 命令无效解决方案

作者: 小孩不爱擦地板 | 来源:发表于2016-02-28 22:28 被阅读69次

报错如下:

xcrun: error: active developer path ("/Applications/Xcode6.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man code-select`)

因为我安装了两个版本 XCode ,又升级了系统。

解决方案:sudo xcode-select-switch/Applications/Xcode.app/Contents/Developer

相关文章

网友评论

    本文标题:升级系统至10.11 后,git 命令无效解决方案

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