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

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

2017-11-15 17:21 615 查看
今天在mac上操作git,出现的一个问题,记录下来:

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

解决方式:
$ xcode-select --install
xcode-select: note: install requested for command line developer tools
$ git checkout -f
Your branch is up-to-date with 'origin/master'.

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