Create a Subversion with Xcode 4

1
Hi everybody,
I just started to work with Xcode and trying to add a Subversion folder was a pain. So I decided to write about it and describe all the steps in order to help other people who have to set up a Subversion in Xcode.
Note that if you don’t have any Subversion software or package installed on your Mac you can download the free Subversion Mac OS X package.

STEP 1: Open Xcode and click Connect to a repository.
1
STEP 2: Enter the location path of your Subversion file.
Example: https://66.127.107.22:8444/svn/test
- if your Subversion is on a Microsoft server you will notice that Xcode will tell you that the “Host is not reachable.” That is because Mac OS doesn’t recognize IP addresses from Microsoft devices.
2
You have to give a name to the IP address. For that, we need to change the host file on your computer.
So open the terminal and type :
sudo nano /private/etc/host
It will ask you your password.
Now you’re at the file. You can see that there is already an IP and name associated to those IP addresses.
Go to the bottom and add your IP address and give it a name and to save the changes. Press control + o end enter. To quit press control + x.
7
Now that the host file has been changed we can go back to Xcode.
Instead of writing https://66.127.107.22:8444/svn/test as the location of your Subversion you can write https://myProjectName:yourPort/svn/test and you will see that the host is now reachable.
3
STEP 3 – Click Next and give a name to your project. Then click Checkout.
- You have to enter the name and password of your Subversion user account in order to access the files on the server.
5
- Then you will have a window saying checkout complete.
6
STEP 4 – In order to minimize risk, Xcode will not allow you to access to an external server if you don’t accept the certificate server validation. So we’re going to go back to the terminal window again and type svn list https://yourProjectName:yourPort/svn/test and click enter. It will ask you for your computer password and then your name and password in order to access the subversion. If you can directly browse the files that’s fine. If not, it will ask you if you want to accept the validation certificate and follow the instructions.
- Now that everything is validated and that the link between your subversion and Xcode is done, it’s almost done !
STEP 5 – Go back to XCode4 and create a new project. Save it in the trunk folder created in your computer with the Subversion.
9
STEP 6 – Go to File → Source Control → Repositories
- In the new window, you will see your Subversion access on the left side. Click on the root folder and then on the trunk folder and click import. Now all the folders you just created by making a new project will be imported to the Subversion. You’re done, congratulations!
10
If you’re working with other people on the same Xcode 4 project, it will be really easy for them. They have to follow step 1 to step 4. The project will be saved in the trunk folder on their computer. They just have to go there and click on the xcodeproj file. It will open the project and they’re done!

Comments

Popular posts from this blog

How to draw an overlay on a SurfaceView used by Camera on Android?

Android TCP Connection Chat application

Create EditText with dropdown in android