<转>Flutter 更新后 iOS 插件目标平台版本过低(IP

2020-10-21  本文已影响0人  DerekTime

<转自> https://www.cnblogs.com/mingsn/p/13801900.html
修改 ios 目录下的 Podfile 文件

将底部的代码

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

替换成即可

post_install do |installer|
  installer.pods_project.targets.each do |target|
      target.build_configurations.each do |config|
          config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
      flutter_additional_ios_build_settings(target)
  end
end
上一篇 下一篇

猜你喜欢

热点阅读