I'm trying to add a remote linux SVN repository to my project but when I enter the server address I get the message Host is unreachable.
I'm entering it like
svn://ip_address/myproject/
From terminal I can do this
svn list svn://ip_address/myproject/
and it shows the contents without any issues.
To modify the host file you open the terminal and put this command:
Now you have opened with "nano editor" the file hosts, add IP, save and close. After you put this code in the terminal to reflush dns:
d
scacheutil -flushcache
END!
This is probably not the solution to the issue the original poster was experiencing, but the same error message can be received for a different reason, which is why I post this.
Xcode has trouble with ssh login banners.
Quite simply, if your svn server is accessed via svn+ssh and is making use of a login banner, Xcode will state that your repository cannot be reached. Comment out the
Banner
entry in /etc/sshd_config, and there should be one less reason why you cannot reach your repository.I had this problem as well in linking to a Git repository. It seems XCode has some issues with IP addresses. I found that by modifying my hosts (/private/etc/hosts on Mac) file and adding an entry for the repository's IP address does the trick.
Hosts file entry:
In the Location field in XCode:
The comments above referencing the other question's answer doesn't cover the IP address issue. Hopefully this will fix your issue too.
I also came across this with hard luck. How I fixed my broken repository is as follows.
Hope this helps