ios - Firebase 配置快速崩溃

标签 ios swift firebase firebase-realtime-database firebase-security

配置 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
        }

enter image description here

最佳答案

  1. 检查应用程序是否可以在没有 Firebase 的情况下正常运行。删除或注释掉与 Firebase 的连接线。
  2. 如果应用程序运行正常,没有错误,则返回到初始代码并检查 GoogleService-Info.plist。 BUNDLE_ID 必须与应用程序的 bundle 标识符相同。

关于ios - Firebase 配置快速崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46972971/

相关文章:

ios - 为什么当从 Alamofire 响应触发代码时 KYDrawerController 不显示?

iOS swift : Get user selected phone number from CNContactProperty as a string

javascript - 如何在 Firebase 中显示 displayName?

objective-c - 从 sqlite 数据库 Objective-C 播放音频文件

ios - 带有实时应用程序的 Facebook Review Process iOS(没有可用的模拟器构建)

ios - layerRectConverted(来自MetadataOutputRect :) issue

javascript - 使用开始和结束索引以及单个 where 子句从 firebase 数据库中检索数组

swift - 在 Firebase 中删除项目

ios - 来自 SKPhysicsBody applyImpulse 的奇怪行为

c# - 使用 Xamarin 构建可移植 SignalR 组件