Flutter IPHONEOS_DEPLOYMENT_TARGET is set to 8.0


修改 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'] = '10.0'
      end
      flutter_additional_ios_build_settings(target)
  end
end

首先我这里的目标是 iOS 10.0,自行更改

ios/Flutter/AppFrameworkInfo.plistMinimumOSversion 设置为 10.0

在Xcode中,将 Runner-> Project-> Runner 上的iOS Deployment Target 设置为 10.0

在Xcode中,将 Runner-> Targets-> Runner 中的 Deployment Info 设置为 iOS 10.0

取消注释 ios/Podfile 中的 #platform:iOS,'9.0' 改至 #platform:iOS,'10.0'


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM