re: Run Script Build Phase and Copy Files Build Phase
re: Run Script Build Phase and Copy Files Build Phase
- Subject: re: Run Script Build Phase and Copy Files Build Phase
- From: George Warner <email@hidden>
- Date: Thu, 08 May 2008 09:59:20 -0700
- Thread-topic: Run Script Build Phase and Copy Files Build Phase
On Wed, 7 May 2008 22:02:24 -0700, "Duane Murphy" <email@hidden>
wrote:
> I'm trying to work out the best way to have a Run Script build phase
> generate a file that needs to be used by a Copy Files build phase.
Why? I just have the run script build phase just put (create?) the file
where I want it to be and skip the extra step.
> The Run Script build phase will process some files into a new file. This
> new file is to be added to the Resources folder of the built project (a
> framework). What is the best way to make that happen?
Have the run script build phase just create the new file where it goes.
> I can write the script to assemble the required file, but where should
> it be put so that the file can be used for the Copy Files build phase?
Put (create) it where it belongs in the first place and skip the extra step.
> And with a little more challenge, how do I handle different build
> configurations?
There are several environmental variables that can be used to build the path
to where you want to put the file:
BUILD_DIR, BUILD_ROOT, BUILD_STYLE, BUILD_VARIANTS, BUILT_PRODUCTS_DIR,
CONFIGURATION, CONFIGURATION_BUILD_DIR, CONFIGURATION_TEMP_DIR
> That is a different file is generated for the Debug
> build than for the Release build. How do I generate a different file for
> each build and have the right file get added to the Resources folder at
> the end?
Just use the right path from the get go and skip the copy phase.
> It seems like this is an intermediate file (aka like an object file),
> but how does the intermediate file get added to the Copy Files build phase?
It's not necessary; go directly to the destination; do not pass go; do not
collect $200... ;-)
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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