3

我正在设置我的 iOS 应用程序以使用 Magical Record 和 iCloud。Magical Record 似乎正在启动并连续初始化 iCloud 容器。然后它在尝试保存“baseline.zip”时报告错误任何关于出现问题的建议将不胜感激。下面是堆栈跟踪。

非常感谢,乔尔

2012-11-22 16:51:07:918 ThatsIt[1803:907] -> Created <NSManagedObjectContext (0x21055f20): *** UNNAMED ***> on *** MAIN THREAD ***
2012-11-22 16:51:07:919 ThatsIt[1803:907] Set Root Saving Context:    <NSManagedObjectContext: 0x21055f20>
2012-11-22 16:51:07:919 ThatsIt[1803:907] Created Main Queue Context: <NSManagedObjectContext: 0x21056a30>
2012-11-22 16:51:07:920 ThatsIt[1803:907] Set Default Context: <NSManagedObjectContext: 0x21056a30>
2012-11-22 16:51:07:943 ThatsIt[1803:907] DDlog is running okay
2012-11-22 16:51:09.764 ThatsIt[1803:3a0b] -[_PFUbiquityRecordsImporter rollResponseOperation:encounteredAnError:whileTryingToAdoptBaseline:](1509): CoreData: Ubiquity:  <PFUbiquityBaselineRollResponseOperation: 0x2105eb20> localPeerID:  mobile.EF865F29-F719-5648-8C0F-0F9CE63C520F, storeName: com.mirthfullife.ThatsIt,  modelVersionHash: 47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=
ubiquityRootLocation: <PFUbiquityLocation: 0x21063cc0>:   /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt

Encountered an error while trying to respond to the roll of baseline: <PFUbiquityBaseline: 0x1fd956a0>(0)
permanentLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile  Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip
safeLocation: <PFUbiquityLocation: 0x1fd94110>: /private/var/mobile/Library/Mobile  Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj 8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/mobile.EF865F29-F719-5648-8C0F-0F9CE63C520F
currentLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip

storeName: com.mirthfullife.ThatsIt
modelVersionHash: 47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=
baselineArchiveLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile  Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip

Error: Error Domain=NSCocoaErrorDomain Code=134310 "The operation couldn’t be completed. (Cocoa error 134310.)" UserInfo=0x1fd8bbe0 {baseline=<PFUbiquityBaseline: 0x1fd956a0>(0)
permanentLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip
safeLocation: <PFUbiquityLocation: 0x1fd94110>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/mobile.EF865F29-F719-5648-8C0F-0F9CE63C520F
currentLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip

storeName: com.mirthfullife.ThatsIt
modelVersionHash: 47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=
baselineArchiveLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile  Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj 8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip, localStoreKV=<PFUbiquityKnowledgeVector: 0x1fd7d070> ()}
userInfo: {
baseline = "<PFUbiquityBaseline: 0x1fd956a0>(0)\n\tpermanentLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip\n\tsafeLocation: <PFUbiquityLocation: 0x1fd94110>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/mobile.EF865F29-F719-5648-8C0F-0F9CE63C520F\n\tcurrentLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip\n\n\tstoreName: com.mirthfullife.ThatsIt\n\tmodelVersionHash: 47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=\n\tbaselineArchiveLocation: <PFUbiquityLocation: 0x1fd91ab0>: /private/var/mobile/Library/Mobile Documents/F8MBU8E2WX~com~mirthfullife~ThatsIt/.baseline/com.mirthfullife.ThatsIt/47DEQpj8HBSa~_TImW~5JCeuQeRkm5NMpJWZG3hSuFU=/baseline.zip\n";
localStoreKV = "<PFUbiquityKnowledgeVector: 0x1fd7d070> ()";

}

4

2 回答 2

1

我这里也一样。在网上搜索后,我只找到了清理构建的提示,从设备中删除应用程序并重新构建它。然而,这并没有解决我的问题,但该应用程序按预期工作。

一旦我第一次创建一些数据,错误就消失了,所以它可能“只是”是一个初始错误,虽然感觉很沮丧..

于 2012-11-25T23:39:43.437 回答
1

这基本上意味着 iCloud 期望在您的 iCloud 文件夹中看到一些数据,您有一个 iCloud 文件夹(您刚刚创建),但其中没有任何(数据)......

Apple 似乎希望您在使用之前立即为商店播种。

要临时修复,请将 iCloud 期望从您的应用程序中获得的一些数据放入其中。(换句话说,使用您的应用程序)

它看起来像永久修复它,(对于您的用户在启动时)在它尝试读取之前用一些丢弃的变量为商店播种。

(换句话说,如果您删除了 iCloud 存储/临时存储/后备存储中的所有文件(包括实际文件夹),当您第一次运行应用程序并且不为存储添加种子时,此错误应该会再次出现)

无论如何,这应该为某人提供一些实验要做:o)

至少这是我认为正在发生的事情。如果我发现一些不同的东西,我会添加到答案中。

于 2013-02-25T17:59:48.350 回答