Skip to content

Flutter cannot build against ARM simulators (on ARM macOS host) #64502

@jmagman

Description

@jmagman

Targeting an ARM simulator fails:

[plugin_lint_mac] [STDOUT] stdout:     ld: building for iOS Simulator, but linking in dylib built for iOS, file '/var/folders/3y/l0z1x3693dl_8n0qybp4dqwh0000gn/T/CocoaPods-Lint-20200812-67637-y2vglb-test_plugin_objc/Pods/Flutter/Flutter.framework/Flutter' for architecture arm64
[plugin_lint_mac] [STDOUT] stdout:     clang: error: linker command failed with exit code 1 (use -v to see invocation

Flutter.framework has 2 arm iOS slices and 1 x86 simulator slice. There is no ARM simulator slice.

Also seen on an x86 host with iOS 14 simulators (so Xcode 12) when ONLY_ACTIVE_ARCH=NO (configuration=Release)

Blocked by #66926

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.dependency: dartDart team may need to help usengineflutter/engine related. See also e: labels.platform-host-armBuilding on an ARM-based platformplatform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions