Skip to content

Support for arm64 simulator builds for iOS #588

@john-forrest

Description

@john-forrest

I raised this on gitter.im but not sure anyone reads that much now, so excuse the double request. The request is quite simple: has anyone managed to build arm64 binaries for ios simulators, preferable combined ones with x64?

Some of our mobile engineers now have Macs with M1 processors and can't handle the x64 binaries we traditionally send them. From what I can see, I need to build a fat binary where the arm64 binary is built for iphonesimulator, iphoneos. Even creating a polly toolchain where the IPHONEOS_ARCHS is empty does not seem to be supported, but inside hunter there is logic which seems to assume arm architectures mean device and x86 architectures mean simulator. I support a forked hunter anyway, but it feels like I am having to do a lot of change to support this. I am wondering if I have missed a trick or (it feels) nobody has so far tried to do this.

Going forward it seems we need to have two build jobs for iOS: one for device (currently just arm64) and one for simulator (will be both x86 and arm64). (The two arm64 builds are different.) This will be fed into the new xcframework model, where there will be two .a files and not a single one as at present.

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