yii.
← Writing
開發筆記 · · 1 min read

Flutter | 問題 | Version | but the range of supported deployment target version for this platform is 8.0 to 12.1

這篇寫於 2020 年。工具和 API 變化很快,部分步驟可能已經不適用。

紀錄開發時發現的問題

原因#

套件與專案的版本差異

解決#

  • 設置/ios/Podfile檔案,更新post_install部分
post_install do |pi|
    pi.pods_project.targets.each do |t|
      t.build_configurations.each do |config|
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
      end
    end
end
  • 這樣podfiles就會自動配合本身的deployment target version

參考#

  1. https://stackoverflow.com/questions/54704207/the-ios-simulator-deployment-targets-is-set-to-7-0-but-the-range-of-supported-d

本文原刊登於 Medium。