Re: Subversion Practices?
Re: Subversion Practices?
- Subject: Re: Subversion Practices?
- From: John Stiles <email@hidden>
- Date: Wed, 06 Feb 2008 11:52:59 -0800
Yes.
Jerry LeVan wrote:
On Feb 6, 2008, at 2:14 PM, John Stiles wrote:
Brady Duga wrote:
On Feb 6, 2008, at 10:38 AM, Jerry LeVan wrote:
I am trying to use subversion with my Cocoa projects...
It appears that merely opening an Xcode project will
generate changes in the .xcodeproject file...
*.xcodeproject "files" aren't files, they are folders (for the
purposes of Subversion). When you commit a project (say it is called
Foo), you will add the folder Foo.xcodeproject and the file
Foo.xcodeproject/project.pbxproj - all the other files there
(probably with your user name in them) should *not* get checked in.
The .pbxproj file won't change unless you really change the project
(add/remove files, change settings, etc).
That's not entirely true. If you have users on different versions of
Xcode, sometimes just opening the project is enough to modify it.
Under the hood, whenever you open a project, Xcode actually reads in
the plist, parses it, and rewrites the file to disk. In typical
usage, the generated output is identical to what it read to begin
with, so there's no visible change, but in some cases this might not
be the case. Something as simple as a different type of line ending
could cause the entire file to look different, and some SVN
configurations might mangle this on your behalf. You can verify this
by opening the plist and adding a comment—it should get removed as
soon as you open the project. You can even try saving the plist in a
different format (binary? XML?) and watch Xcode convert it back to
its native format on open. It's kind of slick, actually.
So is the bottom line wrt the .xcodeproject "bundle":
just keep the the file 'project.pbxproj' under version
control and remove the *.mode1v3 and *.pbxuser from
version control?
Thanks,
Jerry
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden