【问题标题】:iCloud syncing Ubiquity erroriCloud 同步 Ubiquity 错误
【发布时间】:2012-01-26 18:33:25
【问题描述】:

我在我的应用程序中集成了 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] 

但没有任何帮助...

谢谢!

【问题讨论】:

    标签: ios icloud


    【解决方案1】:

    这种日志只是提供信息。

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

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

    【讨论】:

    • 我看到了非常相似的错误,包括“导入操作遇到损坏的日志文件”。 iCloud 守护进程每分钟左右都会重试一次,但至少在我的情况下,它似乎无法克服这些错误。但是,我看到了在后续重试时解决错误的情况。
    • @Daniel 你找到解决方案了吗?我有一个问题,我每 30 秒收到一个“CoreData:Ubiquity:导入事务日志错误:”错误。获取请求被阻止。
    • @Stephan - 是的,我找到了解决这个问题的方法:升级到 iOS 5.1。虽然,它明显好得多,但我仍然发现同步可能需要一段时间(这是可以接受的),但随后我不再收到更改通知。但是,如果我终止应用程序并重新启动,我可以看到新数据。我认为关闭和打开 UIManagedDocument 也可以解决这个问题,但我推迟了这样做,希望更新的 iOS 版本也能自动解决这个问题。
    • @Daniel thx ...是的,我也看到了。是的,我希望 iOS6 会解决这个问题 :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-03-28
    • 2016-01-27
    • 1970-01-01
    • 1970-01-01
    • 2012-08-03
    • 2014-12-13
    相关资源
    最近更新 更多