我正在设置我的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> ()";
}
答案 0 :(得分:1)
我在这里也一样。搜索完网页后,我只找到clean the build, delete the application from the device and rebuild it again的提示。然而,这并没有解决我的问题,但应用程序按预期工作。
一旦我第一次创建了一些数据,错误就消失了,所以它可能“只”是一个初始错误,虽然感觉非常令人沮丧。
答案 1 :(得分:1)
这基本上意味着iCloud希望在您的iCloud文件夹中看到一些数据,您有一个iCloud文件夹(您刚刚创建的),但其中没有任何内容(数据)......
似乎Apple希望您在使用它之前立即为该商店播种。
要暂时修复,请在iCloud中为您的应用添加一些数据。 (换句话说,使用你的应用程序)
它似乎永久地修复它(对于启动时的用户)在尝试读取之前使用一些丢弃变量为存储设定种子。
(换句话说,如果你摆脱iCloud商店/临时商店/后备商店中的所有文件(包括实际文件夹),当你第一次运行应用程序并且不为商店播种时,应该会出现此错误)
无论如何应该为某人提供一些实验:o)
至少这是我认为正在发生的事情。如果我发现不同的东西,我会添加答案。