A housekeeping note — here is a link to a related thread Caleb started on a different slice of the problem, for anyone who may come to this in the future. I reread what you originally wrote, and it sounds like you had a reason to pull out this web bundle build into the aggregate target. Is there a reason where that couldn't be a script in the main app target that I'm not seeing? It seems like the file level input and output analysis of this step in the main app build phase would be enough. The one downside I see is that if the script does need to run in full, that could potentially be a place where you don't get a lot of concurrently running build tasks doing other things, and thus takes up more wall clock time than is ideal, but also maybe isn't that different from the pre-build script you started with. Another idea would be to question why this script needs to run via an Xcode build at all. If the source files don't change often, could other techniques like a git commit hook targeting the source file paths
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: