Mac平台git出现xcrun: error: invalid active developer path

来源:互联网 发布:不用网络的三国游戏 编辑:程序博客网 时间:2024/05/16 09:28

今天在mac上操作git,出现的一个问题,记录下来:

$ git checkout -fxcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

解决方式:

$ xcode-select --installxcode-select: note: install requested for command line developer tools$ git checkout -fYour branch is up-to-date with 'origin/master'.

问题已解决。

阅读全文
0 0