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
參考#
本文原刊登於 Medium。