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

解决办法:

在终端输入:

xcode-select --install

原文地址:https://www.cnblogs.com/iOS-mt/p/10451834.html