Xcode4.1 built-in SVN Configuration

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.