Hey All,
I'm starting the journey to incorporating Core-Data-iCloud syncing into my App for the first itme. I'm following the guide located here:
Sure enough, on the first "checkpoint" I'm already having issues. My app reports:
-[PFUbiquitySetupAssistant finishSetupWithRetry:](830): CoreData: Ubiquity: <PFUbiquitySetupAssistant: 0x1257a62f0>: Retrying after delay: 1
Error Domain=NSCocoaErrorDomain Code=134080 "An error occurred while opening the persistent store." UserInfo={Reason=Didn't get a container URL back from URLForUbiquityContainerIdentifier:, giving up now. Please ensure the application is signed with the proper entitlements to read from the container., NSPersistentStoreUbiquitousContainerIdentifierKey=null}
I checked the entitlements and they look okay... They appear correctly setup by Xcode.
I have:
com.apple.developer.icloud-container-identifiers = iCloud.$(CFBundleIdentifier)
com.apple.developer.icloud-services = CloudKit
iCloud Key-Value Store = $(TeamIdentifierPrefix)$(CFBundleIdentifier) [This one is for after I get the core-data stuff workin]
I've verified that my AppID has "iCloud" activated on it.
I don't really know what else to check... The guide doesnt elaborate on any troubleshooting at this point. You guys have any clues?
Oh yea, PSC code:
NSError *error = nil;
_defaultPersistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self defaultManagedObjectModel]];
NSDictionary* storeOptions = @{NSMigratePersistentStoresAutomaticallyOption: [NSNumber numberWithBool:YES],
NSInferMappingModelAutomaticallyOption: [NSNumber numberWithBool:YES],
NSPersistentStoreUbiquitousContentNameKey: @"CENSOREDCloudStore"};
if (![ _defaultPersistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType
configuration:nil
URL:self.storeURL
options:storeOptions
error:&error]) {