Skip to content

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

Description

@Seoras

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions