Today we will talk about xcode configuration.
(1) Take creating a new project as an example. First, open xcode 4.2, open windows> organizer> repository, click "+" in the lower left corner of the screen, and select "add ".Repository ".
(2) In the pop-up window, fill in the svn server information: name can be based on your own project name, location fill in the address of the corresponding project on your SVN server, select subvision for type as follows:
(3) If the svn server is connected normally, a window will pop up asking you to enter the user name and password, as shown below:
(4) If the verification succeeds after clicking OK, a window will pop up asking you to configure the corresponding directories of trunk, branches, and tags, if you have created three directories with the same name on the svn server, you do not need to modify them here. The default value is as follows:
(5) The configuration has been completed. Check the repository of testsvn on the left of the window. There should be a little green dot next to it, and click the root directory at the same time, you can see the branches, tags, and trunck directories on the server in the right window (click the refresh button if not), as shown below:
(6) So far, our xcode and ssvn servers have been connected. below, it is no big difference from using source control locally.
If a new project is created, create a project in xcode (note that the source control option should not be selected when the project is created, because we need to use our own SVN ), import all the files under the new project to the trunck directory under testsvn, and then re-checkout to the local for editing.
If you want to migrate an existing project, directly import all the files in the original project directory to the trunck directory of testsvn (if you used xcode's source control or other version management tools, you 'd better copy them againCode), And then re-checkout to the local to edit.
The above is the main method for using SVN for code management in xcode 4.2. In fact, it is not very complex. In previous versions of xcode, code management excludes an SCM module. In xcode4.2, this function is integrated into organizer, so many people feel confused. Of course, there are still many useful and complex functions in code management, so it is not time to write them all carefully. You are welcome to leave a message to discuss them.