Skip to content

Add ARM simulator architecture slice to App.framework to support Apple Silicon #69334

Description

@jmagman

With the upcoming support for Apple Silicon ARM simulators, App.framework (and add-to-app xcframework) needs a simulator ARM slice on ARM macOS. Universal (fat) App.framework can no longer contain architectures for both iphoneos and iphonesimulator since they need to be build against different SDKs, but they can no longer be lipod together (lipo complains both binaries contain arm64 and fails).

Primarily this is a problem when building the debug stub framework:

'lipo',
...darwinArchs.map((DarwinArch iosArch) =>
environment.fileSystem.path.join(buildOutputPath, getNameForDarwinArch(iosArch), 'App.framework', 'App')),
'-create',
'-output',
resultPath,

And in flutter build ios-framework that smush together plugin frameworks.

Flutter.framework engine work tracked in #64502

Activity

  1. added
    platform-iosiOS applications specifically
    toolAffects the "flutter" command-line tool. See also t: labels.
    P1High-priority issues at the top of the work list
    on Oct 29, 2020
  2. self-assigned this
    on Oct 29, 2020
  3. jmagman commented on Oct 30, 2020

    @jmagman
    MemberAuthor

    Not sure this will be possible without also changing this to an xcframework #36204 since the iphoneos and iphonesimulator ARM frameworks can't be lipo'd together.

    Edit: Actually it's not being distributed (except for add-to-app) so we can use App.framework, but it needs to be built for the requested target/SDK instead of for all supported archs.

  4. added this to the 1.25 - November 2020 milestone on Nov 4, 2020
  5. xster commented on Jan 11, 2021

    @xster
    Member

    Moving the milestone to March

  6. entonio commented on May 4, 2021

    @entonio

    What will be the correct command line to build a module that can be integrated using Option A from https://flutter.dev/docs/development/add-to-app/ios/project-setup ?

  7. jmagman commented on May 5, 2021

    @jmagman
    MemberAuthor

    @entonio What do you mean, are you seeing a problem related to option A and the ARM simulator?
    Don't forget to update EXCLUDED_ARCHS in your host app https://flutter.dev/docs/development/add-to-app/ios/project-setup#apple-silicon-arm64-macs

  8. removed this from the March Beta Release (1.28) milestone on Jun 23, 2021
  9. github-actions commented on Jul 30, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: existing-appsIntegration with existing apps via the add-to-app flowplatform-host-armBuilding on an ARM-based platformplatform-iosiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions