Post

Replies

Boosts

Views

Activity

Build Script Phase just before link?
Hi there,how do I set up a Build Script Phase so that it gets launched after (or along with) compile files, but before a link?The goal is to add a couple of libraries to the link list. Before compile phase it is too soon — the list would get overwritten later. After a link it is obviously too late.I can't simply add the libraries to the Link With Libraries phase, for I don't know them beforehand — the list of those libraries is generated externally and the script determines which ones are actually needed.So far, I have found only an extremely hackish solution — I can add foo.mysuffix to sources, and add the script as a build rule for *.mysuffix. That seems to work, but is ugly beyond ugly; I would really like to simply add the plain build script phase, if I could do that so that it is run at the right moment.Thanks for any insight,OC
6
0
2.9k
Feb ’20