InMac OS XUnderfloor setup and useXcodeMediumSVNThe version management environment is described in this article, and Leopard has been built inSvnYes, so all you need to do is configure. You can use svnadmin-vsersion to view the details.
1. Create a directory to save the software repository. Enable Web Sharing (Apache2) in the system settings ).
- Sudo su (then enter the password)
-
- Mkdir/opt
-
- Mkdir/opt/svn
-
- Mkdir/opt/svn/repos
The directory/opt/svn/repos/is created/
2. create a version repository svn create/opt/svn/repos
3. Modify the authorization Configuration
Go to the repository configuration directory cd/opt/svn/repos/conf
(1) edit the configuration file vi svnserve. conf to cancel the comments of the following lines.
- Anon-access = read
-
- Auth-access = read
-
- Password-db = passwd (password configuration SAVING file)
-
- Auth-db = authz (authentication configuration SAVING file)
Image address: http://www.gothisway.org/blog/wp-content/uploads/2010/05/Xcode-SVN.png
(2) edit the password configuration file vi passwd
Format: "user name = password"
(3) edit the authentication file vi authz
Format: [groups]
User Group name = user group member
[Directory to be authorized]
@ Group name = permission
User name = permission
For example:
- [groups]
- g_developers = jcccn,jesse,bill
- g_tester = jerry,wang
- [/]
- @g_developer = r
- jcccn = rw
- * =
- [/jcccn]
- @g_tester = rw
- jcccn = rw
- * = r
(4) Configure to ignore the file vi ~ /. Subversion/config
Find the global-ignores line, remove the comment, and edit it
- global-ignores = build *~.nib *.so *.pbxuser *.mode *.perspective*
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
4. Start svnserve:
- svnserve -d -r /opt/svn/repos
Killall-9 svnserve can be used to end the service
5. Configure SVN in Xcode
(1) Select SCM> Configure Repositories from the Xode menu, click the plus sign on the left, enter the repos Name in Name, select subversiion in SCM, and enter the SVN server information.
- Name: repos Name, for example, jcccn
-
- Scheme: svn
-
- Host: Host address, for example, 192.168.1.104
-
- Path: Path such/
-
- User: User Name
-
- Password: Password
(2) Select SCM-> Repositories to create a folder. The daily management of SVN can also be done here. Click Import and select the project for version control.
(3) Check out! Select a project, click Check out, and select the target location. It is equivalent to initializing the project with svn and adding some control information. This step is very important. If it is missing, version control will not be available.
(4) Open the project after Check out, click the project property Get info, and select SCM Repository as your configuration in general.
(5) 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 directly perform SVN operations, such as commit, update, revert, diff, and log. For commit, it is best to enter the details of the message version with respect to the previous version.
Summary: InMac OS XUnderfloor setup and useXcodeMediumSVNThe version management environment has been introduced. I hope this article will help you!