Swift FIRFirestoreErrorDomain代码=13“;发生内部错误。”;
获取文档时出错:错误域=FIRFirestoreErrorDomain代码=13“发生内部错误。” 我无法理解这个信息的真正含义Swift FIRFirestoreErrorDomain代码=13“;发生内部错误。”;,swift,google-cloud-firestore,Swift,Google Cloud Firestore,获取文档时出错:错误域=FIRFirestoreErrorDomain代码=13“发生内部错误。” 我无法理解这个信息的真正含义 我添加了“GoogleService Info.plist”文件 我在AppDelegate.swift文件中添加了FirebaseApp.configure() 我意识到一件事Firebase用户登录后不会发生这种情况。 下面是我的数据安全规则。但我不明白为什么它是这样工作的 let db = Firestore.firestore() db.collectio
- 我添加了“GoogleService Info.plist”文件
- 我在AppDelegate.swift文件中添加了FirebaseApp.configure()
let db = Firestore.firestore()
db.collection("places").getDocuments() { (querySnapshot, err) in
if let err = err {
print("Error getting documents: \(err)")
} else {
}
}
你知道了吗?对不起,我没有。我不再使用Firestore了。
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if true;
}
match /places/{place} {
allow read: if true;
allow write: if request.auth.uid != null;
}
match /placeComments/{placeComments} {
allow read: if true;
allow write: if request.auth.uid != null;
}
}
}