Re: Copy Files - help needed (reminder)
Re: Copy Files - help needed (reminder)
- Subject: Re: Copy Files - help needed (reminder)
- From: "sharad saxena" <email@hidden>
- Date: Wed, 16 Aug 2006 11:54:55 +0530
In this case I think it would be good to use "Run script build phase". Just add a new Run Script build phase and double click it to write the copy command there. Something like
/usr/bin/ditto -rsrc "${BUILD_DIR}/Resources" "${BUILT_PRODUCTS_DIR}/MyApp.app/Contents/Resources"
This would be helpful because in this way you need not add each and every new file to your project or take care while removing some of the files.
Hope this helps,
Sharad!
On 8/14/06, Ulf Dunkel <email@hidden> wrote:
Is there really nobody who could explain to me how to do this?
- - - - -
On July 20, 2006, I asked the xcode-users list:
-----------------------------------------------
I would like to add Copy File Build Phases (or any other phase which
does the job) to a project in order to have to following stuff copied to
the application build.
Sources (example files showing the principles):
-----------------------------------------------
Resources/img/menu/cz/some.gif
Resources/img/menu/de/some.gif
Resources/img/menu/dk/some.gif
Resources/img/menu/en/some.gif
Resources/img/menu/fr/some.gif
Resources/Czech.lproj/MyApp Help/index.htm
Resources/German.lproj/MyApp Help/index.htm
Resources/Danish.lproj/MyApp Help/index.htm
Resources/English.lproj/MyApp Help/index.htm
Resources/French.lproj/MyApp Help/index.htm
Build (absolute paths):
-----------------------
MyApp.app/Contents/Resources/img/cz/...
MyApp.app/Contents/Resources/img/de/...
MyApp.app/Contents/Resources/img/dk/...
MyApp.app/Contents/Resources/img/en/...
MyApp.app/Contents/Resources/img/fr/...
MyApp.app/Contents/Resources/Czech.lproj/MyApp Help/...
MyApp.app/Contents/Resources/German.lproj/MyApp Help/...
MyApp.app/Contents/Resources/Danish.lproj/MyApp Help/...
MyApp.app/Contents/Resources/English.lproj/MyApp Help/...
MyApp.app/Contents/Resources/French.lproj/MyApp Help/...
Of course there are MUCH more files and folders. And I don't want do
have the images stuff in the localized folders as there are localized
images as well as language-free images (icon images without text) which
should be shared by all MyApp Help folders.
I really have no idea how to create a Copy Files Build Phase which
automatically copies the requested paths too. Whatever I tried until
now, only resulted in e.g. a Copy Files Build Phase which kept all
(about 500) images in ONE path under Resources.
I would be glad if someone could tell me how to ...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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