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

 

第一次使用终端跑C程序,输入gcc 程序名.c的时候出现下面错误

 

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

 

在终端中输入以下命令行安装开发者工具就行了

xcode-select --install

 

posted @ 2020-03-23 15:01  西红柿里没有番茄  阅读(765)  评论(0编辑  收藏  举报