Re: Xcode and Subversion
Re: Xcode and Subversion
- Subject: Re: Xcode and Subversion
- From: Andrew Pontious <email@hidden>
- Date: Fri, 12 Jun 2009 12:03:53 -0700
On Jun 12, 2009, at 10:15 AM, Jack Repenning wrote:
Jack's steps are good ones, so I'll just add some minor comments:
- While Jack's step 3., importing using the command line, is listed as
something you do from the command line, you can actually do that from
within Xcode in the SCM -> Repositories window, as long as you've
already done step 4., which is set up the repository information in
Xcode's preferenes window (SCM pane).
- FYI: steps 1.-3., which is creating the project and its directory
first, then importing it, are not unique to Xcode. You would need to
do this regardless of what tool you used. That's just how SCM works.
- Xcode can basically do all the SCM steps for this workflow and many
others except actually creating your repository. See the toolbar
buttons in the Repositories window for more information.
- Also, "Xcode", not "X-Code". :-)
-- Andrew
On Jun 12, 2009, at 12:31 AM, Clark Williams wrote:
Does anyone know of a good tutorial for creating a SVN project
under X-Code?
I don't think you can do this entirely from within Xcode (yet).
Here, at any rate, is how I do it:
1. In Xcode, create the new Project somewhere (ideally, somewhere
*other* than where you actually want it eventually to be). For
instance, most of my projects, most of the time, are in ~/src/
ProjectName, but at this point I have Xcode create ~/foo/
ProjectName. For simplicity's sake, don't do any work in the
project, yet, just let Xcode create the basic structure.
2. In Terminal, cd into the folder directly above your new
ProjectName directory:
% cd ~/foo
3. Using the command-line Subversion tool, import this into your
repository (which I'm assuming already exists):
% svn import ProjectName http://host.domain/path/to/repo/reponame/trunk/
(You can remove foo/ProjectName now)
4. Now, back in Xcode, go to "SCM: Repositories", configure your
repository if it's not there already, and browse until you see that
newly created folder ProjectName.
5. Select it.
6. Click "Checkout", and follow the directions.
7. Eventually, it'll offer to open the new project file; do so.
8. I like to right-click on the "Detail" column labels, and make
sure the "SCM" column is displaye.
-==-
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
_______________________________________________
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