Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 无法插入副本\u发送_Swift_Firebase_Google Cloud Firestore - Fatal编程技术网

Swift 无法插入副本\u发送

Swift 无法插入副本\u发送,swift,firebase,google-cloud-firestore,Swift,Firebase,Google Cloud Firestore,当我尝试恢复事务中的文档时。如果该文档不存在,我会得到以下错误->[Common]\u bsmacheror:port 29b33;(os/kern)无效功能(0x14)“无法插入副本发送”,但我正在等待一个空文档、一个nil或任何不同的错误 database.runTransaction({ (transaction, errorPointer) -> Any? in var snapshot: DocumentSnapshot? do {

当我尝试恢复事务中的文档时。如果该文档不存在,我会得到以下错误->[Common]\u bsmacheror:port 29b33;(os/kern)无效功能(0x14)“无法插入副本发送”,但我正在等待一个空文档、一个nil或任何不同的错误

   database.runTransaction({ (transaction, errorPointer) -> Any? in

        var snapshot: DocumentSnapshot?
        do {
            try snapshot = transaction.getDocument(documentReference)
        } catch let fetchError as NSError {
            errorPointer?.pointee = fetchError
            return nil
        }

        if let document = snapshot, document.exists {
            errorPointer?.pointee = NSError(domain: 
提前感谢您的回复