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?
source share