簡體   English   中英

Firebase配置迅速崩潰

[英]Firebase configration is crashing in swift

設定Firebase時應用程式當機,無法解決

錯誤:libc ++ abi.dylib:以NSException類型的未捕獲異常終止

碼:

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. 檢查應用程序是否在沒有Firebase的情況下運行。 刪除或注釋掉與Firebase的連接線。
  2. 如果應用程序正常運行,請返回初始代碼並檢查GoogleService-Info.plist。 BUNDLE_ID必須與應用程序的捆綁包標識符相同。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM