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

2019-10-23 更新:
升级到 Catalina 之后,也遇到了同样到问题。解决方案是一样的,如下:

你已经从 App Store 更新到了 OS EI Capitan 吗?
你是否突然在项目中得到如下错误?

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

如果是,这里是解决方法:
xcode-select --install

请记住,在 Mac 中 git 是依附在 XCode 的命令行工具上的

原文链接

你可能感兴趣的:(git,mac,git,xcode)