Skip to content

Built framework fails to compile if adding/removing simulator from Architectures #10

@zackdotcomputer

Description

@zackdotcomputer

As of the latest Xcode (11.4), the framework is no longer rebuilding properly after adding or removing the simulator from the list of targeted architectures.

To reproduce: build an app with the FraudForce framework linked per instructions for either the simulator or for distribution. Then change the target so that the simulator is added or removed from the target architectures. Trying to rebuild again (even after a clean) will fail with the message "Building for iOS Simulator, but the linked and embedded framework 'FraudForce.framework' was built for iOS." (Or vice-versa if you are moving from simulator to distribution.)

This appears to be new behavior as of 11.4, as it is not presenting for coworkers who have not yet updated. The workaround for now is to delete the contents of the Frameworks-build folder, which will correctly cause the framework to be rebuilt with the proper architectures.

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