Reprinted from: http://mechenwei.iteye.com/blog/1177200
(Max)
I am about to build a project. I upgraded xcode to 4.1 so I had to reconfigure SVN for a long afternoon. As a netizen said, it was enough. But fortunately, all the intractable diseases have been solved, so I would like to share my thoughts here.
My SVN address is: SVN: // 192.168.1.51:/apps/Wei/iPhone/trunk. Note that the address cannot be an IP address, so we need to modify the local hosts file, map the IP address 192.168.1.51 to a custom domain name. There are many changes to the hosts file on the Internet.
Hosts file modification:
1. Open the terminal (terminal) in the application)
2. Enter sudo VI/etc/hosts
3. Enter I to enter the editing mode.
4. Copy the added domain name and IP address. I just took the domain name 192.168.1.51 svnserver.
5. After editing, Press ESC and enter ": WQ"
Some friends may encounter hosts as read-only and cannot modify it. The solution is as follows:
1. Open the finder. Shortcut: Shift + command + G to go To the folder "/etc"
2. Find the hosts file and place it on the desktop for modification. Then, delete the source file under/etc and drag the modified desktop to/etc.
Finally, on the terminal: Ping svnserver. If you can ping 192.168.1.51, The ing is successful.
Then you can configure xcode's SVN.
1. Add repository,
Enter name casually,
Location: SVN: // svnserver :/
Note: Enter the mapped domain name here.
Type: Subversion
2. Click Next: Do not enter trunk, branches, and tags. Click Add and enter the account password.
3. You may also encounter the "unable to load revisions" error. Open the terminal and enter: SVN lssvn: // svnserver:/apps/Wei/iPhone/trunk,
Of course, the red part is your own SVN address. Note: The svnserver in this address must be consistent with the address configured in xcode.
I wish you good luck!