I'm using the NSUbiquitousKeyValueStore to store data to iCloud from an iOS app A but I can't get any object on my iOS app B. However I can get the object on my iOS app A. Both apps have the same team ID and both have the same Ubiquity Container Identifiers. I have added the iCloud capability thru XCode 5, which created automatically the entitlements files. I've also turned the iCloud option on for both App IDs.
Here is how I set data from App A:
[[NSUbiquitousKeyValueStore defaultStore] setObject:value forKey:key];
[[NSUbiquitousKeyValueStore defaultStore] synchronize];
Here is how I get data on App B:
[[NSUbiquitousKeyValueStore defaultStore] synchronize];
[[NSUbiquitousKeyValueStore defaultStore] objectForKey:key];
I don't know if that matters but I am running both apps in Debug mode. Do I have to create both Apps on iTunes with iCloud enabled?
Thanks!