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?
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_libraryfor the simulator with something like a--ios_multi_cpus=arm64,x86_64option 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
arm64isiphoneosandiphonesimulatorisx86_64ori386.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?