码迷,mamicode.com
首页 > 其他好文 > 详细

c文件终端运行报xrun错误

时间:2015-07-18 15:26:53      阅读:105      评论:0      收藏:0      [点我收藏+]

标签:

在终端touch aa.c文件后,在c文件中写完代码(编译运行)cc aa.c时,

报xcrun: error: active developer path ("/Applications/Xcode.app/Contents/Developer") does not exist, use xcode-select to change

执行 sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 即可解决。

另外,如果输入密码显示不出来,原因主要是mac电脑在保护你的隐私,其实已经输入了密码,只是看不出来输入了而已,你只需要输入自己的密码,点击enter键便可以了!

c文件终端运行报xrun错误

标签:

原文地址:http://www.cnblogs.com/2812570174mm/p/4656876.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!