【问题标题】:Error with Firebase 4.0 - 'The default Firebase app has not yet been configured' though FirebaseApp.configure() seems correct [duplicate]Firebase 4.0 出错 - 尽管 FirebaseApp.configure() 似乎正确,但“尚未配置默认 Firebase 应用程序”[重复]
【发布时间】:2018-01-15 04:02:06
【问题描述】:

我刚刚将 Firebase 从 3.0 更新到 4.0,我正在使用 Swift 3 和 Xcode 8.3.3。

我有所需的 firebase 应用程序初始化程序,如下所示:

func application(_ application:Application, didFinishLaunchingWithOptions launchOptions:[UIApplicationLaunchOptionsKey: Any]?) -> Bool {

        // Use Firebase library to configure APIs
        FirebaseApp.configure()

    }

但是,我仍然得到:

2017-08-07 19:33:56.855 hollerApp[33802] <Error> [Firebase/Core][ICOR000003] The default Firebase app has not yet been configured. Add `[FIRApp configure];` (`FirebaseApp.configure()` in Swift) to your application initialization. Read more: GOOGLE_URL libc++abi.dylib: terminating with uncaught exception of type NSException(lldb)'

我已经尝试了堆栈溢出中列出的所有内容,欢迎任何关于如何解决此问题和加载我的应用的新想法。

【问题讨论】:

    标签: swift xcode firebase


    【解决方案1】:

    你可能已经看过这个了,但我想我应该给你看,直到我回家看看我的设置:The default app has not been configured yet

    这可能是添加它的正确位置,但您可能在配置之前在其他地方引用了数据库(或 Firebase)。

    【讨论】:

    • 请不要发布只是链接到另一个 Stack Overflow 帖子的答案。拥有足够的声誉,您将能够对任何帖子发表评论,并将问题标记为重复。
    • 非常感谢!这就是问题所在。那真是要了我的命。
    • @Jal 我没有足够的声誉来发表评论,他收到的错误与我链接的帖子不同。只是想让他解决他的问题。
    • 你做得最有效的
    猜你喜欢
    • 2021-09-22
    • 1970-01-01
    • 2018-12-01
    • 2020-04-02
    • 1970-01-01
    • 1970-01-01
    • 2016-09-16
    • 2019-11-09
    • 1970-01-01
    相关资源
    最近更新 更多