这是随机开始发生的,我无法通过它。我的应用程序在调试区域启动时崩溃。2016-10-2914:31:57.606gigMe[2285:73317]Firebaseautomaticscreenreportingisenabled.Call+[FIRAnalyticssetScreenName:setScreenClass:]tosetthescreennameoroverridethedefaultscreenclassname.Todisableautomaticscreenreporting,settheflagFirebaseAutomaticScreenReportingEna
从零到应用程序的FirebaseIO示例给我无法定义的错误//Firebaseservicesvardatabase:FIRDatabase!继续//CreateachatmessagefromaFIRDataSnapshotfuncchatMessageFromSnapshot(snapshot:FIRDataSnapshot)->ChatMessage?{letdata=snapshot.valueas!Dictionaryguardletname=data["name"]asString!else{returnnil}guardletmessage=data["message"]
我正在尝试将我的应用升级到新版本的Firebase。我仔细阅读了设置指南并编辑了所有代码以匹配新语法。但是,当我运行该应用程序时,出现了这两个错误。Thedefaultapphasnotbeenconfiguredyet.Terminatingappduetouncaughtexception'MissingDatabaseURL',reason:'FailedtogetFIRDatabaseinstance:FIRAppobjecthasnodatabaseURLinitsFirebaseOptionsobject.'我在AppDelegate中有FIRApp.configure()
我正在尝试将我的应用升级到新版本的Firebase。我仔细阅读了设置指南并编辑了所有代码以匹配新语法。但是,当我运行该应用程序时,出现了这两个错误。Thedefaultapphasnotbeenconfiguredyet.Terminatingappduetouncaughtexception'MissingDatabaseURL',reason:'FailedtogetFIRDatabaseinstance:FIRAppobjecthasnodatabaseURLinitsFirebaseOptionsobject.'我在AppDelegate中有FIRApp.configure()
我正在尝试使用Firebase数据库。我正在观看有关如何使用Firebase的教程并编写了这行代码FIRDatabase.database().reference()。然后我收到一条错误消息,使用未解析的标识符FIRDatabase。我不知道导入Firebase和FirebaseDatabase有什么问题。我的播客文件#Uncommentthenextlinetodefineaglobalplatformforyourprojectplatform:ios,'10.2'target'FirebaseDatabase'do#Commentthenextlineifyou'renotusi
Xcode告诉我FIRDatabase不是标识符。我的代码:importUIKitimportFirebase@UIApplicationMainclassAppDelegate:UIResponder,UIApplicationDelegate{varwindow:UIWindow?funcapplication(application:UIApplication,didFinishLaunchingWithOptionslaunchOptions:[NSObject:AnyObject]?)->Bool{FIRApp.configure()FIRDatabase.database(