はじめに
Flutter × Firebaseの初期設定は頻繁にする作業じゃないので、何かとよく忘れがちです。。。
久々にfirebaseを導入する部分をやったら
Error: The plugin "cloud_firestore" requires a higher minimum iOS deployment version than your application is targeting. To build, increase your application's deployment target to at least 13.0 as described at https://docs.flutter.dev/deployment/ios Error running pod install Error launching application on iPhone SE (3rd generation).
☝️のエラーでビルド失敗したので、、またやってしまったと思いながら記録します。
Podfileを編集
デフォルトではコメントになってる部分をコメントじゃなくして、エラーのメッセージ通り13.0を指定します。
ios/Podfile
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'
XcodeでMinimum deploymentsを編集
ios/Runner.xcworkspace
からxcodeを開き、generalからMinimum deploymentsを編集します。
参考