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 个解决方案
#1
0
- Check if the application works without Firebase. Delete or comment out the lines of connection to the Firebase.
- If the application is working without errors, then go back to the initial code and check the GoogleService-Info.plist. The BUNDLE_ID must be the same as the Bundle Identifier of the application.
检查应用程序是否在没有Firebase的情删除或注释掉与Firebase的连接线。
如果应用程序正常运行,请返回初始代码并检查GoogleService-Info.plist。 BUNDLE_ID必须与应用程序的Bundle Identifier相同。
#1
0
- Check if the application works without Firebase. Delete or comment out the lines of connection to the Firebase.
- If the application is working without errors, then go back to the initial code and check the GoogleService-Info.plist. The BUNDLE_ID must be the same as the Bundle Identifier of the application.
检查应用程序是否在没有Firebase的情删除或注释掉与Firebase的连接线。
如果应用程序正常运行,请返回初始代码并检查GoogleService-Info.plist。 BUNDLE_ID必须与应用程序的Bundle Identifier相同。