iCloud syncing Ubiquity error

微笑、不失礼 提交于 2019-12-04 10:47:33

问题


I integrated iCloud in my application and the syncing works, but sometimes I get this error:

+[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.)"

No idea what it means, but if I wait a while, it seems that the iCloud merges are done... Anyone an idea how to solve this?

I tried setting

[_document.managedObjectContext 
   setMergePolicy:NSMergeByPropertyStoreTrumpMergePolicy] 

but without any help...

Thnx!


回答1:


This kind of log is just informative.

The iCloud deamon can see that a file is in your ubiquitous container only by getting its meta data. Downloading the file content is a second, separate step.

If it fails to download a file, it will just attempt to download it later.



来源:https://stackoverflow.com/questions/8615372/icloud-syncing-ubiquity-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!