Configure the svn client in xcode

Source: Internet
Author: User
Tags svn client

The Mac comes with SVN, so we don't need to download it. We can use it with a slight modification to the Subversion configuration.

Step 1: Configure Subversion

LeopardSVN is introduced, but the xcode ProjectFileNot all files can be added to SVN.ManagementFor example, the compiled files and the files generated during the compilation process do not belongSource code, You should tell SVN to ignore it. Method:

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 *

Some files in the xcode project file are text files and need to be told to SVN, because SVN can better manage text files (who knows who to use)

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

Step 2: Configure xcode

The familiar version control is called SCM (Software 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. After the checkout project is completed, set the project SCM in the properties of your 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.

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.