我尝试使用 Flutterfire 命令行工具将 Firebase 添加到我的 Flutter 项目中。我正在使用 Firebase 的 Google 验证服务,并调用 SignIn
函数,但它报错了。ios 文件夹中有 GoogleService-Info.plist
文件。
Unhandled Exception: PlatformException(missing-config, GoogleService-Info.plist file not found and clientId was not provided programmatically., null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
<asynchronous suspension>
#2 GoogleSignInPlatform.initWithParams (package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart:98:5)
<asynchronous suspension>
#3 GoogleSignIn._callMethod (package:google_sign_in/google_sign_in.dart:267:5)
<asynchronous suspension>
#4 GoogleSignIn.signIn.isCanceled (package:google_sign_in/google_sign_in.dart:402:5)
flutterfire
命令行工具连接到 firebase?请参考已接受的答案。 - ASAD HAMEED