エラー
FlutterFire cli を用いて Firebase にの接続情報を設定。
flutter run すると以下のエラーが発生する。
dart only で初期化できるようになったはずでは...?
8.11.0 - [Firebase/Core][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'.
8.11.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `FirebaseApp.configure()` to your application initialization. This can be done in in the App Delegate's application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI). Read more: https://goo.gl/ctyzm8.
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The default FirebaseApp instance must be configured before the default Authinstance can be initialized. One way to ensure this is to call `FirebaseApp.configure()` in the App Delegate's `application(_:didFinishLaunchingWithOptions:)` (or the `@main` struct's initializer in SwiftUI).'
解決策
過去の特定のバージョンのバグだったようで、firebase_auth を最新バージョンにしたら修正されました。
Google Sign in を使っている場合
2022/03/28の時点では、Google Sign in は dart only では初期化できないようです。
GoogleService-Info.plist を入れましょう。
issue 見る限り対応されるのは時間の問題かもしれません。楽しみですね。