Re: Timing of Build Phases
Re: Timing of Build Phases
- Subject: Re: Timing of Build Phases
- From: Jens Miltner <email@hidden>
- Date: Fri, 1 Feb 2008 09:59:49 +0100
Am 25.01.2008 um 18:23 schrieb David Dunham:
On 25 Jan 2008, at 02:21, Jens Miltner wrote:
I had this issue in a couple of projects and my solution was to
factor out the resource file/folder generation into a separate
target and make the main target depend on this new target.
Downside would be that it would have to do this every time you
built, which would be nice to avoid (it can be slow for large
games). I'm pretty sure that it would insist on updating this target
before compiling any files.
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.
What I usually do is to touch an output file in the derived sources
directory or some similar place. This will cause Xcode to compare the
modification date of the input file(s) with the touched file and only
run the shell script phase if the input files are newer.
Also, when running a clean build, the output files will be removed
automatically by Xcode.
</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