出现错误:类型为“ ARReferenceObject”的值没有成员“合并”:正在运行ScanningApp ARKit2 beta

时间:2018-08-10 05:50:27

标签: swift swift4 arkit

调用此扩展名时发生错误(注意:此代码未从原始代码(从Apple下载)修改而来)


extension ARReferenceObject {
    func mergeInBackground(with otherReferenceObject: ARReferenceObject, completion: @escaping (ARReferenceObject?, Error?) -> Void) {
        DispatchQueue.global(qos: .background).async {
            do {
                let mergedObject = try self.merge(otherReferenceObject)
                DispatchQueue.main.async {
                    completion(mergedObject, nil)
                }
            } catch {
                DispatchQueue.main.async {
                    completion(nil, error)
                }
            }
        }
    }
}

还有其他人遇到这个问题吗?谢谢!

0 个答案:

没有答案