首页 > 其他 > 详细

新装Xcode6,使用终端操作git时的问题

时间:2014-09-24 10:05:47      阅读:243      评论:0      收藏:0      [点我收藏+]

新装了Xcode之后,使用终端git的 gs(git status)命令时会出现

xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use xcode-select to change
 
解决:
It seems you had an Xcode installed in /Volumes/Xcode/Xcode.app, and then removed it.

Try executing this from a terminal:

sudo xcode-select --switch /Applications/Xcode.app
然后会有一个警告提示:

WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information.

To proceed, enter your password, or type Ctrl-C to abort.

Password:

此时输入密码,然后再gs一下就可以看到问题是否已经解决

新装Xcode6,使用终端操作git时的问题

原文:http://www.cnblogs.com/NINIiOS/p/3989850.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!