Skip to content

flutter engine on iOS arm simulator does not build #66925

Closed

Description

@jonahwilliams

After updating to Xcode 12.2 and fixing the gn rules to support arm as a cpu arch, the build eventually fails with a linker error. The completer failure message is:

ninja: Entering directory `out/ios_debug_sim_unopt/'
[1/10] if [ ! -e ./libFlutter.dylib -o ! -e ./libFlutter.dylib.TOC ] || otool -l ./libFlutter.dylib | grep -q LC_REEXPORT_DYLIB ; then ../../buildtools/mac-x64/clang/bin/clang++ -shared -isysroot /Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk -mios-simulator-version-min=8.0   -Wl,-object_path_lto,./lto_libFlutter.o -Wl,-install_name,@rpath/Flutter.framework/Flutter -arch arm64 -stdlib=libc++ -o ./libFlutter.dylib -Wl,-filelist,./libFlutter.dylib.rsp  -framework AudioToolbox -framework CoreMedia -framework CoreVideo -framework OpenGLES -framework QuartzCore -framework UIKit -framework IOKit -framework Foundation -ldl -lpthread -framework CoreFoundation -framework ImageIO -framework MobileCoreServices -framework CoreGraphics -framework CoreText -framework UIKit -framework Security && { otool -l ./libFlutter.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libFlutter.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libFlutter.dylib.TOC; else ../../buildtools/mac-x64/clang/bin/clang++ -shared -isysroot /Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk -mios-simulator-version-min=8.0   -Wl,-object_path_lto,./lto_libFlutter.o -Wl,-install_name,@rpath/Flutter.framework/Flutter -arch arm64 -stdlib=libc++ -o ./libFlutter.dylib -Wl,-filelist,./libFlutter.dylib.rsp  -framework AudioToolbox -framework CoreMedia -framework CoreVideo -framework OpenGLES -framework QuartzCore -framework UIKit -framework IOKit -framework Foundation -ldl -lpthread -framework CoreFoundation -framework ImageIO -framework MobileCoreServices -framework CoreGraphics -framework CoreText -framework UIKit -framework Security && { otool -l ./libFlutter.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libFlutter.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libFlutter.dylib.tmp && if ! cmp -s ./libFlutter.dylib.tmp ./libFlutter.dylib.TOC; then mv ./libFlutter.dylib.tmp ./libFlutter.dylib.TOC ; fi; fi
FAILED: libFlutter.dylib libFlutter.dylib.TOC 
if [ ! -e ./libFlutter.dylib -o ! -e ./libFlutter.dylib.TOC ] || otool -l ./libFlutter.dylib | grep -q LC_REEXPORT_DYLIB ; then ../../buildtools/mac-x64/clang/bin/clang++ -shared -isysroot /Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk -mios-simulator-version-min=8.0   -Wl,-object_path_lto,./lto_libFlutter.o -Wl,-install_name,@rpath/Flutter.framework/Flutter -arch arm64 -stdlib=libc++ -o ./libFlutter.dylib -Wl,-filelist,./libFlutter.dylib.rsp  -framework AudioToolbox -framework CoreMedia -framework CoreVideo -framework OpenGLES -framework QuartzCore -framework UIKit -framework IOKit -framework Foundation -ldl -lpthread -framework CoreFoundation -framework ImageIO -framework MobileCoreServices -framework CoreGraphics -framework CoreText -framework UIKit -framework Security && { otool -l ./libFlutter.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libFlutter.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libFlutter.dylib.TOC; else ../../buildtools/mac-x64/clang/bin/clang++ -shared -isysroot /Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk -mios-simulator-version-min=8.0   -Wl,-object_path_lto,./lto_libFlutter.o -Wl,-install_name,@rpath/Flutter.framework/Flutter -arch arm64 -stdlib=libc++ -o ./libFlutter.dylib -Wl,-filelist,./libFlutter.dylib.rsp  -framework AudioToolbox -framework CoreMedia -framework CoreVideo -framework OpenGLES -framework QuartzCore -framework UIKit -framework IOKit -framework Foundation -ldl -lpthread -framework CoreFoundation -framework ImageIO -framework MobileCoreServices -framework CoreGraphics -framework CoreText -framework UIKit -framework Security && { otool -l ./libFlutter.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libFlutter.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libFlutter.dylib.tmp && if ! cmp -s ./libFlutter.dylib.tmp ./libFlutter.dylib.TOC; then mv ./libFlutter.dylib.tmp ./libFlutter.dylib.TOC ; fi; fi
ld: warning: ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//OpenGLES.framework/OpenGLES.tbd) built for iOS Simulator
building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//CoreVideo.framework/CoreVideo.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//QuartzCore.framework/QuartzCore.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//IOKit.framework/IOKit.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//AudioToolbox.framework/AudioToolbox.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//Foundation.framework/Foundation.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//CoreMedia.framework/CoreMedia.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//MobileCoreServices.framework/MobileCoreServices.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//ImageIO.framework/ImageIO.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//CoreText.framework/CoreText.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//UIKit.framework/UIKit.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//Security.framework/Security.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//CoreGraphics.framework/CoreGraphics.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/libpthread.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/libdl.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/libc++.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/libSystem.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/PrivateFrameworks/AudioToolboxCore.framework/AudioToolboxCore.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/libobjc.A.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//CoreServices.framework/CoreServices.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/Frameworks//FileProvider.framework/FileProvider.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/PrivateFrameworks/DocumentManager.framework/DocumentManager.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/PrivateFrameworks/ShareSheet.framework/ShareSheet.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libcache.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libcommonCrypto.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libcompiler_rt.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libcopyfile.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libcorecrypto.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libdispatch.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libdyld.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/liblaunch.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libmacho.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libremovefile.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_asl.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_blocks.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_c.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_collections.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_configuration.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_containermanager.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_coreservices.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_darwin.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_dnssd.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_featureflags.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_info.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_m.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_malloc.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_notify.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_product_info_filter.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_sandbox.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_sim_kernel.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_sim_platform.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_sim_pthread.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_trace.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libunwind.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libxpc.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/libc++abi.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_sim_kernel_host.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_sim_platform_host.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_sim_pthread_host.tbd) built for iOS Simulator
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_kernel.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_platform.tbd) built for macOS/Mac Catalyst
ld: warning: building for iOS, but linking in .tbd file (/Users/jonahwilliams/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.2.sdk/usr/lib/system/libsystem_pthread.tbd) built for macOS/Mac Catalyst
Undefined symbols for architecture arm64:
  "_skia_png_init_filter_functions_neon", referenced from:
      _png_init_filter_functions in libpng.pngrutil.o
ld: symbol(s) not found for architecture arm64
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

This requires the following changes to tools/gn:

     if args.target_os == 'android':
         gn_args['target_cpu'] = args.android_cpu
     elif args.target_os == 'ios':
-        if args.simulator:
-            gn_args['target_cpu'] = 'x64'
-        else:
-            gn_args['target_cpu'] = args.ios_cpu
+      gn_args['target_cpu'] = args.ios_cpu
     elif args.target_os == 'linux':
       gn_args['target_cpu'] = args.linux_cpu
     elif args.target_os == 'fuchsia':

Activity

  1. added
    platform-iosiOS applications specifically
    engineflutter/engine related. See also e: labels.
    on Sep 29, 2020
  2. jonahwilliams commented on Sep 29, 2020

    @jonahwilliams
    ContributorAuthor

    User error: I built an ios simulator target, needed to be host simulator target

  3. github-actions commented on Aug 12, 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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineflutter/engine related. See also e: labels.platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions