Xcode 4.2 SVN 问题

发布于 2024-12-11 22:08:50 字数 388 浏览 0 评论 0原文

自从我升级到 4.2 以来,我在将项目存储库连接到 Xcode 时遇到了问题。我有一个带有转发端口的本地服务器,可以从本地网络外部访问。我有一条指向外部 IP 的 DNS 记录。当我明确定义外部IP时(即 https://123.456.789.000/svn/...) 存储库已正确链接,没有问题。当我指定内部地址时这也有效。问题是当我使用存储库 dns 时 - Xcode 显示一个带有“主机无法访问”的红点。我确信这是 Xcode 4.2 特定的问题,因为我在其他客户端(包括较旧的 Xcode 版本)中尝试过此操作。基本问题是 - 外部 DNS 不适用于 https。
有什么想法吗?

I am having trouble connecting my project repository to Xcode, ever since I've upgraded to 4.2. I have a local server with a forwarded port to be accessed from outside the local network. I have a DNS record pointing to the external ip. When I explicitly define the external ip (i.e https://123.456.789.000/svn/...) the repository is properly linked, no problems. This also works when I specify the internal address. The issue is when I use the repository dns - Xcode shows a red dot with "Host Unreachable". I am sure this is an Xcode 4.2 specific issue, because I tried this in other clients, including older Xcode versions. The basic problem is - the external DNS doesn't work with https.
Any ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

初与友歌 2024-12-18 22:08:50

以上都对我不起作用,但这里是有效的:

我继续在 Xcode 4.2 中收到“不受信任的证书”错误 - 我可以看到提示在 Xcode 中显示为只读

所以,我从以下位置访问了我的 svn 服务器站点通过 svn 命令提示符实用程序并执行了一个虚拟操作:

svn co https://mysvnserver.com/project/

我在提示符上看到了与 Xcode 中相同的错误:

Error validating server certificate for 'https://mysvnserver.com:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: *.svn.mysvnserver.com
....
....
....
R)eject, accept (t)emporarily or accept (p)ermanently? 

现在这里是关键:我在这里点击了 p 来接受(p)永久,我可以通过提示访问存储库。接下来,我打开 Xcode 并打开存储库——一切都运行得完美无缺。

None of the above worked for me BUT here is what worked:

I continued to get the "untrusted certificate" error in Xcode 4.2 -- i could see that a prompt is being presented as readonly in Xcode

So, I accessed my svn server site from via the svn command prompt utility and did a dummy operation:

svn co https://mysvnserver.com/project/

I saw the same error on the prompt as in Xcode:

Error validating server certificate for 'https://mysvnserver.com:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: *.svn.mysvnserver.com
....
....
....
R)eject, accept (t)emporarily or accept (p)ermanently? 

Now here is the key : I hit a p here to accept (p)ermanently, and I was able to access the repository via the prompt. Next, I opened Xcode and opened the repository -- everything worked flawlessly.

小猫一只 2024-12-18 22:08:50

我遇到了与您类似的问题,我建议您尝试:

  1. 关闭 Xcode + Organizer
  2. 在 Safari(不是任何其他浏览器)中打开您的 svn Web 地址 - 使用 dns 名称
  3. 它应该显示该地址不受信任,因为证书是不同的名称/ 地址
  4. 单击“显示证书”,然后勾选“始终信任”框,然后继续,
  5. 它可能会提示您输入 mac 用户名/密码以添加到钥匙串中
  6. 打开 xcode 并使用 DNS 名称重试。

xcode 和访问的问题svn 服务器的 HTTPS 证书未通过任何检查(无论是主机匹配、自签名等)。在 safari 中打开地址并添加为可信地址可以解决此问题!

I had issues similar to yours, I suggest you try:

  1. Close Xcode + Organiser
  2. Open your svn web address in Safari (not any other browser) - using the dns name
  3. It should come up saying the address is untrusted as the cert is a different name / address
  4. Click show certificate and then tick the box saying always trust then continue
  5. it may prompt you for your mac username / password to add to the keychain
  6. Open xcode and try again using the DNS name..

The issue with xcode and accessing svn servers which have HTTPS certificates which fail any of the checks (be it host matching, self signed etc..). Opening the addresses in safari and adding as trusted solves this problem!

半暖夏伤 2024-12-18 22:08:50

在终端中运行命令,

svn info https://example.com/svn

然后它会提示您“(R)eject,accept(t)emporously还是accept(p)permanently?”
按p,问题就解决了

Run command in Terminal

svn info https://example.com/svn

It will then prompt you the "(R)eject, accept (t)emporarily or accept (p)ermanently?"
Press p and problem will be solved

梓梦 2024-12-18 22:08:50

您可以使用端口号而不是 https 方案 (http://someurl.com:443/svn) 输入 URL:

  • 单击“下一步”后,Xcode 显示它可以解析主机名:

  • 输入存储库凭据和路径等...:

You could enter your url using the port number instead of the https scheme (http://someurl.com:443/svn):

  • After clicking Next, Xcode shows that it can resolve the hostname:

  • Enter repo credentials and paths, etc..:

风流物 2024-12-18 22:08:50

这是 Xcode 4.2 的问题,您只需等待 Apple 的更新或返回到之前的版本即可。虽然这些链接(您可能已经阅读过)可能无法解决问题,但它至少可以为您提供更多信息

在 XCODE 4.2 中设置 SVN 存储库

升级到 Xcode 4.2 后,Organizer - SVN 存储库停止工作

https://discussions.apple.com/thread/3375258?start=0&tstart=0

This is an Xcode 4.2 issue and you are just going to have to wait for an update from Apple or go back to a previous version. While these links (which you've probably already read) may not solve the problem, it may at least give you further information

Setting up SVN repository in XCODE 4.2

After upgraded to Xcode 4.2, Organizer - SVN repository stopped working

https://discussions.apple.com/thread/3375258?start=0&tstart=0

忘年祭陌 2024-12-18 22:08:50

Xcode 的 SVN 部分偶尔会出现异常。如果您的网络速度很差,Xcode 将无法正确更新文件状态。 (根据过去的经验。)

我建议您尝试 svnXSmartSVN 客户端。

正如上面的回复所述,请在浏览器中检查您的服务器 URL。无论您是否指向正确的 svn 服务器 URL,它都会很有帮助。

Few times SVN part of Xcode behaves abnormally. If your network speed is bad, Xcode doesn't update the file status properly. (From past exp.)

I suggest you to try either svnX or SmartSVN clients.

As said in above responses, do check your server URL in a browser. It really helps if you are pointing to proper svn server URL or not.

痞味浪人 2024-12-18 22:08:50

只需在终端窗口中导航到 ~/Documents/[projectname] 并从那里执行 svn 提交怎么样?系统应该会提示您接受证书。

也许 Xcode 在幕后做了一些事情,这使得这是一个坏主意?我只是不知道在 Xcode 中进行提交(即“文件”>“源代码控制”>“提交”)或仅从命令行进行提交是否有任何区别。我之前都做过,没有发现任何问题。

What about just navigating in a terminal window to ~/Documents/[projectname] and doing the svn commit from there? You should get prompted to accept the cert.

Perhaps Xcode does some things behind the scenes that make this a bad idea? I just don't know if there is any difference between doing your commits within Xcode (i.e. File > Source Control > Commit) or just doing it from the command line. I've done both before and haven't noticed any problems.

傲娇萝莉攻 2024-12-18 22:08:50

我搜索了好几天,最后发现这是一个错误。我正在等待 Xcode 的下一次更新。与此同时,我正在使用 SmartSVN...

如果您确实需要在 IDE 中使用 SVN 功能,我建议降级 Xcode,但这样您将无法构建iOS 5,我确信您想要......

您最好的选择是提交错误报告(许多人已经这样做了)并等待并观看。

I've searched for days and in the end figured that it's a bug. I'm waiting for the next update for Xcode. In the meantime, I'm making do with SmartSVN....

If you really do need to use the SVN functionality in the IDE, I suggest downgrading Xcode but then you will not be able to build to iOS 5, which I'm sure you want to....

Your best bet is to file a bug report (which many have done already) and wait and watch.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文