中午吃饭之前升级了一下我的mac 回来兴致勃勃的准备敲代码
发现俺的git推不上去了
出现这行报错: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
翻译一下 - xcrun:错误:无效的活动开发人员路径 缺少xcrun
OK 问题不大 重装下 xcode command line
xcode-select --install
顺利解决
要是还是不行的话 试试 sudo xcode-select -switch /