我目前正在尝试使用我的应用读取数据并将数据写入 Firebase 数据库。但是,当我安装 pod 时,它只安装了 Firebase、FirebaseAnalytics、FirebaseCore 和 FirebaseInstanceID。
有没有其他方法可以得到这个模块?另外,如果它可能错过了任何其他模块,你能告诉我如何获取这些模块吗?谢谢。
这是我使用“Firebase/Database”进行 pod 安装时得到的结果
[!] Unable to satisfy the following requirements:
Firebase/DataBase
required byPodfile
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 onpod install
by default.
最佳答案
您可以通过在 podfile 中添加以下行来安装数据库 SDK:
pod“FirebaseDatabase”
关于ios - 安装Firebase Pod时,我没有获得FirebaseDatabase模块?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43241480/