mac系统升级后,git报xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Librar

小蕊 发表于: 2016-10-09   最后更新时间: 2016-10-09 17:32:09   4,073 游览

今天升级了苹果的mac系统
git就不能用了,报

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

请问有人遇到过吗?

发表于 2016-10-09

打开终端输入

xcode-select --install



( 回车后,系统弹出下载xcode,点击确认,下载完成后即可。(实际上不是下载xcode,可能下载xcode有关插件,下载时长约1分钟)

出现这个错误原因猜想可能是因为之前安装过xcode卸载后出现的。)

你的答案

查看kafka相关的其他问题或提一个您自己的问题