Use Xcode 4 subversion integration with custom port?

假装没事ソ 提交于 2019-12-23 03:12:18

问题


I have to connect to my workplace's subversion. The ip is open on a specific port. I have tried to connect with Tortoise from my Win 7 laptop and it works just fine, so I guess the subversion server and repository is all right.

When ever I insert the IP to the subversion server the Repository-wizard in Xcode 4 says it can connect (to the server). But when ever I put the custom port number after with ":" between it cant checkout from subversion.

The url I want to connect to is: xxx.xxx.xxx.xxx:xxxx

The Ip only should work since it says "Host is reachable", but with the port specified the wizard says "Host is unreachable".

I'm terrified with the thought that Apple only made the subversion integration work on default port. - Thats just typical Apple.

Any ideas please, on how to connect to subversion using a specific port.


回答1:


I experienced almost the same problem, excepting that I even could not get "Host is reachable" message with any part of my URL. I found several possible reasons and several solutions, such as:

  • XCode sends local user's credentials and SVN cannot authorize user; You should try to execute any svn command from terminal with no credentials and, when it asks, enter right ones;
  • XCode cannot work with SVN on custom port; You should change SVN port to default;

But none of them worked for me. But finally I managed to get things work. You just need to create an alias for your IP in hosts and use that alias in URL instead of IP. A comprehensive manual of how to make aliases you can find here. At the end my URL looked like http://svnserver:8080/svn/... and everything works just fine.

Good luck!




回答2:


for svn im using SCplugin http://scplugin.tigris.org/ that works great.



来源:https://stackoverflow.com/questions/5699721/use-xcode-4-subversion-integration-with-custom-port

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!