3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

FlutterFire で設定したのに「Could not locate configuration file: 'GoogleService-Info.plist'」って言われる問題

Last updated at Posted at 2022-03-27

エラー

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 見る限り対応されるのは時間の問題かもしれません。楽しみですね。

3
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?