Versioning is especially important for teamwork, so how do you version control in iOS development? In today's blog, we will show you how to configure the SVN server under Mac, how to import our project, how to checkout and commit the project in Xcode.
First, configure the SVN server
1. Create an SVN service work path while creating a new app project, as shown in, Svn_project is the working path of the SVN service, MyProject is our iOS project
2, under the Mac has its own SVN service function (under Windows is not), directly in the terminal to open the SVN service, while opening the service and specify the SVN working path
(1) Start SVN service command: svnserve-d-r working path:
(2) The terminal is as follows:
3, after the SVN service starts, to create the SVN management file, the management file has the various configuration about SVN
(1) Create a management file in the Working Directory command: svnadmin create Mysvnproject
(2) After the management file is created successfully, its directory structure is as follows:
(3) Next to configure our SVN, open the Conf folder as follows:
(4) Configure the svnserve.conf file, remove the temporary note with a #:
(5) Add user name and password in passwd
(6) Management of user groups in Authz
Two. Import the project into SVN
1. If you want to import our project into SVN, you need to use a tool svnx,svnx to connect to the SVN server, followed by the SVN management file, the user name and password is the user name and password added in the configuration file
2. After the login is successful, import our iOS project.
Iii. Check out project in Xcode (Beta version of Xcode6.1 when used below)
1. Check out a existing Project in Welcome Xcode, as shown in:
2. Connect to the SVN server (the SVN managed file is still behind the IP):
3. Check Out Project
4. Open the project locally and manage the project in source control
Version control of iOS development