1
votes

I try to configure iCloud for my app. I enabled iCloud for my iPhone App, generated a new provisioning developer profile. Of course I use the new profile in Xcode (instead of the wildcard one), I enable entitlements but still I have the following error when I try to synchronize with iCloud :

NSUbiquitousKeyValueStore error: com.company.app has no valid com.apple.developer.ubiquity-kvstore-identifier entitlement

I really don't understand what's going on and I'm starting to losing my mind.
The weird thing is that it's perfectly working for my iPad app (I did the same steps).

1
Is the bundle id of your application really com.company.app (i.e. generic) or is it set to something more specific?Michael Dautermann
I try to use the same iCloud container id for both application. But no matter what I specify in the entitlement file, it uses the bundle of the App... Apple says we can do that but the entitlements settings seems to be attached in the provisioning profile.Antoine Gamond
While giving support for iCloud, Should we enable iCloud in existing working app ID or should we create new app ID with iCloud enabled?Hawk-Eye

1 Answers

1
votes

You need a development provisioning profile for the Mac app as well and it can not be the same as the iOS one. You need to create an App ID (make sure it is exactly the same as your bundle ID in the app), turn on iCloud for that ID. Create a development provisioning profile and install the profile on the machine (just double click it) and drag it over to Xcode. Then use that profile to sign the app. If you still don't have permission to use iCloud (the message teling you this may not go to Xcode it may stay hidden in Console.app) delete your container (~/Library/Containers/) and try again.