ios – 使用Firebase时使用未解析的标识符“FIRDatabase”

ios – 使用Firebase时使用未解析的标识符“FIRDatabase”,第1张

概述Xcode告诉我,FIRDatabase不是标识符. 我的代码: import UIKitimport Firebase@UIApplicationMainclass AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: Xcode告诉我,FIRDatabase不是标识符.
我的代码:
import UIKitimport Firebase@UIApplicationMainclass AppDelegate: UIResponder,UIApplicationDelegate {    var window: UIWindow?    func application(application: UIApplication,dIDFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {        FIRApp.configure()        FIRDatabase.database().persistenceEnabled = true // Use of unresolved IDentifIEr 'FIRDatabase'        return true    }}

我在用:

Xcode 7.2.1,
Firebase 3.0.2,
OSX 10.10.5

Podfile内容:

source 'https://github.com/CocoaPods/Specs.git'platform :ios,'8.0'use_frameworks!target 'myapp' dopod 'IQKeyboardManagerSwift','<= 4.0.0'pod 'JsQMessagesVIEwController','<= 7.3.1'pod 'Firebase'end
@R_502_6120@ 你需要添加
pod 'Firebase/Database'

到你的pod文件,如这里所述

https://firebase.google.com/docs/database/ios/start

在这里,您可以找到哪个pod包含哪个功能
Pods and Features

总结

以上是内存溢出为你收集整理的ios – 使用Firebase时使用未解析的标识符“FIRDatabase”全部内容,希望文章能够帮你解决ios – 使用Firebase时使用未解析的标识符“FIRDatabase”所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1113543.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存