ios - Firestore : Use of unresolved identifier 'Firestore'

标签 ios firebase google-cloud-firestore

我想实现 Firestore 数据库。在我的 Podfile 中,我添加了 pod 'Firebase/Firestore' 并执行了 pod install。当尝试使用 let db = Firestore.firestore()时,我收到错误:使用未解析的标识符“Firestore”。我也尝试过 pod update,它也说 Using FirebaseFirestore (0.12.2) 但它不起作用。我该怎么办?

最佳答案

您需要导入它。

在管理器文件的顶部包含 import FirebaseFirestore

关于ios - Firestore : Use of unresolved identifier 'Firestore' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50706051/

相关文章:

python - 云数据流流式传输,空闲时停止以省钱?

ios - 根据用户在 Swift 中的方向旋转 Mapbox map

android - 用户注销 React Native 应用程序时如何删除 Firebase 云消息传递 token ?

javascript - 如何使用 JavaScript 有条件地将过滤器应用于 Firestore 查询

javascript - 创建 Firestore 对象数组时出现问题

arrays - 从数组值中查找 Firebase Child - xcode 8/swift 3

firebase - 如果文档不存在,则 Flutter Firebase

iphone - 检查基于 PFRelation 的 PFTableViewCell

ios - UICollectionview 滚动时向服务器发送请求?

android - 跟踪推送通知并记录它们