Reputation: 832
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).
Upvotes: 1
Views: 1472
Reputation: 4729
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.
Upvotes: 1