xcrun: error: invalid active developer path

版权声明:本文为翔云原创文章,未经博主允许不得转载。 https://blog.csdn.net/lanyang123456/article/details/84142637

问题

mac升级到10.12(macOS Sierra),执行命令,出现如下错误:

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

解决办法

安装xcode-select

# xcode-select --install

跳出对话框,安装即可。

如报错

Developer Apple上手动下载对应的Command Line Tools 安装即可。

参考

http://www.ttlsa.com/linux/mac-git-xcrun-error-invalid-active-developer-path/

https://blog.csdn.net/lucky9322/article/details/79036877

猜你喜欢

转载自blog.csdn.net/lanyang123456/article/details/84142637