mac下执行git命名 xcrun: error: active developer path错误解决方法

来源:互联网 发布:php大转盘抽奖源码 编辑:程序博客网 时间:2024/06/07 00:32

1.错误信息如下

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

2.解决方案

1.Install Command Line Tools (if you haven’t already):

xcode-select --install

2.Change the active directory:

sudo xcode-select -switch /Library/Developer/CommandLineTools

阅读全文
0 0