报错信息:
~ $ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
修复方案:
~ $ xcode-select --install
xcode-select: note: install requested for command line developer tools
触发 xcode 更新,确认更新即可。