xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun ...

升级了Mac系统,并下载安装了 xCode 之后,使用 git 命令,报错如下:

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

在终端执行命令如下:

$ xcode-select --install

就好了。

多谢 stackoverflow

猜你喜欢

转载自blog.csdn.net/weixin_34315485/article/details/86879152