事象
firebase_authのインストール後、fluutter run実行。その際に下記エラーが発生。デフォルトのpodのversionは9.0だが、インストール対象のライブラリが9.0以上でないとインストールできないことが原因のようだ。
実行結果とエラー内容
~/develop/study/photoapp/ios $ flutter run
[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.
修正方法
Podfileの二行目を修正。
Podfileの修正箇所
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '12.0' ←この行を追加する。
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'