XCode4 添加存储库主机无法访问? [英] XCode4 add Repository Host Unreachable?

查看:58
本文介绍了XCode4 添加存储库主机无法访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将远程 linux SVN 存储库添加到我的项目中,但是当我输入服务器地址时,我收到消息主机无法访问.

I'm trying to add a remote linux SVN repository to my project but when I enter the server address I get the message Host is unreachable.

我正在输入它

svn://ip_address/myproject/ 

从终端我可以做到这一点

From terminal I can do this

svn list svn://ip_address/myproject/

它显示的内容没有任何问题.

and it shows the contents without any issues.

推荐答案

我在链接到 Git 存储库时也遇到了这个问题.XCode 似乎在 IP 地址方面存在一些问题.我发现通过修改我的主机(Mac 上的/private/etc/hosts)文件并为存储库的 IP 地址添加一个条目就可以了.

I had this problem as well in linking to a Git repository. It seems XCode has some issues with IP addresses. I found that by modifying my hosts (/private/etc/hosts on Mac) file and adding an entry for the repository's IP address does the trick.

主机文件条目:

i.p.add.ress  serverName  #where i.p.add.ress is your ip_address

在 XCode 的位置字段中:

In the Location field in XCode:

svn://serverName/myproject

上述引用其他问题答案的评论并未涵盖 IP 地址问题.希望这也能解决您的问题.

The comments above referencing the other question's answer doesn't cover the IP address issue. Hopefully this will fix your issue too.

这篇关于XCode4 添加存储库主机无法访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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