iCloud Core Data轻量级迁移 - 实体消失

时间:2014-02-23 17:24:36

标签: macos core-data icloud core-data-migration

在我的应用程序中,可以在Mac Appstore上找到我为Mavericks用户集成的iCloud + Core Data。所以我使用了最新的iCloud实现,这个实现并不像旧的那样......我想。

到目前为止一切都很好,随着应用程序的最新更新,我对数据库做了一些小改动,只是向实体添加了一些新属性,并为此创建了一个新的模型版本。

如果您启动更新版本,所有数据都在那里,一切都很好。所有实体仍在那里。这是控制台输出:

storesDidChange: {
    added =     (
        "<NSSQLCore: 0x100410d10> (URL: file:///Users/lars/Library/Containers/de.nulldesign.tyme.osx/Data/Library/Application%20Support/de.nulldesign.tyme/CoreDataUbiquitySupport/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/2B3578B9-3A28-492B-8C62-BFF7FE7076F3/store/TymeCloud.storedata)"
    );
}

-[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](760): CoreData: Ubiquity:  lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7:iCloudStore 
Using local storage: 1

片刻之后,会发生以下导入程序错误:

__76-[_PFUbiquityRecordsImporter batchDownloadTransactionLogsAtLocations:error:]_block_invoke(763): CoreData: Ubiquity:  Librian returned a serious error for starting downloads Error Domain=LibrarianErrorDomain Code=1 "Der Vorgang konnte nicht abgeschlossen werden. (LibrarianErrorDomain-Fehler 1 - Unable to initiate download.)" UserInfo=0x600000271440 {NSDescription=Unable to initiate download., Item Errors={
    "file:///Users/lars/Library/Mobile%20Documents/HR22V4547K~de~nulldesign~tyme/CoreData/iCloudStore/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/16Dv7DuLeM4RoFUBtAVIQokfWJRwGABtWC81frFMCp0=/7B142E0C-3C97-4344-B647-28330E5D7FE3.1.cdt" = "Error Domain=UBErrorDomain Code=0 \"Der Vorgang konnte nicht abgeschlossen werden. (UBErrorDomain-Fehler 0 - Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\")\" 
…
UserInfo=0x600000271600 {NSDescription=Error Domain=UBErrorDomain Code=0 \"The operation couldn\U2019t be completed. (UBErrorDomain error 0.)\"}";
    };
    NSDescription = "Unable to initiate download.";
    NSUnderlyingError = "Error Domain=UBErrorDomain Code=0 \"Der Vorgang konnte nicht abgeschlossen werden. (UBErrorDomain-Fehler 0.)\"";
}

然后商店将改变事件火灾:

storesWillChange: {
    NSPersistentStoreUbiquitousTransitionTypeKey = 4;
    added =     (
        "<NSSQLCore: 0x100211490> (URL: file:///Users/lars/Library/Containers/de.nulldesign.tyme.osx/Data/Library/Application%20Support/de.nulldesign.tyme/CoreDataUbiquitySupport/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/2B3578B9-3A28-492B-8C62-BFF7FE7076F3/store/TymeCloud.storedata)"
    );
    removed =     (
        "<NSSQLCore: 0x100211490> (URL: file:///Users/lars/Library/Containers/de.nulldesign.tyme.osx/Data/Library/Application%20Support/de.nulldesign.tyme/CoreDataUbiquitySupport/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/2B3578B9-3A28-492B-8C62-BFF7FE7076F3/store/TymeCloud.storedata)"
    );
}

还有不少商店会改变&amp; storesDidChange shorty after:

storesDidChange: {
    removed =     (
        "<NSSQLCore: 0x100410d10> (URL: file:///Users/lars/Library/Containers/de.nulldesign.tyme.osx/Data/Library/Application%20Support/de.nulldesign.tyme/CoreDataUbiquitySupport/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/2B3578B9-3A28-492B-8C62-BFF7FE7076F3/store/TymeCloud.storedata)"
    );
}
-[PFUbiquitySetupAssistant tryToReplaceLocalStore:withStoreSideLoadedByImporter:](3250): CoreData: Ubiquity:  <PFUbiquitySetupAssistant: 0x100411670>

Error refreshing peer range cache: (null)

storesDidChange: {
    NSPersistentStoreUbiquitousTransitionTypeKey = 4;
    added =     (
        "<NSSQLCore: 0x100410d10> (URL: file:///Users/lars/Library/Containers/de.nulldesign.tyme.osx/Data/Library/Application%20Support/de.nulldesign.tyme/CoreDataUbiquitySupport/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/2B3578B9-3A28-492B-8C62-BFF7FE7076F3/store/TymeCloud.storedata)"
    );
    removed =     (
        "<NSSQLCore: 0x100410d10> (URL: file:///Users/lars/Library/Containers/de.nulldesign.tyme.osx/Data/Library/Application%20Support/de.nulldesign.tyme/CoreDataUbiquitySupport/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/2B3578B9-3A28-492B-8C62-BFF7FE7076F3/store/TymeCloud.storedata)"
    );
}

storesDidChange: {
    added =     (
        "<NSSQLCore: 0x10020cdb0> (URL: file:///Users/lars/Library/Containers/de.nulldesign.tyme.osx/Data/Library/Application%20Support/de.nulldesign.tyme/CoreDataUbiquitySupport/lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7/iCloudStore/2B3578B9-3A28-492B-8C62-BFF7FE7076F3/store/TymeCloud.storedata)"
    );
}

-[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](760): CoreData: Ubiquity:  lars~053CB071-18DD-5ED8-B2F0-DD0341B523C7:iCloudStore
Using local storage: 1

商店发生变化后,所有实体都已消失,而这些实体并未在此Mac上创建。其他的仍然存在。如果它切换到云存储,则为事件:

PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:使用本地存储:0

只有在将所有其他Mac升级到我的应用程序的最新版本后,丢失的实体才会再次同步。

文档说明:对于与给定NSPersistentStoreUbiquitousContentNameKey关联的每个模型版本,将独立记录和保留对商店的更改。如果模型版本匹配,则使用给定NSPersistentStoreUbiquitousContentNameKey配置的持久性存储仅将数据与另一个设备数据上的存储同步。

如果将使用NSPersistentStoreUbiquitousContentNameKey选项配置的持久性存储迁移到新的模型版本,则还将迁移存储的来自当前设备的更改历史记录,然后将其与使用该新模型版本配置的任何其他设备合并

所以我想知道,如果在iCloud中进行轻量级迁移时这是预期的行为。对于我的用户来说,绝对不是预期的行为,因为他们的项目在他们升级所有设备之前就会消失。

核心数据堆栈的设置非常简单:

- (NSPersistentStoreCoordinator *)persistentStoreCoordinator
{
    if(_persistentStoreCoordinator)
    {
        return _persistentStoreCoordinator;
    }

    _persistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]];

    if(_iCloudConnectionPossible)
    {
        [[NSNotificationCenter defaultCenter] addObserver:self
                                                 selector:@selector(storesWillChange:)
                                                     name:NSPersistentStoreCoordinatorStoresWillChangeNotification
                                                   object:_persistentStoreCoordinator];

        [[NSNotificationCenter defaultCenter] addObserver:self
                                                 selector:@selector(persistentStoreDidImportUbiquitousContentChanges:)
                                                     name:NSPersistentStoreDidImportUbiquitousContentChangesNotification
                                                   object:_persistentStoreCoordinator];
    }

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(storesDidChange:)
                                                 name:NSPersistentStoreCoordinatorStoresDidChangeNotification
                                               object:_persistentStoreCoordinator];

    NSURL *localStoragePath = [self dataStorePathUseiCloud:_useCloudStorage];

    NSError *error = nil;

    [_persistentStoreCoordinator lock];
    NSPersistentStore *persistentStore = [_persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType
                                                                                   configuration:nil
                                                                                             URL:storagePath
                                                                                         options:[self storeOptionsUseiCloud:_useCloudStorage]
                                                                                           error:&error];
    [_persistentStoreCoordinator unlock];
    return _persistentStoreCoordinator;
}

- (NSDictionary *)storeOptionsUseiCloud:(BOOL)useiCloud
{
    NSMutableDictionary *options = [NSMutableDictionary dictionary];
    [options setObject:[NSNumber numberWithBool:YES] forKey:NSMigratePersistentStoresAutomaticallyOption];
    [options setObject:[NSNumber numberWithBool:YES] forKey:NSInferMappingModelAutomaticallyOption];

    if(useiCloud)
    {
        [options setObject:@"iCloudStore" forKey:NSPersistentStoreUbiquitousContentNameKey];
    }

    return options;
}

- (NSManagedObjectContext *)managedObjectContext
{
    if(_managedObjectContext)
    {
        return _managedObjectContext;
    }

    NSPersistentStoreCoordinator *coordinator = [self persistentStoreCoordinator];

    if(coordinator != nil)
    {
        NSManagedObjectContext *moc = [[NSManagedObjectContext alloc] initWithConcurrencyType:NSMainQueueConcurrencyType];
        moc.mergePolicy = NSMergeByPropertyObjectTrumpMergePolicy;

        [moc performBlockAndWait:^
        {
            [moc setPersistentStoreCoordinator:coordinator];
        }];

        _managedObjectContext = moc;
    }

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(contextWillSaveNotification:)
                                                 name:NSManagedObjectContextWillSaveNotification
                                               object:_managedObjectContext];

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(mergeChangesAfterDidSaveNotification:)
                                                 name:NSManagedObjectContextDidSaveNotification
                                               object:_managedObjectContext];

    return _managedObjectContext;
}

storesWill / DidChange处理程序:

- (void)storesWillChange:(NSNotification *)note
{
    NSManagedObjectContext *moc = self.managedObjectContext;
    [moc performBlockAndWait:^
    {
        NSError *error = nil;
        if([moc hasChanges])
        {
            [moc save:&error];
        }

        [moc reset];
    }];
}

- (void)storesDidChange:(NSNotification *)note
{
    // refresh UI, ...
}

这有什么办法吗?这有什么不对?

4 个答案:

答案 0 :(得分:3)

与此同时,我收到了Apple技术支持部门关于此问题的声明:是的,这是预期的行为。如果我期待更好的行为,我应该提交一份“增强”报告。

这意味着:iCloud的CoreData迁移已被破坏。这对于用户来说不是可接受的体验。您应该如何告诉您的客户,他们会在所有设备升级之前暂时丢失数据。如果他们重新安装了一台设备或者它已损坏,那么数据将永远丢失在iCloud中。

答案 1 :(得分:1)

我非常怀疑这是预期的行为。据我了解,您更新的应用应该保留其数据,但在更新之前不会看到旧版本的数据。

原来的错误似乎是图书管理员,我认为这主要是负责从云中来回传输文件。也许有一个错误在某种程度上触发了你的应用撤退到它的后备商店,没有数据。

可能值得再次尝试整个事情,看看是否会出现相同的结果。由于下载失败,它可能只是一次性的,也许它可能在一段时间后恢复。

这就是为什么我从未附带Apple的iCloud +核心数据同步 - 不是因为没有尝试 - 而且现在仍然不相信它。您如何信任一个持久性框架,该框架会以意想不到的方式丢弃数据或更改数据(例如丢失关系),并且没有记录任何内容,并且您没有源代码?

Apple的解决方案将Core Data堆栈与其同步引擎紧密耦合在一起。他们很早就犯了这个错误,现在他们无法退出。他们只是不断深入挖掘自己。后备商店是一个典型的例子。现在他们正在改变你们的商店。

正如Wasabi Sync,TICDS和Ensembles等开源和商业产品中采用的正确解决方案是拥有一个解耦的同步框架。如果同步引擎出现故障,则不应以任何方式关闭Core Data堆栈。它应该肯定不会没有充分理由回到空店。

我认为Ensembles解决它的方式是苹果应该这样做的方式(披露:我开发合奏)。核心数据堆栈的设置就像任何堆栈一样,没有同步的“知识”。同步框架监视保存到持久性存储,并通过后台上下文合并来自其他设备的更改。在任何时候,您都不会被迫拆除堆栈,更改持久存储或迁移数据。您将堆栈视为标准的非同步堆栈。

答案 2 :(得分:1)

轻量级迁移应该可以正常工作,但是可能需要一些时间才能完成。以下是此类迁移的日志。您可以看到Core Data显示的错误,但所有数据都存在,有些是由设备上的应用程序创建的,而其他数据是在其他设备上创建的。请注意,在最终切换到商店之前,在某一点上几乎没有活动30秒(请查看时间10:57:51,下一次活动是在10:58:16)。

2014-02-25 10:57:03.213 CoreDataLibraryApp[678:60b] OSCDStackManager.init  called
2014-02-25 10:57:03.342 CoreDataLibraryApp[678:60b] AppDelegate.application:didFinishLaunchingWithOptions: didFinishLaunchingWithOptions called
2014-02-25 10:57:03.344 CoreDataLibraryApp[678:60b] AppDelegate.application:didFinishLaunchingWithOptions:  starting long job (1 seconds) on main thread
2014-02-25 10:57:04.347 CoreDataLibraryApp[678:60b] AppDelegate.application:didFinishLaunchingWithOptions:  finished long job on main thread
2014-02-25 10:57:04.352 CoreDataLibraryApp[678:60b] AppDelegate.application:didFinishLaunchingWithOptions: checkUserICloudPreferenceAndSetupIfNecessary done.
2014-02-25 10:57:04.354 CoreDataLibraryApp[678:60b] DetailViewManager.setDetailViewController:  called
2014-02-25 10:57:04.442 CoreDataLibraryApp[678:60b] DetailViewManager.setDetailViewController:  detailViewController is <OpeningViewController: 0x16d95360>
2014-02-25 10:57:04.444 CoreDataLibraryApp[678:60b] DetailViewManager.setDetailViewController:  openingViewController is (null)
2014-02-25 10:57:04.446 CoreDataLibraryApp[678:60b] DetailViewManager.splitViewController:shouldHideViewController:inOrientation:  called
2014-02-25 10:57:04.447 CoreDataLibraryApp[678:60b] DetailViewManager.splitViewController:shouldHideViewController:inOrientation:  called
2014-02-25 10:57:04.449 CoreDataLibraryApp[678:60b] DetailViewManager.splitViewController:shouldHideViewController:inOrientation:  called
2014-02-25 10:57:04.450 CoreDataLibraryApp[678:60b] AppDelegate.application:didFinishLaunchingWithOptions: didFinishLaunchingWithOptions done.
2014-02-25 10:57:04.492 CoreDataLibraryApp[678:60b] MenuViewController.viewWillAppear:  called
2014-02-25 10:57:04.493 CoreDataLibraryApp[678:60b] DetailViewManager.showOpeningViewController  called
2014-02-25 10:57:04.495 CoreDataLibraryApp[678:60b] DetailViewManager.showOpeningViewController  openingViewController is <OpeningViewController: 0x16d95360>
2014-02-25 10:57:04.632 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks checkUserICloudPreferenceAndSetupIfNecessary called
2014-02-25 10:57:04.636 CoreDataLibraryApp[678:60b] OSCDStackManager.showBackgroundTaskActive  _job_counter is 1
2014-02-25 10:57:04.643 CoreDataLibraryApp[678:60b] OSCDStackManager.backupCurrentStore  called
2014-02-25 10:57:04.659 CoreDataLibraryApp[678:60b] OSCDStackManager.backupCurrentStore  backup not required
2014-02-25 10:57:04.779 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  ubiquityIdentityToken is <c1fb12f1 f34ca983 5b43956f c11118e3 0a5e1bb8>
2014-02-25 10:57:04.916 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  iCloud container is file:///private/var/mobile/Library/Mobile%20Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/
2014-02-25 10:57:04.917 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery  called.
2014-02-25 10:57:04.918 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery   Creating metadata query
2014-02-25 10:57:04.921 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery   starting iCloud metadata query
2014-02-25 10:57:04.922 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery   query started
2014-02-25 10:57:04.923 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  iCloud is enabled
2014-02-25 10:57:04.925 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  User preference for au.com.ossh.CoreDataLibraryApp.UseICloudStorage is YES
2014-02-25 10:57:04.927 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  User selected iCloud
2014-02-25 10:57:04.928 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  iCloud is active
2014-02-25 10:57:04.929 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  userICloudChoiceSet is set
2014-02-25 10:57:04.930 CoreDataLibraryApp[678:60b] OSCDStackManager.performChecks  userICloudChoice is YES
2014-02-25 10:57:04.931 CoreDataLibraryApp[678:60b] OSCDStackManager.setIsCloudEnabled: setIsCloudEnabled:YES called
2014-02-25 10:57:04.939 CoreDataLibraryApp[678:4303] OSCDStackManager.migrateFilesIfRequired migrateFilesIfRequired called...
2014-02-25 10:57:04.955 CoreDataLibraryApp[678:4303] OSCDStackManager.migrateFilesIfRequired  iCloud has been enabled so migrate local files to iCloud if they exist
2014-02-25 10:57:04.956 CoreDataLibraryApp[678:4303] OSCDStackManager.localStoreExists localStoreExists called
2014-02-25 10:57:04.959 CoreDataLibraryApp[678:4303] OSCDStackManager.localStoreExists   localStoreURL is /var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/persistentStore
2014-02-25 10:57:04.960 CoreDataLibraryApp[678:4303] OSCDStackManager.localStoreExists   localStoreURL does not exist
2014-02-25 10:57:04.962 CoreDataLibraryApp[678:4303] OSCDStackManager.migrateFilesIfRequired  No local store exists
2014-02-25 10:57:04.964 CoreDataLibraryApp[678:4303] OSCDStackManager.openPersistentStore   openPersistentStore called... XXXXXXXXXX XXX XXX XX XX X X
2014-02-25 10:57:04.979 CoreDataLibraryApp[678:4303] OSCDStackManager.openPersistentStore  storeURL is file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/persistentStore_ICLOUD
2014-02-25 10:57:04.980 CoreDataLibraryApp[678:4303] OSCDStackManager.storeExists  called
2014-02-25 10:57:04.988 CoreDataLibraryApp[678:4303] OSCDStackManager.iCloudStoreExists iCloudStoreExists called
2014-02-25 10:57:04.990 CoreDataLibraryApp[678:4303] OSCDStackManager.iCloudStoreExists  Checking if file exists in local ubiquity container
2014-02-25 10:57:05.162 CoreDataLibraryApp[678:3707] OSCDStackManager.listAllICloudDocs   iCloudDirectory is file:///private/var/mobile/Library/Mobile%20Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/
2014-02-25 10:57:05.164 CoreDataLibraryApp[678:3707] OSCDStackManager.listAllICloudDocs    
2014-02-25 10:57:05.166 CoreDataLibraryApp[678:3707] OSCDStackManager.listAllICloudDocs   ICLOUD DOCUMENTS (1)
2014-02-25 10:57:05.167 CoreDataLibraryApp[678:3707] OSCDStackManager.listAllICloudDocs   =====================
2014-02-25 10:57:05.168 CoreDataLibraryApp[678:3707] OSCDStackManager.listAllICloudDocs   persistentStore_ICLOUD
2014-02-25 10:57:05.169 CoreDataLibraryApp[678:3707] OSCDStackManager.listAllICloudDocs    
2014-02-25 10:57:05.386 CoreDataLibraryApp[678:4303] OSCDStackManager.iCloudStoreExists   icloudStoreURL is /private/var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD
2014-02-25 10:57:05.531 CoreDataLibraryApp[678:4303] OSCDStackManager.iCloudStoreExists   icloudStoreURL exists
2014-02-25 10:57:05.533 CoreDataLibraryApp[678:4303] OSCDStackManager.iCloudStoreExists  Now checking if file exists in iCloud (not downloaded yet perhaps)
2014-02-25 10:57:05.534 CoreDataLibraryApp[678:4303] OSCDStackManager.doesICloudFileExist  called
2014-02-25 10:57:05.537 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery  called.
2014-02-25 10:57:05.539 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery   Creating metadata query
2014-02-25 10:57:05.540 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery   starting iCloud metadata query
2014-02-25 10:57:05.541 CoreDataLibraryApp[678:60b] OSCDStackManager.createFileQuery   query started
2014-02-25 10:57:05.543 CoreDataLibraryApp[678:4303] OSCDStackManager.doesICloudFileExist  has not checked iCloud yet, waiting
2014-02-25 10:57:05.974 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:57:05.976 CoreDataLibraryApp[678:1803] OSCDStackManager.processFiles  called.
2014-02-25 10:57:05.977 CoreDataLibraryApp[678:1803] OSCDStackManager.processFiles   querystopped
2014-02-25 10:57:06.040 CoreDataLibraryApp[678:1803] OSCDStackManager.processFiles  all files CURRENT
2014-02-25 10:57:06.041 CoreDataLibraryApp[678:1803] OSCDStackManager.processFiles  iCloud file exists
2014-02-25 10:57:06.545 CoreDataLibraryApp[678:4303] OSCDStackManager.doesICloudFileExist  has checked iCloud, file exists
2014-02-25 10:57:06.547 CoreDataLibraryApp[678:4303] OSCDStackManager.iCloudStoreExists   icloud store exists
2014-02-25 10:57:06.549 CoreDataLibraryApp[678:4303] OSCDStackManager.storeExists   iCloudStoreExists returned YES
2014-02-25 10:57:06.551 CoreDataLibraryApp[678:4303] OSCDStackManager.openPersistentStore  store Options are {
    NSInferMappingModelAutomaticallyOption = 1;
    NSMigratePersistentStoresAutomaticallyOption = 1;
    NSPersistentStoreUbiquitousContentNameKey = "persistentStore_ICLOUD";
    NSSQLitePragmasOption =     {
        "journal_mode" = DELETE;
    };
}
2014-02-25 10:57:06.552 CoreDataLibraryApp[678:4303] OSCDStackManager.openPersistentStore   addPersistentStoreWithType about to be called... 
2014-02-25 10:57:06.554 CoreDataLibraryApp[678:4303] OSCDStackManager.snooze:   sleeping for 1 seconds... 
2014-02-25 10:57:07.556 CoreDataLibraryApp[678:4303] OSCDStackManager.snooze:   done sleeping.
2014-02-25 10:57:08.686 CoreDataLibraryApp[678:4303] OSCDStackManager.storesDidChange: storesDidChange called - >>>>>>>>>>>>>>>>>>>>>>>>>>>>
2014-02-25 10:57:08.687 CoreDataLibraryApp[678:4303] OSCDStackManager.storesDidChange:  userInfo is {
    added =     (
        "<NSSQLCore: 0x16d40640> (URL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD)"
    );
}
2014-02-25 10:57:08.689 CoreDataLibraryApp[678:4303] OSCDStackManager.storesDidChange:  transition type is (null)
2014-02-25 10:57:08.690 CoreDataLibraryApp[678:60b] OSCDStackManager.createTimer  called
2014-02-25 10:57:08.691 CoreDataLibraryApp[678:60b] OSCDStackManager.showBackgroundTaskActive  _job_counter is 2
2014-02-25 10:57:08.720 CoreDataLibraryApp[678:4303] -[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](771): CoreData: Ubiquity:  mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB:persistentStore_ICLOUD
Using local storage: 1
2014-02-25 10:57:08.729 CoreDataLibraryApp[678:4303] OSCDStackManager.openPersistentStore   addPersistentStoreWithType completed successfully... 
2014-02-25 10:57:08.732 CoreDataLibraryApp[678:4303] OSCDStackManager.loadSeedDataIfRequired  called
2014-02-25 10:57:08.733 CoreDataLibraryApp[678:4303] OSCDStackManager.loadSeedDataIfRequired  Do not load seed data
2014-02-25 10:57:08.735 CoreDataLibraryApp[678:4303] OSCDStackManager.createTimer  called
2014-02-25 10:57:08.738 CoreDataLibraryApp[678:4303] OSCDStackManager.showBackgroundTaskInactive  _job_counter is 1
2014-02-25 10:57:09.739 CoreDataLibraryApp[678:60b] OSCDStackManager.notifyOfCoreDataUpdates notifyOfCoreDataUpdates called
2014-02-25 10:57:09.742 CoreDataLibraryApp[678:60b] OSCDStackManager.showBackgroundTaskInactive  _job_counter is 0
2014-02-25 10:57:17.665 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:57:17.667 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles  called.
2014-02-25 10:57:17.669 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles   querystopped
2014-02-25 10:57:17.681 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles  keep running query because not all files CURRENT
2014-02-25 10:57:17.682 CoreDataLibraryApp[678:4303] OSCDStackManager.showBackgroundTaskActive  _job_counter is 1
2014-02-25 10:57:22.038 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:57:22.040 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles  called.
2014-02-25 10:57:22.042 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles   querystopped
2014-02-25 10:57:22.053 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles  keep running query because not all files CURRENT
2014-02-25 10:57:23.916 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:57:23.918 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles  called.
2014-02-25 10:57:23.920 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles   querystopped
2014-02-25 10:57:23.931 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles  all files CURRENT
2014-02-25 10:57:23.932 CoreDataLibraryApp[678:4303] OSCDStackManager.showBackgroundTaskInactive  _job_counter is 0
2014-02-25 10:57:23.933 CoreDataLibraryApp[678:4303] OSCDStackManager.processFiles  iCloud file exists
2014-02-25 10:57:43.975 CoreDataLibraryApp[678:3707] OSCDStackManager.storesWillChange: storesWillChange called - >>>>>>>>>>>>>>>>>>>>>>>>>>>>
2014-02-25 10:57:43.976 CoreDataLibraryApp[678:3707] OSCDStackManager.storesWillChange:  transition type is 4
2014-02-25 10:57:43.978 CoreDataLibraryApp[678:3707] OSCDStackManager.storesWillChange:  transition type is NSPersistentStoreUbiquitousTransitionTypeInitialImportCompleted
2014-02-25 10:57:43.980 CoreDataLibraryApp[678:3707] OSCDStackManager.storesWillChange:  added stores are (
    "<NSSQLCore: 0x16d40640> (URL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD)"
)
2014-02-25 10:57:43.982 CoreDataLibraryApp[678:3707] OSCDStackManager.storesWillChange:  removed stores are (
    "<NSSQLCore: 0x16d40640> (URL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD)"
)
2014-02-25 10:57:43.983 CoreDataLibraryApp[678:3707] OSCDStackManager.storesWillChange:  changed stores are (null)
2014-02-25 10:57:43.984 CoreDataLibraryApp[678:60b] OSCDStackManager.persistentStoreCoordinator persistentStoreCoordinator called
2014-02-25 10:57:44.055 CoreDataLibraryApp[678:3707] OSCDStackManager.storesDidChange: storesDidChange called - >>>>>>>>>>>>>>>>>>>>>>>>>>>>
2014-02-25 10:57:44.056 CoreDataLibraryApp[678:3707] OSCDStackManager.storesDidChange:  userInfo is {
    NSPersistentStoreUbiquitousTransitionTypeKey = 4;
    added =     (
        "<NSSQLCore: 0x16d40640> (URL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD)"
    );
    removed =     (
        "<NSSQLCore: 0x16d40640> (URL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD)"
    );
}
2014-02-25 10:57:44.058 CoreDataLibraryApp[678:3707] OSCDStackManager.storesDidChange:  transition type is 4
2014-02-25 10:57:44.060 CoreDataLibraryApp[678:3707] OSCDStackManager.storesDidChange:  transition type is NSPersistentStoreUbiquitousTransitionTypeInitialImportCompleted
2014-02-25 10:57:44.061 CoreDataLibraryApp[678:60b] OSCDStackManager.createTimer  called
2014-02-25 10:57:44.063 CoreDataLibraryApp[678:60b] OSCDStackManager.showBackgroundTaskActive  _job_counter is 1
2014-02-25 10:57:44.376 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:57:44.378 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles  called.
2014-02-25 10:57:44.380 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles   querystopped
2014-02-25 10:57:44.394 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles  keep running query because not all files CURRENT
2014-02-25 10:57:44.395 CoreDataLibraryApp[678:4b0f] OSCDStackManager.showBackgroundTaskActive  _job_counter is 2
2014-02-25 10:57:45.064 CoreDataLibraryApp[678:60b] OSCDStackManager.notifyOfCoreDataUpdates notifyOfCoreDataUpdates called
2014-02-25 10:57:45.067 CoreDataLibraryApp[678:60b] OSCDStackManager.showBackgroundTaskInactive  _job_counter is 1
2014-02-25 10:57:47.641 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:57:47.644 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles  called.
2014-02-25 10:57:47.645 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles   querystopped
2014-02-25 10:57:47.657 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles  keep running query because not all files CURRENT
2014-02-25 10:57:51.002 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:57:51.004 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles  called.
2014-02-25 10:57:51.005 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles   querystopped
2014-02-25 10:57:51.020 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles  all files CURRENT
2014-02-25 10:57:51.022 CoreDataLibraryApp[678:4b0f] OSCDStackManager.showBackgroundTaskInactive  _job_counter is 0
2014-02-25 10:57:51.023 CoreDataLibraryApp[678:4b0f] OSCDStackManager.processFiles  iCloud file exists
2014-02-25 10:58:16.108 CoreDataLibraryApp[678:3707] -[PFUbiquitySafeSaveFile waitForFileToUpload:](299): CoreData: Ubiquity:  <PFUbiquityBaseline: 0x16e1edc0>(0)
    permanentLocation: <PFUbiquityLocation: 0x16e1eea0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/baseline.zip
    safeLocation: <PFUbiquityLocation: 0x16e1eed0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB
    currentLocation: <PFUbiquityLocation: 0x16e1eed0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB

    storeName: persistentStore_ICLOUD
    modelVersionHash: cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=
    baselineArchiveLocation: <PFUbiquityLocation: 0x16e1eea0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/baseline.zip

Safe save failed for file, error: Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260 - Request for item properties on non-existent item.)" UserInfo=0x16d56b60 {NSDescription=Request for item properties on non-existent item.}
2014-02-25 10:58:16.116 CoreDataLibraryApp[678:3707] -[PFUbiquitySetupAssistant finishSetupForStore:error:](1012): CoreData: Ubiquity:  <PFUbiquitySetupAssistant: 0x16d45940>
    options: {
    NSInferMappingModelAutomaticallyOption = 1;
    NSMigratePersistentStoresAutomaticallyOption = 1;
    NSPersistentStoreUbiquitousContentNameKey = "persistentStore_ICLOUD";
    NSSQLitePragmasOption =     {
        "journal_mode" = DELETE;
    };
}
    psc: <NSPersistentStoreCoordinator: 0x16ea2570>
    store: <NSSQLCore: 0x16d40640> (URL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD)
    storeURL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD
    actualStoreURL: file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/store/persistentStore_ICLOUD
    storeMetadata: {
    NSPersistenceFrameworkVersion = 479;
    NSStoreModelVersionHashes =     {
        Company = <e4d136d3 2e3c702a d137c31b d9b4fafa 4450aeba 09b59e09 7b715b06 ef379020>;
        Contact = <7f35a0c9 6c3f490c 98bb4276 20b39a2b 86d4384f 301d7228 8be03a8d 30d6b0ec>;
        Deliverable = <27faefa4 8ca257fc 9ad0ebe5 18ec883b 862c87cc 5dce86c8 8ef4f514 2ab8407e>;
        Person = <d6cf6811 68922c51 9a93aa08 7fc172fd 86c710e5 b79ed8f2 d9b941f3 d9eadc1e>;
        Program = <15879af6 ccb62dfb fff56d7e bfe6d087 9a9422d5 b839c887 908f84c7 d7bccaa1>;
        Project = <0dd03984 c7f0e76c a1a0b703 34c5b7bb e5a71ccc a81d2273 a3ee6462 cd4c15ed>;
        ProjectType = <4f1f3258 e877298f 88055237 fb9832c8 2c40bb4d 0c604562 8d47b770 7bda9f09>;
    };

    NSStoreModelVersionHashesVersion = 3;
    NSStoreModelVersionIdentifiers =     (
        ""
    );
    NSStoreType = SQLite;
    NSStoreUUID = "FF808963-A275-4631-83D3-3BC991147555";
    PFUbiquitySetupContainerIdentifierKey = "D7446340-186B-4EDB-A5C9-43006892D532";
    PFUbiquitySetupOriginalStoreURLAbsoluteStringKey = "file:///var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/persistentStore_ICLOUD";
    PFUbiquitySetupPreviousModelVersionHashKey = "xuH12bxbPI5FO_uboaBoP4EUS~raVWx0ga0Ia6jerHg=";
    "_NSAutoVacuumLevel" = 2;
    "com.apple.coredata.ubiquity.baseline.timestamp" = 1393285820;
    "com.apple.coredata.ubiquity.ubiquitized" = 1;
}
    storeKV: <PFUbiquityKnowledgeVector: 0x16f8f100> (duncangroenewald~AABC628E-9D5E-58F7-9B8D-0BC724C6D0C8:101:mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB:1)
    storeFileExists: 1
    storeFileIsReadOnly: 0
    ubiquityEnabled: 1
    ubiquityIdentityToken: <c1fb12f1 f34ca983 5b43956f c11118e3 0a5e1bb8>
    ubiquityRootURL: file:///private/var/mobile/Library/Mobile%20Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/
    ubiquityRootSubpath: (null)
    ubiquityName: persistentStore_ICLOUD
    ubiquityContainerIdentifier: (null)
    localPeerID: mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB
    modelVersionHash: cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=
    ubiquityRootLocation: <PFUbiquityLocation: 0x16eb0db0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD
    localRootLocation: <PFUbiquityLocation: 0x16d4f3e0>: /var/mobile/Applications/2B6EA87A-05F1-4E38-A776-1CF74379B65A/Documents/CoreDataUbiquitySupport/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532/container
    metaKV: <PFUbiquityKnowledgeVector: 0x16e898e0> (duncangroenewald~AABC628E-9D5E-58F7-9B8D-0BC724C6D0C8:101)
    baseline: <PFUbiquityBaseline: 0x16e1edc0>(0)
    permanentLocation: <PFUbiquityLocation: 0x16e1eea0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/baseline.zip
    safeLocation: <PFUbiquityLocation: 0x16e1eed0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB
    currentLocation: <PFUbiquityLocation: 0x16e1eed0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB

    storeName: persistentStore_ICLOUD
    modelVersionHash: cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=
    baselineArchiveLocation: <PFUbiquityLocation: 0x16e1eea0>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.baseline/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/baseline.zip

    baselineFileExists: 1
    hasUploadingBaseline: 1
    monitorBaslineUploadAsync: 0
    didBaselineCopy: 1
    baselineKV: <PFUbiquityKnowledgeVector: 0x16f1dde0> (duncangroenewald~AABC628E-9D5E-58F7-9B8D-0BC724C6D0C8:101:mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB:1)
    hasStoreMetadataFile: 1
    hasStoreMetadataEntry: 1
    hasContainerUUID: 1
    hasContainerUUIDInStore: 1
    needsMetadataRecovery: 0
    localPeerReceipt: <PFUbiquityPeerReceipt: 0x16f19b70>(0)
    permanentLocation: <PFUbiquityLocation: 0x16f17d30>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/receipt.0.cdt
    safeLocation: <PFUbiquityLocation: 0x16d57780>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB.0.cdt
    currentLocation: <PFUbiquityLocation: 0x16f17d30>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/cwloRsUoKpzgKGCNoi2z46q21XiaQQ4g8n2tM6pS~Po=/receipt.0.cdt

    kv: <PFUbiquityKnowledgeVector: 0x16dafa90> (duncangroenewald~AABC628E-9D5E-58F7-9B8D-0BC724C6D0C8:101:mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB:1)

    receiptKV: <PFUbiquityKnowledgeVector: 0x16d199a0> ()
    containerIdentifier: <PFUbiquityContainerIdentifier: 0x16da1a20>: <PFUbiquityLocation: 0x16f64080>: /var/mobile/Library/Mobile Documents/HHWT75NS6T~au~com~ossh~CoreDataLibraryApp/CoreData/persistentStore_ICLOUD/.cdmetadata/metadata.nosync/mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB/persistentStore_ICLOUD/D7446340-186B-4EDB-A5C9-43006892D532.cid
    preStoreContainerUUID: D7446340-186B-4EDB-A5C9-43006892D532
    usedExistingUUIDMapping: 1
    hasLocalTransactionLogs: 1
    votedOffIsland: 0
    reapUbiquitousLogs: 0
    respondToBaselineRoll: 0
    hasMigrationOptions: 1
    didMigrateBaseline: 1
    storeWasMigrated: 0
    replayLogsSynchronously: 1
    useLocalAccount: 0
    abortSetup: 0
    gotExportNotification: 0
Setup failed after waiting for the baseline file to upload.
Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260 - Request for item properties on non-existent item.)" UserInfo=0x16d56b60 {NSDescription=Request for item properties on non-existent item.}
2014-02-25 10:58:16.129 CoreDataLibraryApp[678:3707] -[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](771): CoreData: Ubiquity:  mobile~A3BF465A-15C7-46F2-8C68-AC8F49FD15AB:persistentStore_ICLOUD
Using local storage: 0
2014-02-25 10:58:16.167 CoreDataLibraryApp[678:3707] -[PFUbiquitySetupAssistant finishSetupWithRetry:](822): CoreData: Ubiquity:  <PFUbiquitySetupAssistant: 0x16d45940>: Retrying after delay: 60
Error Domain=NSCocoaErrorDomain Code=260 "The operation couldn’t be completed. (Cocoa error 260 - Request for item properties on non-existent item.)" UserInfo=0x16d56b60 {NSDescription=Request for item properties on non-existent item.}
2014-02-25 10:58:24.819 CoreDataLibraryApp[678:60b] OSCDStackManager.fileListReceived  called.
2014-02-25 10:58:24.820 CoreDataLibraryApp[678:5c1f] OSCDStackManager.processFiles  called.
2014-02-25 10:58:24.821 CoreDataLibraryApp[678:5c1f] OSCDStackManager.processFiles   querystopped
2014-02-25 10:58:24.836 CoreDataLibraryApp[678:5c1f] OSCDStackManager.processFiles  all files CURRENT
2014-02-25 10:58:24.838 CoreDataLibraryApp[678:5c1f] OSCDStackManager.processFiles  iCloud file exists

答案 3 :(得分:-1)

是否破坏也不是这种意外行为。 Apple文档声明这是预期的结果,并给出了解释。

  

但是,App Store版本的对等文件夹名称通常不同于非App Store版本(例如使用Xcode,Ad Hoc版本或TestFlight版本安装的测试版本):对于App商店版本,文件夹名称由App Store提供的数据确定,而对于非App Store版本,则根据应用程序的包ID计算。

这意味着它可以在您的开发和生产环境中工作,只要您在测试时不要混淆它们。

参考:Apple Documentation