美文网首页
Flutter:building for iOS Simulat

Flutter:building for iOS Simulat

作者: ufogxl | 来源:发表于2022-05-20 23:38 被阅读0次

某些依赖在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 Simulat

      本文链接:https://www.haomeiwen.com/subject/anvqprtx.html