Mac更新系统后提示xcrun error

更新mac os后无法运行git,gcc等命令,出现missing xcrun错误.

这是因为更新系统后会卸载xcode,重新安装后会缺失xcode的命令行工具(command line tools),所以导致部分工具无法在终端运行。解决方法为运行以下命令:

xcode-select --install

并下载xcode命令行工具即可。

猜你喜欢

转载自blog.csdn.net/zhayujie5200/article/details/79464159