问题描述
您好,我想让我的核心数据应用程序同步到iCloud,以便可以使用多个设备。
Hi I am trying to get my core data app syncing to iCloud so that multiple devices can be used.
我刚刚开始一个新的iCloud帐户进行测试和安装我的应用程序在两个设备上。我已使用此链接上的说明启用了iCloud的应用程序,并通过比较我的应用程序与苹果的coreDataRecipes示例代码。
I just started a new iCloud account for testing and installed my app on both devices. I have enabled my app for iCloud using instructions at this link Using CoreData with icloud and by also comparing my app to apple's coreDataRecipes example code.
我没有得到任何同步,所以我做了一些日志,以找出发生了什么。从iPad A向核心数据添加对象后,我在连接到计算机的iPad B上收到了以下日志。
I was not getting any syncing occurring so I did some logs to find out what was occurring. After adding an object to core data from iPad A i received the following log on iPad B which was connected to the computer.
2012-01-20 17:35:35.979 My-App[407:22d7] AppDelegate Merge Changes From iCloud Notifications
2012-01-20 17:35:35.980 My-App[407:22d7] AppDelegate managed Object Context
2012-01-20 17:35:35.981 My-App[407:707] Block redirecting to method merge icloud changes for context
2012-01-20 17:35:35.981 My-App[407:707] AppDelegate Merge icloud changes for context
然后我收到此错误
2012-01-20 17:10:48.030 MyApp[407:4c0b] -[PFUbiquityBaseline loadBaselineArchiveWithError:](347): CoreData: Ubiquity: <PFUbiquityBaseline: 0x387e80>
ubiquityRootLocation: (null)
storeName: (null)
modelVersionHash: (null)
baselineArchiveLocation: (null)
Coordinated read of baseline archive file: (null) did not succed: (null)
2012-01-20 17:10:48.030 MyApp[407:4c0b] -[PFUbiquityBaselineRecoveryOperation resolveConflictsForBaseline:withError:](186): CoreData: Ubiquity: Baseline conflict resolution had trouble initializing a conflicting baseline version: <PFUbiquityBaseline: 0x387e80>
ubiquityRootLocation: (null)
storeName: (null)
modelVersionHash: (null)
baselineArchiveLocation: (null)
Error: (null)
2012-01-20 17:10:48.031 MyApp[407:4c0b] -[PFUbiquityBaselineRecoveryOperation main](363): CoreData: Ubiquity: Unable to resolve conflicts for baseline: <PFUbiquityBaseline: 0x1e35a0>
ubiquityRootLocation: <PFUbiquityLocation: 0x1f2570>: /private/var/mobile/Library/Mobile Documents/MYINDIVIDUALID~MyCompany~My_App/invoices
storeName: My-App.store
modelVersionHash: ~4YoLQdnNoouIPvgFerSqmhFoHPk97Clf3AK_rtWHiY=
baselineArchiveLocation: <PFUbiquityLocation: 0x1e1470>: /private/var/mobile/Library/Mobile Documents/MYINDIVIDUALID~MyCompany~My_App/invoices/.baseline/My-App.store/~4YoLQdnNoouIPvgFerSqmhFoHPk97Clf3AK_rtWHiY=/baseline.zip
, the baseline will not be adopted.
如果有人可以让我知道为什么我得到冲突, null)值,我可以在这里解决这个问题。
It would be greatly appreciated if someone could let me know why I am getting a conflict due to the (null) values and where I can look to resolve this.
感谢
我已更改日志应用名称,唯一标识符和公司名称只是为这篇文章。
ps. I have changed the seen in the log app name, unique identifier and company name just for this post.
编辑
同步但是它似乎被延迟。
EDITSyncing is occurring however it seems to be delayed.
推荐答案
@ coder007我向苹果提交了一个问题。他们回复说,我应该提交一个错误报告,他们把我的问题还给我。老实说,我还没有时间提交错误报告,所以如果你可以,那么它可能是路要走。它必须是需要淘汰的iCloud的一个问题。
@coder007 I submitted a question to apple about this. They wrote back and said that I should submit a bug report and they credited my question back to me. To be honest I haven't yet had the time submit the bug report, so if you can then it may be the way to go. It must be a problem with iCloud that needs ironing out
更新
没有这个错误了,我认为苹果正在逐步改善和消除与iCloud的问题。我不认为这是开发人员在我的角度来看的编码方面的问题。
I Don't have this error anymore, I think apple is gradually improving and eliminating issues with iCloud. I don't think it is a problem on the developers end in terms of coding from my perspective.
这篇关于如何解决此iCloud错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!