Xcode checking for xcframework before run script can build it

My app depends on two frameworks that I don't want to check-in to source. Previously, when I was using traditional frameworks, I had a run script phase in the build steps that would compile the frameworks.

This worked well as the first time one would try to build the app it would also build the needed frameworks.

However, after switching to xcframeworks, this no longer works. Even though the run script phase is before the compile and link steps - the build still fails because the frameworks don't exist yet.

Is there a workaround for this, or have I encountered a bug?

Post not yet marked as solved Up vote post of ecnepsnai Down vote post of ecnepsnai
466 views

Replies

Same Isssue for me. I'm afraid the only option is to revert to original framework.

  • The only solution that I've come up with so far is to run the script once before opening the project in Xcode so the framework is present during the first build. Which is hacky and not a stable solution. Reported to Apple under #FB13341058.

Add a Comment