Apr
16
2009
0

XCode 3.1.3 Source Control (SVN)

Spending my last three days of toil this week, thus giving me a five day weekend, it would be nine if you count Easter but since I went into work yesterday, I decided to add another entry into my guide for using OpenGL with Cocoa. During the process of this, I discovered XCode had source management built into it, so I decided to investigate further, and finally got my project synchronized with a server.

CVSDude - Creating a ModuleSo I decided to write this guide to using XCode with SVN. The SVN provider I’m using for this is CVSDude, they’re cheap and very reliable. But any service provider should work with this guide.

First of all, log into CVSDude, goto the “Settings” menu at the top, then “Modules” on the menu to the right, and then click “Add“. Give a name to your new module, I chose ‘CocoaGL’, which is the name of the project used in the other guides, and click “Add new“.

XCode - Configuration of RepositoryYou now will have a new repository, the address of which will be something like “https://<username>-svn.cvsdude.com/<module>”. If you are unsure or you are having problems, see the “Welcome” page when logged into your CVSDude account.

Now open up a copy of XCode. Before opening a project, goto the “SCM” menu and select “Configure SCM Repositories…“.

Click the “+” button to add a new repository to the list, now give it a name, yet again I chose ‘CocoaGL’, and instead of “CVS” chose “Subversion” from the dropdown list. Now click “OK“.

XCode - Naming the RepositoryThe repository locally now needs to be configured, within the “URL” box, enter the url to your source, in my case it was “https://kaluriel-svn.cvsdude.com/CocoaGL“.

This will automagically fill out most of the other text boxes, apart from username and password. If the path is okay, you should get a red circle with an error something like “Error: 170001 (Authorization failed) Description:”.

XCode - AuthenticatedWithin the username field box enter your account username, and within the password field box, your password. After a second the red circle should change to green with the text “Authenticated” to let you know it has successfully logged in. Click “OK” to close the window and return the main XCode environment.

Written by Kaluriel in: Tutorials | Tags: , , ,

Pages: 1 2


Theme: TheBuckmaker.com Blog Themes | The best Webhosting Plans, Eigenes Internet Radio