warning: The iOS deployment target ‘IPHONEOS_DEPLOYMENT_TARGET‘ is set to 9.0

这篇博客主要介绍了在使用Flutter开发iOS应用时遇到的编译错误问题,以及如何通过修改podfile文件中post_install段落,将原有的代码替换为特定的设置,包括禁用BITCODE和设置最低部署目标为11.0,从而成功解决编译问题并确保应用顺利运行。

flutter工程打开编译运行报错需要在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|

flutter_additional_ios_build_settings(target)

target.build_configurations.each do |config|

config.build_settings['ENABLE_BITCODE'] = 'NO'

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

end

end

end

重新编译通过

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值