简体   繁体   English

Firebase配置迅速崩溃

[英]Firebase configration is crashing in swift

App is crashing while configure firebase,Unable to resolve 设定Firebase时应用程式当机,无法解决

Error:libc++abi.dylib: terminating with uncaught exception of type NSException 错误:libc ++ abi.dylib:以NSException类型的未捕获异常终止

Code: 码:

import UIKit
import Firebase
import FirebaseDatabase
import CoreData
import IQKeyboardManagerSwift


    let mainUrl = "https://gopolly.com/well.php/"

    @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate
    {
        var window: UIWindow?


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

            FirebaseApp.configure()
           IQKeyboardManager.sharedManager().enable=true

            return true
        }

在此处输入图片说明

  1. Check if the application works without Firebase. 检查应用程序是否在没有Firebase的情况下运行。 Delete or comment out the lines of connection to the Firebase. 删除或注释掉与Firebase的连接线。
  2. If the application is working without errors, then go back to the initial code and check the GoogleService-Info.plist. 如果应用程序正常运行,请返回初始代码并检查GoogleService-Info.plist。 The BUNDLE_ID must be the same as the Bundle Identifier of the application. BUNDLE_ID必须与应用程序的捆绑包标识符相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM