ios - 安装Firebase Pod时,我没有获得FirebaseDatabase模块?

标签 ios swift firebase firebase-realtime-database

我目前正在尝试使用我的应用读取数据并将数据写入 Firebase 数据库。但是,当我安装 pod 时,它只安装了 Firebase、FirebaseAnalytics、FirebaseCore 和 FirebaseInstanceID。

有没有其他方法可以得到这个模块?另外,如果它可能错过了任何其他模块,你能告诉我如何获取这些模块吗?谢谢。

这是我使用“Firebase/Database”进行 pod 安装时得到的结果

[!] Unable to satisfy the following requirements:

  • Firebase/DataBase required by Podfile

None of your spec sources contain a spec satisfying the dependency: Firebase/DataBase.

You have either: * out-of-date source repos which you can update with pod repo update. * mistyped the name or version. * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, pod repo update does not happen on pod install by default.

最佳答案

您可以通过在 podfile 中添加以下行来安装数据库 SDK:

pod“FirebaseDatabase”

关于ios - 安装Firebase Pod时,我没有获得FirebaseDatabase模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43241480/

相关文章:

javascript - Firebase - 检查使用 Google 帐户创建的用户是否正在注册或登录?

ios - 代码签名错误 : Application failed codesign verification

ios - 如何将 scrollview 嵌入到 tableview 单元格中?

android - 所有小部件的 flutter 填充?

iOS顶部导航栏设置标题颜色

ios - 当用户拒绝访问以允许通知时如何获取 FCM token

ios - 使用标准 iOS 组件重要吗?

ios - 自动布局和同心较小的嵌套 UIImageView

ios - 我可以在 IOS 8.1 中的 xib 文件中使用大小类吗?

java - addValueChangeListener 不会在 android 中触发