Xcode 4.4 - 找不到遥控器 [英] Xcode 4.4 - no remotes found

查看:108
本文介绍了Xcode 4.4 - 找不到遥控器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装10.8和Xcode 4.4后,当我尝试使用Xcode集成方式推送到远程时,Xcode告诉我'找不到远程程序'。我仍然能够通过命令行成功推送,所以我的实际存储库没问题。我已经安装了命令行工具,并尝试了几次重新启动Xcode。另外,如果我去组织者并尝试选择存储库,我所得到的只是一个旋转活动指标。如果我为给定的存储库选择远程,它是空白的。请注意,Xcode 不会识别git,因为它确实显示哪些文件被修改并允许提交。 / usr / bin /中报告的系统git版本为:

  git 1.7.9.6版(Apple Git-31.1)

是否有其他人遇到此问题,或者您是否有任何补救建议(或至少有一个地方可以查看一个日志看看发生了什么错误)?

UPDATE 10/18/13



在Xcode 5中解决了这个问题。

解决方案

在Xcode或命令行中(与添加它的位置无关),请确保您使用存储库的完整路径。



例如:



从命令行中可以指定

  git remote add< name>当您的example.git位于gituser的主目录中时,gituser @ gitserver:example.git 

然而Xcode不能处理这个注解,并且当你尝试将你的提交推送到这个远程仓库时会说没有找到遥控器。

为了满足Xcode,你应该输入整个路径如下:

  git remote add< name> gituser @ gitserver:/home/gituser/example.git 


Post-installation of 10.8 and Xcode 4.4 when I try to push to a remote using the Xcode integration Xcode is telling me 'no remotes found'. I am still able to push successfully via command line so my actual repositories are fine. I've installed the command line tools and have tried restarting Xcode several times. Additionally, if I go to Organizer and try to select the repository all I get is a spinning activity indicator. If I select 'remotes' for a given repository it's blank. Note that Xcode does recognize git is available though as it does show which files are modified and allows commits. Reported system git version in /usr/bin/ is:

git version 1.7.9.6 (Apple Git-31.1)

Is anyone else experiencing this, or do you have any suggestions for a remedy (or at least a place to look at a log to see what is going wrong)?

UPDATE 10/18/13

This issue has been resolved in Xcode 5.

解决方案

When you add the remote repository in Xcode or in command line (doesn't matter from where you add it) make sure that you use the full path for your repository.

E.g.:

From commandline it's enough to specify

git remote add <name> gituser@gitserver:example.git

when your example.git is located in gituser's home directory. However Xcode can't deal with this annotation and says "No remotes found" when you try pushing your commits to this remote repository.

In order to satisfy Xcode you should type the whole path like:

git remote add <name> gituser@gitserver:/home/gituser/example.git

这篇关于Xcode 4.4 - 找不到遥控器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆