Skip to content

Missing support for iPhoneSimulator platform on arm64 #980

@mrosales

Description

@mrosales

I've been stuck on this for awhile now. Since the introduction of Xcode 12, the default behavior when building a binary for all architecture is to include the iPhoneSimulator target for arm64, which would be to support Apple Silicon computers.

I'm trying to build an apple_static_library for the simulator with something like a --ios_multi_cpus=arm64,x86_64 option to build a simulator fat archive with both simulator slices.

Ultimately my goal is to create a simulator fat archive and a device fat archive and then merge them into an XCFramework that is importable by an Xcode based project, but I am stuck on figuring out how to configure bazel to build something that doesn't always assume that arm64 is iphoneos and iphonesimulator is x86_64 or i386.

I've been looking through the rules and configuration in this repo and don't think that this is possible. Am I missing something, or is this a missing feature?

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