Re: How to run a script before and after a build?
Re: How to run a script before and after a build?
- Subject: Re: How to run a script before and after a build?
- From: leenoori <email@hidden>
- Date: Thu, 19 Oct 2006 16:11:19 +0200
El 19/10/2006, a las 15:48, Marc Epard escribió:
on 10/19/06 8:39 AM, Michael Gaines wrote:
Am I wrong in assuming that Xcode should run the scripts in the
order in
which they're listed? Should I report this as a bug?
I believe Xcode runs the scripts according to their dependencies
and may run
them concurrently.
I've never seen Xcode run scripts concurrently. I've always seen it
run them sequentially.
But I think your dependency comment is on the right track. It appears
that the dependency analysis is performed at the beginning of the
build, because any shell script (or any other) build phases. It's
possible that your shell script phase might be modifying something in
such a way that the dependency analysis is rendered invalid.
You need to set the input and put files for the script
build phases.
I think the solution in this case is actually to make a separate
target that contains only a shell script build phase. In the separate
target's shell script you make whatever modifications you want (in
this case, deleting a resource file). You then make that target a
dependency for the other target. In this way the resource file is
guaranteed to be deleted before the dependency analysis is undertaken
when building the main target.
_______________________________________________
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