Re: Duplicating a Project under Xcode
Re: Duplicating a Project under Xcode
- Subject: Re: Duplicating a Project under Xcode
- From: Denis Stanton <email@hidden>
- Date: Wed, 10 Dec 2003 07:57:06 +1300
Hi George and Christian
On Wednesday, December 10, 2003, at 05:30 AM, George Domurot wrote:
This an Xcode project not Project Builder, Xcode to Xcode. You
mentioned "tricky text editing." is there any information on this?
On Wednesday, December 10, 2003, at 03:10 AM, Christian Evans wrote:
I would like to be able to take a current project in Xcode and do a
"save as" to get the project copied somewhere else and as a different
name. Is this not really that simple? Any directions would be
greatly appreciated.
Unfortunately it's not that simple. Your project folder contains many
files. You have to copy them all of course.
When you create a new project the project name is used as the name of
the project file and is also used to set up the name of the application
you will build. This name is stored in various places insie the
project file. Changing the name of the project file is not enough.
You have to get inside the project file and edit the name wherever it
occurs. Actually that's not quite correct. You don't want to rename
any .java files because other .java files will be calling them by name.
I suggest you adapt the advice for Jaguar / Project Builder given at:
http://docs.info.apple.com/article.html?artnum=75297
Below is a post from a previous thread on this subject. It refers to
some of the complications. The article named above this line worked
for me and I assume it would also work for an XCode project.
Denis Stanton
------------------------------------------------------------------------
----------------------------------
On Wednesday, November 26, 2003, at 09:19 PM, Denis Stanton wrote:
Thanks Kaj, that document was exactly what I needed.
Thanks also to Andrew, Jonathan and Ray for support and suggestions.
Sorry I neglected to mention that I am using Project Builder on Jaguar,
which kay correctly guessed. Some time soon I'll have to figure this
out again for XCode
I had found most occurrences of the app name, but I think I was missing
one, until I read this document.
On Wednesday, November 26, 2003, at 07:43 PM, Kaj Hejer wrote:
At 11:06 +1300 26-11-03, Denis Stanton wrote:
Can anyone tell me what I missed?
If you use ProjectBuilder on osx you find a description on how to
rename a WO project on
http://docs.info.apple.com/article.html?artnum=75297
Some Key phrases in that document show why it is not as straight
forward as one might think:
"this point, if you build the project, the file still has the name
MyWOProject, as does the .woa directory and the URL for connecting to
the application. A few more steps are necessary to complete the
process.
"6. Close the MyNewWOProject project in Project Builder or quit Project
Builder, so that Project Builder will not attempt to prevent changes to
the project files.
"7. Open the MyNewWOProject/MyNewWOProject.pbproj/project.pbxproj file
with a text editor.
This file is not immediately visible in the Finder, so choose from one
of the following methods to open the project.pbxproj file:
.......
"8. Replace all occurrences of MyWOProject in the project.pbxproj file
with MyNewWOProject.
This updates CFBundleExecutable key, the NSExecutable key, the .woa
directory, several intermediate build directories, some PRODUCT_NAME
keys, and the application's jar files.
So not only do you have to do some of the editing while Project Builder
is shut down, you have to go into files that are not immediately
visible.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
Denis Stanton
email@hidden
Home: (09) 533 0391
mobile: 021 1433622
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.