Re: Adding existing svn files to new project
Re: Adding existing svn files to new project
- Subject: Re: Adding existing svn files to new project
- From: Jim Prouty <email@hidden>
- Date: Tue, 8 Dec 2009 11:37:44 -0800
On Dec 8, 2009, at 6:14 AM, email@hidden wrote:
> Date: Mon, 07 Dec 2009 17:32:21 -0800
> From: Rob Lockstone <email@hidden>
> Subject: Re: Adding existing svn files to new project
> To: Xcode Users <email@hidden>
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> I do not know if this is still a requirement with the most recent version of Xcode, I do it now out of habit and because I access the same project on different machines. The requirement is (used to be?) that you must have the *project* file itself committed to whatever repository you're working with.
Actually, the project file/package does not need to be committed to the repository; though the project and the source tree do both need to be under the "Project Root":
In my case I've placed a non-SCM'd XcodeProj folder inside my source tree working copy:
/<whatever>/working copy directory/SourceCode1/mysource1.cpp
/<whatever>/working copy directory/SourceCode1/mysource1.h
/<whatever>/working copy directory/SourceCode2/mysource2.cpp
/<whatever>/working copy directory/SourceCode2/mysource2.h
...etc...
/<whatever>/working copy directory/XcodeProj/MyProject.xcodeproj
I've used the "Configure Roots & SCM..." button in my Xcode project's General tab
to set the Project root to ..
Clicking + brings up a Select Folder dialog which makes this easy to get right.
Here you also choose the SCM system (Subversion) and the Repository.
Before setting the Project Root, set up repository and source tree in Xcode's Preferences window:
Source Trees:
Setting Name Display Name Path
MyCode My Code /<whatever>/working copy directory
SCM:Options
[checked] Configure SCM automatically
To hide the XcodeProj directory from Subversion, I set an SVN ignore property on XcodeProj's parent directory:
cd "XcodeProj /<whatever>/working copy directory"
svn propset svn:ignore XcodeProj .
This is all on Snow Leopard and Xcode 3.1.2.
========================================================================
Jim "How does it work?" Prouty
Voice: (503) 620-3001, FAX: (503) 620-6754
Makers of IGOR Pro, scientific data analysis and graphing for Mac and PC
http://www.wavemetrics.com
_______________________________________________
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