Methods and skills for using SVN in XCode

Source: Internet
Author: User

XCodeUseSVNMethods and techniques are the content to be introduced in this article. They mainly introduce how to configure SVN.

Step 1: Configure Subversion

Leopard comesSVN,XcodeNot all files are suitable for addingSVNFor example, the compiled files and the files generated during the compilation process do not belong to the source code.SvnIgnore, method:

Edit ~ /. Subversion/config 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 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.  
  3. pbxuser = svn:mime-type=text/X-xcode  
  4.  
  5. perspective* = svn:mime-type=text/X-xcode  
  6.  
  7. pbxproj = svn:mime-type=text/X-xcode 

Supplement: When the svn command line client is executed for the first time, a user configuration area is created. In Unix-like systems, the configuration area is located in the user's main directory named. subversion. In the Win32 system, Subversion creates a directory named Subversion, which is usually located in the user configuration directory. By the way, it is usually a hidden directory) under the Application Data subdirectory. However, on the Win32 platform, the specific location of this directory is different on different systems, determined by the Windows registry. We use the Unix name. subversion to represent the user configuration area.

In addition to the user configuration area, Subversion also provides the System Configuration area. Through the System Configuration area, the system administrator can create default configuration values for all users on a machine. Note that the System Configuration area does not specify a mandatory policy-each user configuration area can overwrite the configuration items in the System Configuration area, while the command line parameters of svn determine the final behavior. On Unix-like platforms, the System Configuration area is located in the/etc/subversion directory. On Windows platforms, the System Configuration area is located in Application Data. Again, it is determined by the Windows registry). Unlike the user configuration area, svn does not try to create a system configuration area.

At present, the subversionconfiguration file contains three files-two configuration files, configand serversfolder, and an INI File Format readme.txt description file. When the configuration file is created, the Subversion options are set to the default value. The options in the configuration file are grouped by function. Most options have detailed text descriptions, which indicate the main impact of these options on Subversion. To modify the options, open and edit the configuration file in a text editor. If you want to restore the default configuration, you can directly delete or rename the configuration directory and run irrelevant svn commands such as svn -- version, A new configuration directory containing the default value will be created.

Authentication information is also cached in the user configuration area. The sub-directories in the auth directory Cache Information of various authentication methods supported by Subversion. This directory requires the corresponding user permissions to access.

2. Configure XCode

1. Select SCM> assumerepositories from the Xcode menu, and enter the SVN server information.

Click Add. The default value is repository), select svn as the type, and enter the following information in the pop-up form:

 
 
  1. name:m00n  
  2.  
  3. URL:http://192.168.1.80/svn/m00n  
  4.  
  5. scheme:http  
  6.  
  7. host:http://192.168.1.80  
  8.  
  9. port: 

Enter the user name and password.

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

3. After the Checkout project, 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 perform SVN operations, such as commit, update, revert, and diffandlog. SCM-> GetSCMInfo can view the version information of any file.

3. Enjoy it!

Summary:XCodeUseSVNI hope this article will help you with the introduction of methods and techniques!

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.