无法使用 XCode 4 连接到 svn 存储库 [英] Unable to connect to svn repository with XCode 4

查看:27
本文介绍了无法使用 XCode 4 连接到 svn 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装 XCode 4 后,我转到管理器窗口尝试验证在 XCode 3 中设置的 svn 存储库是否被识别.存储库在那里,但每当我点击一个时,我总是会得到忙等待"微调器.考虑到 XCode 4 没有正确导入存储库信息,我完成了从头开始重新创建存储库之一的步骤.我很确定我已经正确输入了所有详细信息,并且我知道我使用的是正确的密码,但我看到的仍然是忙等待"微调器.除此之外,我对问题可能是什么一无所知.是否有 XCode 写入与连接到 svn 存储库相关的错误信息的日志?我在这里阅读了一些与 svn 和 XCode 4 问题相关的问题,但到目前为止我还没有发现任何类似的问题.

After installing XCode 4 I went to the Organizer window to try to verify that the svn repositories that were set up in XCode 3 were recognized. The repositories were there but whenever I clicked on one I would always get the 'busy-wait' spinner. Thinking that XCode 4 didn't properly import the repository information, I went through the steps to re-create one of the repositories from scratch. I'm pretty sure I've input all the details correctly and I know I'm using the right password, but still all I'm seeing is the 'busy-wait' spinner. Beyond this, I don't know anything more about what the problem might be. Is there a log somewhere to which XCode writes error information related to connecting to svn repositories? I've read a few questions here related to problems with svn and XCode 4 but so far I haven't found anything like what I'm seeing.

当我重新启动 XCode 时,我看到一个对话框,提示无法连接到服务器".这可能与我连接到 svn 的问题有关吗?XCode 可以尝试连接到哪些其他服务器?

When I restart XCode I'm seeing a dialog saying 'Could not connect to server'. Could this be related to my problems connecting to svn? What other server could XCode be trying to connect to?

非常感谢任何帮助.提前致谢.

Any help much appreciated. Thanks in advance.

推荐答案

当我们更改 Subversion 服务器的 IP 地址时,我遇到了同样的问题.您是否正在使用 https 协议进行连接?如果是这样,并且您的 SSL 证书是内部生成的,则 xCode 不接受它.

I hade the same problem when we changed the IP address of our Subversion server. Are you using the the https protocol to connect by any chance? If so and your SSL certificate is internally generated xCode is not accepting it.

我找到的解决方案是:

重命名我的本地源代码 checkout 文件夹并备份它(要特别确定)

Rename my local source code checkout folder AND back it up (to be extra sure)

用原来的名字新建一个本地源代码签出文件夹

Create a new local source code checkout folder with the original name

使用终端中的 svn 命令行实用程序再次将我的项目检出到新文件夹,这将显示消息:

Checkout my projects again to the new folder using the svn command line utility in terminal which will show you the message:

  • 证书不是由受信任的机构颁发的.使用指纹以手动验证证书!

但您可以选择永久接受指纹".签出后,在 xCode 中打开项目并转到 Organizer 窗口,您应该会看到您的存储库亮起绿灯!

but you have the option to permanently accept the "fingerprint". Once checked out open the project in xCode and go to the Organizer window and you should see your repository there with a green light!

当然,现在您必须从重命名或备份的原始源中迁移任何修改过的源,这有点令人头疼.不过不要复制项目文件,否则会搞砸.

Naturally now you have to migrate across any modified source from you renamed or backed up original which is a bit of a headache. Don't copy the project file though or it will mess things up.

可能不适用于您的情况,但我在主机文件中添加了一个条目,因此如果我们的存储库再次移动,我将不会遇到此问题!

May not apply in your case but I added an entry to the hosts file so if our repository moves again I won't have this problem!

这篇关于无法使用 XCode 4 连接到 svn 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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