ios - 我的 Flutter/Firebase 应用显示尚未配置任何应用

标签 ios firebase flutter visual-studio-code

我正在 Flutter/Firebase 中制作应用程序,但在我的 Visual Studio 代码终端上遇到以下错误:-

Xcode build done.                                           522.2s
6.26.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
6.26.0 - [Firebase/Messaging][I-FCM001000] FIRMessaging Remote Notifications 
proxy enabled, will swizzle remote notification receiver handlers. If you'd 
prefer to manually integrate Firebase Messaging, add 
"FirebaseAppDelegateProxyEnabled" to your Info.plist, and set it to NO. Follow 
the instructions at:
https://firebase.google.com/docs/cloud- 
messaging/ios/client#method_swizzling_in_firebase_messaging
to ensure proper integration.
Waiting for iPhone 11 to report its views...                         9ms
Syncing files to device iPhone 11...                               610ms
关于如何解决这个问题的任何想法......????

最佳答案

我解决了这个问题。如果您在 AppDelegate.swift 中使用 swift,请确保已按该顺序添加以下内容:

FirebaseApp.configure() //add this before the code below
GeneratedPluginRegistrant.register(with: self)
如果您使用带有 Objective-c 的 flutter ,请将以下内容添加到您的 appdelgate.m 文件中:-
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[FIRApp configure]; //add this right after the above

关于ios - 我的 Flutter/Firebase 应用显示尚未配置任何应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64014893/

相关文章:

ios - 向 coredata 添加一个新实体——我还能使用轻量级迁移吗?

ios - UIlabel 中的下划线文本

android-studio - flutter/Dart 错误 : The argument type 'Null Function(Key)' can't be assigned to the parameter type 'void Function(Object)'

ios - UIPageViewController 以编程方式进行中间转换?

ios - Swift - Firebase Auth with Microsoft Graph(重定向 URL 问题)

swift - 将 textfield.text 与 firebase 字符串 swift 进行比较

android - Firebase - 检索后单击按钮编辑/更新数据库

flutter - 在Flutter中将forEach循环转换为Future.forEach循环

flutter - 如何重置 TextFormField 中的错误消息?

ios - 在启动时显示主视图,在 "slide over"上显示详细 View