您的位置:首页 > 运维架构

xcrun: error: invalid active developer path, missing xcrun 错误;

2017-02-07 10:03 603 查看
在终端里使用git的时候,弹出一行莫名其妙的错误:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun重装了一下xcode command line:
xcode-select --install
有可能在这里你的问题就已经解决了,但是并不是所有人重装都能解决问题,有些人似乎还要手动切换下xcode的路径才能解决。sudo xcode-select -switch /个人推断可能是因为git所需的lib关联到了command line tools,mac升级时改动了lib的路径所致。

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  xcode git
相关文章推荐