Master data with iCloud never switches from `Using local storage: 1`

I have iCloud installed with Core Data, but it never switches to using the ubiquitous storage from local storage. Looking at the iCloud panel in Xcode, I see that iCloud status is Idle, and I even see that directories are created inside my ubiquitous container ( NSPersistentStoreUbiquitousContentNameKey ), but there is never activity on the chart (uploads or downloads).

I only get the following in the console:

 -[PFUbiquitySwitchboardEntryMetadata setUseLocalStorage:](760): CoreData: Ubiquity: me~3C82877D-69EE-5968-A69C-37FD71227462:MyApp Using local storage: 1 

I expect it to eventually turn upside down so as not to use local storage, but this never happens.

Setting the ubiquity log level to 3, I can see the following logs in my console:

 __60-[PFUbiquitySetupAssistant canReadFromUbiquityRootLocation:]_block_invoke(1289): CoreData: Ubiquity: Coordinated read finished for ubiquity root url: file:///Users/me/Library/Mobile%20Documents/VK94X636H2~com~company~MyApp/ -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:](1081): CoreData: Ubiquity: Post store setup succeded. <NSSQLCore: 0x10040bc90> (URL: file:///Users/me/Library/Containers/com.company.MyApp/Data/Library/Application%20Support/CoreDataUbiquitySupport/me~3C82877D-69EE-5968-A69C-37FD71227462/MyApp/33D95E86-2331-4ED6-9ECF-FC88E130A38F/store/MyApp.storedata) -[PFUbiquitySetupAssistant canReadFromUbiquityRootLocation:](1298): CoreData: Ubiquity: Read finished: 1 -[PFUbiquitySetupAssistant canReadFromUbiquityRootLocation:](1301): CoreData: Ubiquity: Read finished: 1 / 1 / file:///Users/me/Library/Mobile%20Documents/VK94X636H2~com~company~MyApp/CoreData/MyApp/ -[PFUbiquitySetupAssistant canReadFromUbiquityRootLocation:](1305): CoreData: Ubiquity: Blocking for initial sync: <PFUbiquitySetupAssistant: 0x10021edc0> 

It seems like he's stuck on Blocking for initial sync , but I'm not sure why.

Does anyone know what could be wrong?

+6
source share
2 answers

Well, it turned out that just restarting my Mac fixed this problem.

A bit about this iCloud reputation, but at least it works! It seems that even after iCloud enhancements in iOS 7 and OS X 10.9, some strange problems still occur.

+6
source

I have the same problem as on iOS 7.0.6.

Another weird, possibly related thing: on the iOS device, when I go to: “Settings> iCloud> Documents and Data”, my application seems to be listed there, but the name is “empty” (so the line is just an icon and a switch )

Restarting the device does not help, does not delete / add the iCloud account. And I cannot find another mention of Blocking for initial sync other than this page.

0
source

All Articles