Flutter中的报错:(IOS pod 版本错误) error: compiling for iOS 8.0, but module 'xxx' has a minimum deployment target of iOS 9.0

时间:2021-02-01 11:44:39   收藏:0   阅读:0

方式一: 去xcode中找到该插件修改build version 改到报错的版本号(这里实例为9.0);

  这种方式在使用flutter build  / flutter run 的时候会被重制

方式二: 

  通过将以下代码添加到Podfile最下面,替换原来的post_install,解决这个问题

  

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings[ENABLE_BITCODE] = NO
        config.build_settings[IPHONEOS_DEPLOYMENT_TARGET] = 9.0
    end
  end
end

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!