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

Need to add support for iOS Simulator on Apple Silicon Macs #58

Open
SteveG-MATTR opened this issue Aug 11, 2022 · 0 comments
Open

Need to add support for iOS Simulator on Apple Silicon Macs #58

SteveG-MATTR opened this issue Aug 11, 2022 · 0 comments

Comments

@SteveG-MATTR
Copy link

I'd like to propose that we update the Obj-C wrapper created by ffi-bbs-signatures to include support for Apple Silicon iOS simulators.

The Objective C wrapper produces a libbbs.a file that is intended to link into an iOS target. Prior to Apple Silicon this supported iOS Simulators by including a slice for x86 architectures alongside one for arm64. (A single .a file cannot have more than one slice for the same architecture).

Since the adoption of Apple Silicon it is necessary to produce a slice for arm64-sim, otherwise linking fails. However we can't have an arm64 and an arm64-sim slice in the same .a file because they have the same architecture.

Apple suggests that the best solution is to provide multiple .a files, one for devices and another for simulators. These can be packaged together in a single framework for binary distribution.

The following page describes how to create a framework containing multiple .a files: https://developer.apple.com/forums/thread/650511

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

No branches or pull requests

1 participant