IOS CoreData + iCloud error messages after uninstalling and redeploying the application

The application was added to iCloud from the very beginning, so I have the opportunity to fill it with data and see how synchronization occurs on other devices. However, I am having problems after uninstalling and redeploying the application on only one device.

In particular, at startup it takes a lot at this moment:

NSLog(@"add coordinator"); if (![__persistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeURL options:options error:&error]) { NSLog(@"Unresolved error %@, %@", error, [error userInfo]); abort(); } NSLog(@"finish"); 

I see "add coordinator" in the console, then it seems to be in a pause forever. Instead, by activating the master data logging, I see that it makes a lot of choices and updates.

Then an endless list of log error messages is displayed for each transaction number:

 CoreData: Ubiquity: Error importing transaction log: <PFUbiquityTransactionLog: 0x1929e350> transactionLogLocation: <PFUbiquityLocation: 0x17bf1c40>: /private/var/mobile/Library/Mobile Documents/6G8M57K6MU~myapp/mobile.63606F7B-D6A9-5937-9160-126AC1315EBF/myAppCloud/3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4=/035A5A1C-F893-4B67-A784-866A4DE1B3F1.1.cdt transactionNumber: 1 , exception: -[__NSCFDictionary setObject:forKey:]: attempt to insert nil key -[_PFUbiquityRecordsImporter operation:failedWithError:](839): CoreData: Ubiquity: Import operation encountered an error: Error Domain=NSCocoaErrorDomain Code=134060 "The operation couldn’t be completed. (Cocoa error 134060.)" UserInfo=0x194c9f40 {exception=-[__NSCFDictionary setObject:forKey:]: attempt to insert nil key} while trying to import the log file at the URL: <PFUbiquityTransactionLog: 0x1929e350> transactionLogLocation: <PFUbiquityLocation: 0x17bf1c40>: /private/var/mobile/Library/Mobile Documents/6G8M57K6MU~myapp/mobile.63606F7B-D6A9-5937-9160-126AC1315EBF/myAppCloud/3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4=/035A5A1C-F893-4B67-A784-866A4DE1B3F1.1.cdt transactionNumber: 1 / private / var / mobile / Library / Mobile Documents / 6G8M57K6MU ~ myapp / mobile.63606F7B-D6A9-5937-9160-126AC1315EBF / myAppCloud / 3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4 = / 035A5A1C-F893-4B67-A784-866A4DE1B3F1 CoreData: Ubiquity: Error importing transaction log: <PFUbiquityTransactionLog: 0x1929e350> transactionLogLocation: <PFUbiquityLocation: 0x17bf1c40>: /private/var/mobile/Library/Mobile Documents/6G8M57K6MU~myapp/mobile.63606F7B-D6A9-5937-9160-126AC1315EBF/myAppCloud/3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4=/035A5A1C-F893-4B67-A784-866A4DE1B3F1.1.cdt transactionNumber: 1 , exception: -[__NSCFDictionary setObject:forKey:]: attempt to insert nil key -[_PFUbiquityRecordsImporter operation:failedWithError:](839): CoreData: Ubiquity: Import operation encountered an error: Error Domain=NSCocoaErrorDomain Code=134060 "The operation couldn’t be completed. (Cocoa error 134060.)" UserInfo=0x194c9f40 {exception=-[__NSCFDictionary setObject:forKey:]: attempt to insert nil key} while trying to import the log file at the URL: <PFUbiquityTransactionLog: 0x1929e350> transactionLogLocation: <PFUbiquityLocation: 0x17bf1c40>: /private/var/mobile/Library/Mobile Documents/6G8M57K6MU~myapp/mobile.63606F7B-D6A9-5937-9160-126AC1315EBF/myAppCloud/3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4=/035A5A1C-F893-4B67-A784-866A4DE1B3F1.1.cdt transactionNumber: 1 / private / var / mobile / Library / Mobile Documents / 6G8M57K6MU ~ myapp / mobile.63606F7B-D6A9-5937-9160-126AC1315EBF / myAppCloud / 3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4 = / 035A5A1C-F893-4B67-A784-866A4DE1B3F1 CoreData: Ubiquity: Error importing transaction log: <PFUbiquityTransactionLog: 0x1929e350> transactionLogLocation: <PFUbiquityLocation: 0x17bf1c40>: /private/var/mobile/Library/Mobile Documents/6G8M57K6MU~myapp/mobile.63606F7B-D6A9-5937-9160-126AC1315EBF/myAppCloud/3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4=/035A5A1C-F893-4B67-A784-866A4DE1B3F1.1.cdt transactionNumber: 1 , exception: -[__NSCFDictionary setObject:forKey:]: attempt to insert nil key -[_PFUbiquityRecordsImporter operation:failedWithError:](839): CoreData: Ubiquity: Import operation encountered an error: Error Domain=NSCocoaErrorDomain Code=134060 "The operation couldn’t be completed. (Cocoa error 134060.)" UserInfo=0x194c9f40 {exception=-[__NSCFDictionary setObject:forKey:]: attempt to insert nil key} while trying to import the log file at the URL: <PFUbiquityTransactionLog: 0x1929e350> transactionLogLocation: <PFUbiquityLocation: 0x17bf1c40>: /private/var/mobile/Library/Mobile Documents/6G8M57K6MU~myapp/mobile.63606F7B-D6A9-5937-9160-126AC1315EBF/myAppCloud/3IEWV8FXM6GJ58H5PkyqFsyuoUZ2qIOuJOfon1QIYC4=/035A5A1C-F893-4B67-A784-866A4DE1B3F1.1.cdt transactionNumber: 1 

Then, as I said, the “finish” is printed, and the application has no data.

+3
objective-c core-data icloud
Jun 14 '12 at 23:05
source share
1 answer

An Apple engineer answered me on a post I made on the Apple Dev forum stating that this is a known bug fixed on the upcoming iOS 6.

So, there is no solution but to scratch all the data on the devices and start over. At this point, I suppose I will ship with CoreData without iCloud.

+1
Jun 20 '12 at 19:29
source share



All Articles