mac 升级后 出现xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

mac 升级到新版本后, 终端使用 git 报了个没见过的错:

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

跟度娘上找了下答案,原来大神们早有解决办法,留个念

   xcode-select --install

弹框 -> 安装 -> 等待 ·······

你可能感兴趣的:(mac 升级后 出现xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun)