XCode4 add Repository Host Unreachable?

后端 未结 4 918
南旧
南旧 2021-01-05 10:19

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

4条回答
  •  执念已碎
    2021-01-05 11:11

    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:

    i.p.add.ress  serverName  #where i.p.add.ress is your ip_address
    

    In the Location field in XCode:

    svn://serverName/myproject
    

    The comments above referencing the other question's answer doesn't cover the IP address issue. Hopefully this will fix your issue too.

提交回复
热议问题