原因与解决

系统更新后XCode不兼容需要重新安装

$ xcode-select --install

报错提示内容

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

参考

  1. mac更新系统后Git不能用,提示missing xcrun at