Firebase验证初始化未在iOS Swift中完成 [英] Firebase verification that initialisation is not complete in iOS Swift

查看:284
本文介绍了Firebase验证初始化未在iOS Swift中完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们的项目中,我们已将Fabric迁移到firebase并将测试崩溃 fatalError()放置在按钮操作中。 Xcode控制台的打印内容如下:

In our project, we have migrated Fabric to firebase and placed the testing crash "fatalError()" in the button action. The Xcode console print likes below:

[Firebase/Crashlytics] Packaged report with id 'c08fc8e4e5a612237324b59f41a4ea5a' for submission
 6.32.0 - [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. 
 6.32.0 - [Firebase/Crashlytics][I-CLS000000] Unable to read identifier at path /var/mobile/Containers/Data/Application/69232599-CB81-4B49-A560-8932B0553D4A/Library/Caches/com.crashlytics.data/com.id-pal.app/v5/reports/processing/c08fc8e4e5a612237324b59f41a4ea5a
 6.32.0 - [Firebase/Crashlytics][I-CLS000000] Failed to move file, inputs invalid
 6.32.0 - [Firebase/Crashlytics][I-CLS000000] Unable to move report to prepared

我还创建了新项目使用相同的包ID并尝试了上述步骤,并且我在上面遇到的日志相同,并且 Firebase初始化未完成。

Also I have created new Project with same bundle id and tried the above steps and I am facing the same logs above and Firebase that initialisation is not complete.

我遵循了Firebase文档: https://firebase.google.com/d ocs / crashlytics / getting-started

I have followed the firebase documentation: https://firebase.google.com/docs/crashlytics/get-started

注意:我已经在新示例应用程序中尝试过使用新登录名进行相同配置,我可以在Firebase仪表板没有问题。

我已经在Xcode中启用了 FIRDebugEnabled 并从代码库中删除了结构密钥。

I have enabled the FIRDebugEnabled in Xcode and removed the fabric keys from the code base.

POD文件安装:

Installing Firebase (6.32.2)
Installing FirebaseAnalytics (6.8.2)
Installing FirebaseCore (6.10.2)
Installing FirebaseCoreDiagnostics (1.6.0)
Installing FirebaseCrashlytics (4.6.0)
Installing FirebaseInstallations (1.7.0)
Installing FirebaseInstanceID (4.6.0)
Installing FirebaseMessaging (4.6.2)
Installing GoogleAppMeasurement (6.8.2)
Installing GoogleDataTransport (7.3.0)
Installing GoogleUtilities (6.7.2)
Installing PromisesObjC (1.2.10)
Installing Protobuf (3.13.0)
Installing nanopb (1.30906.0)

有人可以给m

推荐答案

第2行提到了您的问题。
将firebaseApp.configure()添加到application:didFinishLaunchingWithOptions:方法
中的应用程序委托中,如果您这样做,请告诉我。

line 2 mentioned your problem. add FirebaseApp.configure() to your app delegate in application:didFinishLaunchingWithOptions: method if you did this, please let me know.

这篇关于Firebase验证初始化未在iOS Swift中完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆