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?
I had issues similar to yours, I suggest you try:
- Close Xcode + Organiser
- Open your svn web address in Safari (not any other browser) - using the dns name
- It should come up saying the address is untrusted as the cert is a different name / address
- Click show certificate and then tick the box saying always trust then continue
- it may prompt you for your mac username / password to add to the keychain
- 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!
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.
svn list https://mysvnserver.com/
if you want to do the checkout from Xcode instead. This method this method worked for me, but accepting the certificate in safari didn't work. –
Leatriceleave I had issues similar to yours, I suggest you try:
- Close Xcode + Organiser
- Open your svn web address in Safari (not any other browser) - using the dns name
- It should come up saying the address is untrusted as the cert is a different name / address
- Click show certificate and then tick the box saying always trust then continue
- it may prompt you for your mac username / password to add to the keychain
- 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!
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
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
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..:
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.
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.
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.
© 2022 - 2024 — McMap. All rights reserved.