Flutter:building for iOS Simulator, but linking in object file built for iOS, for architecture arm64

某些依赖在pod install步骤配置会出错。

解决方案:

Podfile最后几行修改为:

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      flutter_additional_ios_build_settings(target)
      # 兼容 Flutter 2.5
      target.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
        config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'i386 arm64'
      end
    end
  end

参考:https://github.com/RxReader/tencent_kit/issues/54

你可能感兴趣的:(Flutter:building for iOS Simulator, but linking in object file built for iOS, for architecture arm64)