升级了Xcode 14.3 版本后Flutter运行IOS项目遇

2023-03-30  本文已影响0人  rhyme_lph

简介

最近升级了Xcode 14.3 版本后遇到下面的问题


bug

解决方法

更改 项目目录下面的 ios/Profile 文件

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)
  end
  installer.generated_projects.each do |project|
    project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
         end
    end
  end
end

即可解决,目的是让插件的最小版本号提升到11

上一篇 下一篇

猜你喜欢

热点阅读