我在我的应用程序中集成了iCloud并且同步工作正常,但有时我会收到此错误:
+[PFUbiquityTransactionLog loadPlistAtLocation:withError:](324): CoreData: Ubiquity:
Encountered an error trying to open the log file at the location: <PFUbiquityLocation:
0x1993c0>: /private/var/mobile/Library/Mobile Documents/ ...
Error: Error Domain=NSCocoaErrorDomain Code=256 "The operation couldn’t be completed.
(Cocoa error 256 - The item failed to download.)"
-[PFUbiquityTransactionLog loadComparisonMetadataWithError:](220): CoreData: Ubiquity:
Error encountered while trying to load the comparison metadata for transaction log:
<PFUbiquityTransactionLog: 0x1a3d60>
transactionLogLocation: <PFUbiquityLocation: 0x1993c0>: /private/var/mobile/Library/Mobile Documents/
transactionNumber: (null)
Error: Error Domain=NSCocoaErrorDomain Code=134302 "The operation couldn’t be completed.
(Cocoa error 134302.)" UserInfo=0x1a50e0 {reason=Error during property list parsing during
import or opening of log file at location: <PFUbiquityLocation: 0x1993c0>:
/private/var/mobile/Library/Mobile Documents/ ... Error Domain=NSCocoaErrorDomain Code=256
"The operation couldn’t be completed. (Cocoa error 256 - The item failed to download.)"
不知道这意味着什么,但是如果我等了一会儿,似乎iCloud合并完成了......任何人都知道如何解决这个问题?
我尝试过设置
[_document.managedObjectContext
setMergePolicy:NSMergeByPropertyStoreTrumpMergePolicy]
但没有任何帮助......
日Thnx!
答案 0 :(得分:3)
这种日志只是提供信息。
iCloud守护程序只能通过获取其元数据才能看到文件在您无处不在的容器中。下载文件内容是第二个单独的步骤。
如果无法下载文件,它将稍后尝试下载。