views:

120

answers:

1

I have a shell script that runs as part of a Run Script phase in my targets that conditionally copies some files into the product. If I modify the shell script then rebuild, the script is not run because the target does not know that there is a dependency there.

How can I add a dependency so that modifications to the shell script cause the product to be rebuilt, either partly or completely? I can't do it directly through the Add Dependency dialog.

+2  A: 

Make a new target just for your script, have it copy its files into a temporary staging folder or something, make your main target depend upon it and do a second copy of its results.

Azeem.Butt