• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Run Script Build Phase and Copy Files Build Phase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Run Script Build Phase and Copy Files Build Phase


  • Subject: Re: Run Script Build Phase and Copy Files Build Phase
  • From: "Duane Murphy" <email@hidden>
  • Date: Thu, 8 May 2008 16:58:47 -0700

--- At Thu, 8 May 2008 09:59:20 -0700, George Warner wrote:

>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... ;-)

Thanks George! Worked like a charm.

 ...Duane

 _______________________________________________
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

References: 
 >re: Run Script Build Phase and Copy Files Build Phase (From: George Warner <email@hidden>)

  • Prev by Date: Re: opening associated (hesder or source) files in folder in Organizer...
  • Next by Date: Re: opening associated (hesder or source) files in folder in Organizer...
  • Previous by thread: re: Run Script Build Phase and Copy Files Build Phase
  • Next by thread: re: Run Script Build Phase and Copy Files Build Phase
  • Index(es):
    • Date
    • Thread