开发者

How to make Xcode "Run Script" to always run

I h开发者_开发知识库ave a "run script" step that dynamically creates resources/files that I copy into the build dirs. Every run of this script produces different content so I want it to run on every build. The script gets run correctly on a clean build however once a build is made the step is not run again since no source has been modified.

I tried setting the input of the step to /dev/random but it does not seem to trigger a changed environment and does not re run the step.

Is there a way I can set this up so this step gets run ever time build is pressed, as opposed to only when the source is modified or clean?


You should put the Run Script build phase in a separate Aggregate Target, and make your main target dependent on the Aggregate Target. The Aggregate should be built every time.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜