Use Svn in xcode

Source: Internet
Author: User
Tags svn client

Overview SVN is an excellent code management tool that can automatically control code versions, greatly reducing the difficulty of code management when multiple developers work together. The built-in SVN client support in Apple's xcode. The following briefly introduces the process of code submission on the image server in xcode.
Add SVN Server
Start xcode and select Configuration Options in the SCM menu.


In the displayed settings window, click the plus sign in the lower left corner to add the svn server.



Enter the svn name and select subversion.


Enter the svn server URL: https://139.me/svn/test, and the ip、port number will be automatically set later,
Finally, enter the account and password. After the verification is successful, click OK to add the svn server.



Submit local code to SVN
Use xcode to open the project and select the configuration of this project in the SCM menu.


Click the SCM button in the upper right corner.


In the right-side combo box, select the svn library you just registered and click OK.


Return to the main interface, click the first item in the SCM menu to open the svn library interface, and change the interface to display the logical directory structure on the server


There is nothing in the current library. We want to create a directory for the project. Click "create directory" to create a directory.



Enter the directory name, which must be the same as the project name.



The following code is merged with the local code. Select the Created directory and click "checkout.



When selecting a local path, be sure to select the upper-level directory of the project directory instead of the project directory. Then, a prompt is displayed, indicating that the directory already exists.


After that, open the project again.


On the re-open project main interface, select the SCM relults column above to add more content.
Select all the code and resource files to be submitted (Be sure to remove build ).
Right-click and select Add to repositorie to add the selected file to the code library.
If files are added to the Code later, you need to add them to the code library in the same way.



Click the commit item in the SCM menu to submit the code to the server.
You can use the same method for submission only if the generation has changed. The server records all submitted versions.


At the time of each submission, you can enter a brief log to describe the changes to be submitted.


After submission.


Summary The SVN accounts of each team will be activated recently, and each account will have a separate code library. Because SVN records all historical operations, do not submit them in the official code library. We have activated a Test Library for learning and testing. Under normal development conditions, there is no need to submit every change. Generally, when the software needs to release a version, or a major change is to submit it once, it can be used as a backup.
Address: http://kongjian.baidu.com.cn/%B7%E7%B6%A3%B6%A3%DF%CB%DF%CB/blog/item/159456d136cda4caa8ec9a23.html/cmtid/d0a26a19dbeacaf5ae51333f

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.