• 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: Timing of Build Phases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timing of Build Phases


  • Subject: Re: Timing of Build Phases
  • From: Jens Miltner <email@hidden>
  • Date: Mon, 4 Feb 2008 10:25:31 +0100


Am 01.02.2008 um 20:23 schrieb David Dunham:


On 1 Feb 2008, at 00:59, Jens Miltner wrote:

Well, you can actually tune this by adding the correct input and output files to your shell script build phases (if these things are done by shell script build phases). Then Xcode will do the correct dependency checking.


Do I need them both?

I tried adding an input file to my remove script, which is one of the file that I want to be copied (if needed) by the Copy Bundle Resources build phase. My Run Script Phase still runs every time.

Yes, I found you need them both - and thinking about how a dependency check might work, it seems reasonable: apparently the dependency check compares the mod dates of the input files with the mod dates of the output files and triggers a rebuild if the input files are newer than the output files.


If you make sure your output files are newer than any of the input files once your script phase has successfully run, your script will only be called if either the output files are missing (e.g. after cleaning) or if the input files have been touched.

</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
References: 
 >Re: Timing of Build Phases (From: Jens Miltner <email@hidden>)
 >Re: Timing of Build Phases (From: David Dunham <email@hidden>)

  • Prev by Date: Re: Xcode - Beginner Question.
  • Next by Date: Xcode eats 100% CPU and more while typing
  • Previous by thread: Re: Timing of Build Phases
  • Next by thread: Re: Debugging threads and hanging issue
  • Index(es):
    • Date
    • Thread