美文网首页cocoaPods
Flutter iOS 编译报错提示 The iOS deplo

Flutter iOS 编译报错提示 The iOS deplo

作者: 百无聊赖先生 | 来源:发表于2021-03-29 12:09 被阅读0次

编译报错提示 The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported

1 .打开 项目目录/ios/Podfile

  1. 按照以下代码注释和新增
## 注释掉
#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|
    flutter_additional_ios_build_settings(target)
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
    end
  end
end

相关文章

网友评论

    本文标题:Flutter iOS 编译报错提示 The iOS deplo

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