How to run a script before and after a build?
How to run a script before and after a build?
- Subject: How to run a script before and after a build?
- From: Michael Gaines <email@hidden>
- Date: Thu, 19 Oct 2006 09:39:55 -0400
Hi all,
In this project I'm working on, I need to clear a resource file before the build, have it built by Xcode, and modify it at the end of the build. I don't want to have to do a clean build every time just to get this resource file removed; I'd like to force its removal on every build - clean or not - so that it's always built clean. The only way I could see doing this is to create a prebuild script to delete the file, and drag it above "Copy Bundle Resources", but what Xcode seems to do is run the prebuild AND postbuild scripts first, as if Xcode thinks that when it sees one script, it has to run the second one immediately after. The postbuild script is after the "Build ResourceManager Resources" step, but now the postbuild step is run in the beginning rather than at the end like it used to before I added the prebuild script.
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?
_______________________________________________
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