Mac 升级后 git终端报错

279 阅读1分钟

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

系统升级到了最新后,在使用终端命令时会出现如上问题:

解决方法是:终端执行 重装 Xcode

xcode-select --install