Firebase 扑动火基认证

Firebase 扑动火基认证,firebase,flutter,dart,firebase-authentication,Firebase,Flutter,Dart,Firebase Authentication,我正在开发颤振应用程序,并将firebase auth添加到项目中。 它运行正常,但当应用程序加载时,控制台会这样说。 这是正常的行为吗?谢谢大家! 5.4.1 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your applic

我正在开发颤振应用程序,并将firebase auth添加到项目中。 它运行正常,但当应用程序加载时,控制台会这样说。 这是正常的行为吗?谢谢大家!

    5.4.1 - [Firebase/Core][I-COR000003]
 The default Firebase app has not yet been configured.
 Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift)
 to your application initialization.
检查颤振。然后创建一个,在该文件中添加以下库,以便能够使用Firebase auth:

pod 'Firebase/Core'
pod 'Firebase/Auth'
然后转到此路径
app\ios\Runner\AppDelegate.m
,导入并配置firebase:

#include "AppDelegate.h"
#include "GeneratedPluginRegistrant.h"

@import Firebase; // new

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

//configure firebase
[FIRApp configure]; // new

[GeneratedPluginRegistrant registerWithRegistry:self];
// Override point for customization after application launch.
return [super application:application didFinishLaunchingWithOptions:launchOptions];

  }

@end

我在使用firebase时遇到过类似的问题,结果发现我没有在iOS模块的Info.plist中包含配置

谢谢Peter,但即使我在Flatter中获得了firebase软件包,我也必须执行此步骤吗?是的,您还需要为iOS配置它,你有ios部分的
谷歌服务信息.plist
吗?哦,我不知道,非常感谢!!是的,我在Runner子文件夹中有。好的,请转到此路径
appname\ios\Runner\AppDelegate.m
,然后导入并配置firebase@PeterHaddad我想知道您是如何使用ios文档将其实现到flifter中的?它没有写在任何其他文档中。这个解决方案有助于解决问题的错误,但在我的项目中仍然存在google登录错误。使用firebase ios文档安装google登录——这是一个乏味的项目,需要掌握objective-c的中级技能——只需使用Flatter即可。你知道怎么做吗?