Svn-related issues in xcode

Source: Internet
Author: User

How to Use Svn in xcode

Whether it's Web, iPhone, or Mac development, SVN (subversion) has become a friend of mine who can't leave my development every day, but this tool is developed for ordinary individuals.
If you don't rent a server on the Internet (about 7000 yuan a year), it's hard to enjoy that convenient tool. So we made a SVN flat two years ago.
Server, svn.w18.net, shares the Subversion server of our server in Guangzhou Telecom, hoping to be useful to everyone. It is free for open-source projects and 100 for private projects.
RMB per year.
Xcode3.0 and above support SVN perfectly. Today, I would like to share my experience in using SVN in xcode.
Step 1: Configure Subversion
Subversion must be configured when using SVN in xcode. Leopard comes with SVN, but not all files in xcode project files are suitable for SVN
Line management, such as the compiled files and files generated during the compilation process. These files do not belong to the source code and should be ignored by SVN. Method: Edit ~ /. Subversion/config
Parts
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 versioncontrol is called SCM (softwareconfigurationmanagement) in xcode. We can see it all day after learning cmme. It turns out to be versioncontrol ).
1. Select SCM> assumerepositories from the xode menu, and enter the svn server information.
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, or right-click the menu to directly perform SVN operations.
As, commit, update, revert, diffandlog, whatever you want. SCM-> getscminfo: You can view the version information of any file.
.
SVN configuration in xcode

When developing a team, we need to use version management to help us manage code and improve efficiency. Xcode directly supports version management methods such as CVS and SVN. Next we will introduce how to use xcode
SVN resource library Configuration:
1. After opening xcode, we will see the SCM menu group in the menu. Click this menu group and select configurescmrepositories. Of course, you can also submit each project file to a different version management repository after you open a project.
2. Click Add (repository is selected by default), select SVN as the type, and fill in the following information in the pop-up form:
Name: iphone_respositories
URL: SVN: // username @ resource library URL: 3690
Scheme: SVN
HOST: resource library URL, for example, www.blessdyb.com
Port: 3690
Enter the user name and password.
How to enable xcode to support the latest SVN

After macports is installed with the latest SVN, run the command line checkout command to run the project. In xcode, when SCM-> Update is executed, a message is reported.
"Thisclientistoooldtoworkwithworkingcopy '.'; pleasegetanewersubversionclient"
Error. download the latest subversioninstallation under macat http://subversion.tigris.org/getting.html#osx.
Package.
1) CP/opt/subversion/bin/SVN */usr/bin/
2) cpopt/subversion/lib/*/usr/lib/
To update 10.5.7 to 10.6, the two directories are overwritten. if the system is stable and you want to use the current version for a long time, use other more safe methods. This article describes Svn in xcode.

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.