Unable to connect to svn repository with XCode 4

限于喜欢 提交于 2019-12-06 06:28:38

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.

The solution I found was to:

ONE

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

TWO

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

THREE

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

  • The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually!

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.

FOUR

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!

svn might not be working due to the cache containing a wrong password.

Use spotlight and open 'terminal' Type 'svn co --username=myname svn://www.mydomain.com:port/svn/myrepository/ .

svn will now ask you for the password - enter it. Now switch back to the repository browser in xcode4 and it will be recognized.

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