Re: How to rename project.
Re: How to rename project.
- Subject: Re: How to rename project.
- From: Jens Miltner <email@hidden>
- Date: Mon, 02 Jun 2008 16:43:39 +0200
Am 31.05.2008 um 18:28 schrieb Ken G. Brown:
At 1:19 AM -0700 5/31/08, Chris Hanson wrote:
On May 30, 2008, at 6:45 AM, Ken G. Brown wrote:
What's the simplest way to rename a project including everything
within having that name like its target and executables, etc.
Remember that a project is effectively a container for targets.
The name of a project doesn't have to necessarily be the same as
the name of any of the targets within it. In fact, the name of a
project, the name of a target, and the name of the product built by
that target don't need to be related at all.
For example, you might have a project that builds an application
and a framework structured like this:
Foo.xcodeproj
Products
Foo.app (generated by target "Application")
Foo.framework (generated by target "Framework")
Targets
Application
Framework
Executables
Foo.app (generated by target "Application")
This kind of arrangement is much more common than you might think
if you're coming from other environments where projects are much
more like
So really, what you want to do is rename the project, and also
rename a target within it, and also rename the product built by
that target (which will also rename the generated executable and
build product reference).
-- Chris
Thx for the tips everyone.
Ok, I tried this.
I remain with many occurrences of the old name in the
project.xcodeproj package files:
2 copies found
user.mode2v3
40 copies found
user.pbxuser
12 copies found
project.pbx.proj
I've also tried find and replace of all the names to the new name
with BBEdit and the project appears to build ok, but I'm nervous
that I've blown away something important.
What sort of info is stored in each of the package files? Is it safe
to delete some of them?
What effect would that have?
user.modeXYZ and user.pbxuser are per-user stores. They are not vital
in the sense that your projects will break if they're not there.
FWIW, we don't submit those files to our Source Control system and
everything works when checking out a fresh copy.
I can't exactly say what's stored in there, but it appears it's things
like project window layout, breakpoints, etc.
The "project.pbxproj" files OTOH are the actual project files. This is
where the entire project structure is stored. This is the meat...
They're actually old-style property list files, so you may just open
them in a text editor and search for the project name references and
see what they are. They usually contain quite a few comments that
contain e.g. names of resolved external projects, etc. so maybe it's
all not really relevant...
HTH,
</jum>
_______________________________________________
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