The iOS Simulator deployment target ‘IPHONEOS_DEPLOYMENT_TARGET‘ is set to 8.0, but the range...

flutter build ios 警告:

warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FMDB' from project 'Pods')

解决办法:在ios中podfile文件最后添加如下代码

post_install do |installer|

  installer.pods_project.targets.each do |target|

    flutter_additional_ios_build_settings(target)

    target.build_configurations.each do |config|

      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'

    end

  end

网上搜索需要  全局搜索 8.0 替换为10.0 或9.0  试验了 我这边还是不行行,最终还是上面方式有效果。

你可能感兴趣的:(The iOS Simulator deployment target ‘IPHONEOS_DEPLOYMENT_TARGET‘ is set to 8.0, but the range...)