Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode 4.2 SVN issues

Tags:

xcode

https

svn

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?

like image 984
Stavash Avatar asked Oct 26 '11 15:10

Stavash


5 Answers

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

I continued to get the "untrusted certficate" 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.

like image 89
xiig Avatar answered Oct 24 '22 01:10

xiig


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!

like image 34
dotbill Avatar answered Oct 24 '22 00:10

dotbill


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

like image 6
Ram Suthar Avatar answered Oct 24 '22 00:10

Ram Suthar


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..:

like image 1
chown Avatar answered Oct 23 '22 23:10

chown


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

like image 1
digitaljoel Avatar answered Oct 24 '22 01:10

digitaljoel