Mac更新系统后提示xcrun error

xcrun: error: invalid active developer path (/Library/Developer/CommandLineT
更新mac os后无法运行git,gcc等命令,出现missing xcrun错误.
这是因为更新系统后会卸载xcode,重新安装后会缺失xcode的命令行工具(command line tools),所以导致部分工具无法在终端运行。解决方法为运行以下命令:
xcode-select --install
并下载xcode命令行工具即可。

(转自https://blog.csdn.net/wth123456/article/details/82838828,如侵联删)

原文地址:https://www.cnblogs.com/Basu/p/13432456.html