Creating new Xcode projects into Subversion (Was: Xcode and Subversion)
Creating new Xcode projects into Subversion (Was: Xcode and Subversion)
- Subject: Creating new Xcode projects into Subversion (Was: Xcode and Subversion)
- From: Jack Repenning <email@hidden>
- Date: Fri, 12 Jun 2009 17:41:05 -0700
Incorporating Andrew's hints, and responding to questions asked after
my last post, here's the New and Improved directions for creating a
new project, within Xcode, so it ends up stored in Subversion:
Before you begin, there needs to be a repository already set up,
somewhere. I'm not referring, here, to the configuration you do inside
Xcode (SCM: Repositories, or SCM: Configure Repositories, or Xcode
Preferences: SCM: Repositories). That's just the configuration to let
Xcode know where the repository is. The repository itself is kind of
like a database, the place where all the old versions of your code are
stored. Usually, they're shared, and usually someone else has already
set this up for you. If you actually need to set up a repository, this
is the wrong place to talk it through: go to one of the general
Subversion user help lists, such as CollabNet's Server Administrator
forum, email@hidden, or
email@hidden. As a user, what you need to know about
the repository is an URL that you use to reach it. In my example, I'll
use "http://host.domain/svn/project";.
With our URL firmly in hand, we begin:
1. In Xcode, create the new Project somewhere--somewhere *different*
from where you ultimately want it to land. This is just a temporary
thing; you'll end up trashing it when we're done. I keep my projects
in ~/src/ProjectName/, so at this point I create the new one on my
Desktop. Use the normal Xcode File: New Project... wizard. When it
offers you the "Save As:" dialog, press cmd-D or select your Desktop
in the drop-list, give it the desired new-proeject name (let's say
NewProject), and save.
2. Open Xcode's "SCM: Repositories" window. Is your repository already
there? If not, double-click in the Repositories column (which brings
up the "Configure Repositories" dialog), and fill in the form.
3. Back to the original "Repositories" window (not the "Configure"
one), browse into your repository until you find the spot where you
want your NewProject to be. Most likely this will be inside a folder
named "trunk". If so, be sure you have "trunk" selected (not some
subdirectory, like www). That is carefully select the existing
directory that you want, eventually, to contain your new directory.
4. Click the "Import" button, so big and wide and handsome, that I
obviously couldn't see before (thanks, Andrew).
5. In the wizard, navigate to and select your NewProject directory,
fill in a comment, and click Import. A bit of progress-indicator, and
your "NewProject" will appear inside your "trunk" directory inside
your repository.
6. Select your new "NewProject" directory.
7. Click "Checkout". When it asks you where to "Save As:", guide it to
the place you really do want the project; in my case, to my ~/src/.
Click "Checkout."
8. If all goes well, you should be offered the option to "Open
NewProject.xcodeproj". Do so.
9. I like to right-click the "Groups & Files" column title, and make
sure the SCM column shows; similar for the Detail tab area.
You're in business!
You can now remove ~/Desktop/NewProject, you don't need it any more.
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden