IOS learning 13: Use versions in code management

Source: Internet
Author: User

This week is a bit confusing. there are demands and designs for Android to discuss and remove.

The iPhone development team is about to enter the real encoding phase in June.

In addition to the simple design of the overall project process and framework, project resource requirements, and package name planning (I really want to talk about it. Do you have any good subcontracting naming habits,

The idea in Java is basically not feasible. It doesn't look good either by view, logic, or data .)

The most important thing is to build a code management environment.

I was depressed by the management tool xcode4.3.2 for 1-2 days.

Sometimes it is important to have a leader in development.

First, understand the general version control tools.

In earlier versions, xcode provided an SCM tool, which is generally used for code management.

I have never touched on any of those tools. I have no tool in version 4.3.2.

However, xcode itself has a repositories option. Concept of working copies and libraries.

Code management tools are generally divided into two types: git and SVN. It is said that both tools have their own MAC.

However, I installed git myself earlier, but I don't know what it is called self-built ~~ You can check whether the installation is complete after several clicks on the terminal.

Here I will briefly describe code control using SVN, because the server provided by the company is of the svn type.

Wealthy comrades can consider the paid githug version and create private libraries.

For Repositories on xcode, I don't know whether it is a software bug or something. There are various strange problems.

It will be a checkout file. Two files are displayed, one of which is red.

The prompt "the operation cocould not be passed med because the repository" mapkittest "cocould not be reached.

However, it is clearly displayed that the connection is green with the server and the connection is normal.

After restarting xcode, you can submit it again.

Several sub-servers in the back and forth test many times,

Finally, I asked people in the Forum to use versions.

Okay. Let's briefly describe the version control tool.

I downloaded the cracked version and sent it to me by a friend. I found it online last time, but I don't know why. The website cannot be opened today ~~ (There should be a lot of searches)

After installation, the icon is cute,

Recently, it was found that software icons on Mac are cute.

(Githug is the villain, versions is the lotus-like one ).

After opening the software, we first do the simplest thing: connect to the company's SVN server and then checkout some projects.

Add a library.


The two addresses are the svn address of the company. After the paste is complete, enter the user's password. The one above will add a "user's @". Click create.

Then, select how to run the project on the server and checkout it.

Similar to all version control tools, other operations include code comparison, update, and submission. However, we have not found any operations related to the concept of conflict.

The preceding operations are performed locally from the server checkout project.

In general, a new project will be uploaded to SVN.

This label is not directly displayed on the interface.

However, this will be different from some of our operation habits on Eclipse,

For Android development or eclipse SVN operations, we can directly share a project, and then feel that the plug-in has directly operated on the server project creation, and my work copy is linked to the svn project, then, initialize the import directly and then click OK.

In version, what you call import is purely import. You have not added version control to your local project.

Then you need to re-checkout to create a link.

Versions also has the add working copy option.

I don't know what to do. I found that I added a working copy locally and implemented local code control (local personal development and code management ~~).

The above is the simple use of the software.

However, an annoying bug still occurs during use.

After I submitted the new class, my colleague updated it. The file in xcode could not be found, but the finder opened it and the file was pure,

Therefore, each time the xocde manually deletes files that cannot be found, add these files.

Depressing: In turn, I had no such situation and forced him to do so ~

I asked a few people, saying that this situation exists. I don't know why yet ~.

The original intention of writing this chapter is to give those new users who are just like me with no hands-on guidance. You don't have to waste so much time on building a SVN.

How happy is the person with old hands in the company ~

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.