Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 12 build error "Building for iOS, but the linked and embedded framework 'KSTSpectrumLibrary.framework' was built for iOS + iOS Simulator." #9

Open
Seoras opened this issue Jul 13, 2021 · 2 comments

Comments

@Seoras
Copy link

Seoras commented Jul 13, 2021

Apparently Apple are now requiring separate framwork binaries for iOS Release (ARM) and iOS Simulator (x86).
The KST framework binary is a "fat" binary that contains both which is no longer supported/allowed.
This change was introduced by Apple in Xcode 12.

See the stackoverflow questions/answers here and here for more information on this.

From one of the answers on stackoveflow:

I'm afraid that this is actually the correct error and the framework shouldn't contain iOS and iOS Simulator code at the same time. Apple tries to force us to use XCFrameworks for this purpose. They started it in XCode 11 and just tightened up the restrictions.
The only correct way to resolve this is to rebuild the framework as an XCFramework. Which is easy to do:

@bobkressin
Copy link
Member

I reached out to you privately, @Seoras , but we are taking a peek at this now, along with several critical updates for both iOS and Android. Feel free to update and submit a Pull Request for the benefit of everyone. Thanks!

@dinithep
Copy link

@bobkressin is there any updated versions? both android and ios?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants