Xcode 4.3 SVN Configuration

Source: Internet
Author: User
Xcode 4.3 SVN Configuration

|Publisher: Benben|View: 2621|Comment: 0

Summary : Xcode4.3 comes with two version management systems: SVN and git. The default version is git. Code It is also convenient to configure xcode4.3 SVN through SVN management. in use, the biggest problem I encountered was "host is unreachable", and the IP address I entered was correct. after checking the Internet, I found that...

Xcode4.3 comes with two version management systems: SVN and git. The default version is git.

The company code is managed using SVN, and xcode4.3 SVN configuration is also very convenient.

In use, the biggest problem I encountered was "host is unreachable", and the IP address I entered was correct.

After checking on the internet, I found that I had to use a Domain Name and changed the hosts file.

 

Hosts file modification:

1. ApplicationProgramTerminal (Terminal)

2. Enter sudo VI/etc/hosts

3. Enter I to enter the editing mode.

4. Copy the added domain name and IP address,

192.168.1.51 svnserver

5. After editing, Press ESC and enter ": WQ"

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: Fill in the ing domain name here. Some SVN addresses are prefixed with HTTPS and so on, depending on your specific situation.

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 ls.SVN: // svnserver:/apps/Wei/IPhone/Trunk(Your SVN address)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.

PS: most of the above content comes from xcode4.1's built-in SVN configuration-Dawei-iteye Technology website

After SVN configuration is complete, you have to set up SVN. Because of some files, we do not want to submit them.

Edit ~ /. Subversion/config file
Note: If the ". Subversion" directory does not exist, run the "SVN status" command. Although this command will fail, it will create the required files for you. 
Open ~ /. Subversion/config open the file

1. Find a global-ignores line, remove the comment, and edit it

Global-ignores = build *~. NIB *. So *. pbxuser *. Mode *. perspective *

2. Find enable-auto-Props = yes and remove the comments. declare the following text file in [auto-Props] section:

*. Mode * = SVN: mime-type = text/X-xcode
*. Pbxuser = SVN: mime-type = text/X-xcode
*. Perspective * = SVN: mime-type = text/X-xcode
*. Pbxproj = SVN: mime-type = text/X-xcode

PS: The above content comes from using SVN in xcode, but the svn configuration below is for xcode3.1.

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.