调用此扩展名时发生错误(注意:此代码未从原始代码(从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)
}
}
}
}
}
还有其他人遇到这个问题吗?谢谢!