iCloud同步Ubiquity错误

Fou*_*usa 9 ios 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.)"
Run Code Online (Sandbox Code Playgroud)

不知道这意味着什么,但是如果我等了一会儿,似乎iCloud合并完成了......任何人都知道如何解决这个问题?

我尝试过设置

[_document.managedObjectContext 
   setMergePolicy:NSMergeByPropertyStoreTrumpMergePolicy] 
Run Code Online (Sandbox Code Playgroud)

但没有任何帮助......

日Thnx!

小智 3

这种日志只是提供信息。

iCloud 守护进程只能通过获取文件的元数据来查看文件是否位于您的无处不在的容器中。下载文件内容是第二个单独的步骤。

如果下载文件失败,它将稍后尝试下载。