Configure the SVN client in Xcode

Source: Internet
Author: User
Tags svn client

XcodeUnder ConfigurationSVNThe client is the content to be introduced in this article, mainly to learnSVNConfiguration process. Mac built-inSvn,So we don't need to download it. We can use it with a slight modification to the subversion configuration.

Step 1: Configure Subversion

Leopard comes with SVN, but not all files in Xcode project files are suitable for management in SVN, such as compiled files and files generated during compilation, these files do not belong to the source code. svn should be told to ignore them. The method is as follows:

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 to global-ignores = build *~. Nib *. so *. pbxuser *. mode *. perspective *
Some files in the Xcode project file are text files and you need to tell SVN, because SVN can better manage text files and who knows who to use)

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

 
 
  1. *.mode* = svn:mime-type=text/X-xcode  
  2. *.pbxuser = svn:mime-type=text/X-xcode  
  3. *.perspective* = svn:mime-type=text/X-xcode  
  4. *.pbxproj = svn:mime-type=text/X-xcode 

Step 2: Configure Xcode

The Version Control we are familiar with is called SCMSoftware Configuration Management in Xcode. We can see it all day after learning cmme. It turns out to be Version Control ),

1. Select SCM> Configure Repositories from the Xode menu and enter the SVN server information.

2. Select SCM-> Repositories and you can Import and Check Out the content you want. You can also perform routine SVN management here.

3. Set the project SCM in the attributes of your project after the Checkout Project

4. After setting, you can see a new column in your project view. M indicates that the file has been modified, and then you can use the SCM menu, you can also right-click the menu to directly perform SVN operations, such as commit, update, revert, diff, and log.

SCM-> Get SCM Info to view the version information of any file

If xcode4 is used, add SVN as follows:

1. First, add the SVN path in Origanizer-Repositories.

2. If you cannot view the path under SVN, run the following statement on the terminal:

Svn ls *** [SVN path added here]

After entering the username and password, restart xcode and it should be OK.

Summary:XcodeUnder ConfigurationSVNThe content of the client tutorial is complete. I hope this article will help you!

Related Article

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.