Skip to content

Plugin linking fails using local engine: Flutter.framework/Flutter, building for iOS-arm64 but attempting to link with file built for iOS Simulator-x86_64 #51989

@jmagman

Description

@jmagman

Similar to #50568 but for plugins when building with a non-fat local engine (only x86 or only arm)

ld: warning: ignoring file /Users/m/Downloads/app5/ios/Flutter/Flutter.framework/Flutter, building for iOS-arm64 but attempting to link with file built for iOS Simulator-x86_64
Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_FlutterStandardMessageCodec", referenced from:
      objc-class-ref in FlutterWebView.o
  "_OBJC_CLASS_$_FlutterError", referenced from:
      objc-class-ref in FLTWKNavigationDelegate.o
      objc-class-ref in FlutterWebView.o
  "_OBJC_CLASS_$_FlutterMethodChannel", referenced from:
      objc-class-ref in FLTCookieManager.o
      objc-class-ref in FlutterWebView.o
  "_FlutterMethodNotImplemented", referenced from:
      -[FLTCookieManager handleMethodCall:result:] in FLTCookieManager.o
      ___83-[FLTWKNavigationDelegate webView:decidePolicyForNavigationAction:decisionHandler:]_block_invoke in FLTWKNavigationDelegate.o
      -[FLTWebViewController onMethodCall:result:] in FlutterWebView.o
ld: symbol(s) not found for architecture arm64

The plugin targets run before the app target, so it fails before xcode_backend can run and copy the right version of Flutter.framework at FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/../Flutter".

Made worse by https://github.com/flutter/flutter/pull/42029/files#diff-4c9b1f4062d1444c8802dec8fea33e95L49.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectt: xcode"xcodebuild" on iOS and general Xcode project managementteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.triaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions