我想实现 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/