iCloud同步无处不在的错误
我在我的应用程序和同步工作中集成了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!
这种日志只是提供信息。
iCloud deamon只有通过获取元数据才能看到文件处于无处不在的容器中。 下载文件内容是第二个单独的步骤。
如果无法下载文件,则只会稍后尝试下载。