Flutter中的報錯:(IOS pod 版本錯誤) error: compiling for iOS 8.0, but module 'xxx' has a minimum deployment target of iOS 9.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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM