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

后端 未结 5 670
清酒与你
清酒与你 2020-12-10 14:29

I\'m having a problem integrating iCloud with my app.

When I set test out iCloud availability, I receive Success for the function

NSURL *iCloudURL =          


        
相关标签:
5条回答
  • 2020-12-10 14:56

    I ran into this problem when attempting to debug a Mac (not iOS) application. The problem turned out to be that I was not signing the debug build, and did not have the deployment phase of the project with "Skip Install" set to "Yes".

    Apparently, iCloud will not function properly with an unsigned application.

    0 讨论(0)
  • 2020-12-10 15:00

    Big warning: if your device is jailbroken, make sure you have uninstalled AppSync. I had two insane days because of that. iCloud (and Game Center) would not work on device with AppSync installed even with correct entitlements and profiles!

    0 讨论(0)
  • 2020-12-10 15:06

    I had the same problem even though all of my code, settings, entitlements, etc were correct. I fixed it by physically deleting the app from my iPhone, then building in Xcode and running it on my iPhone and it worked. Just wanted to add that in case the other solutions don't work for somebody else out there.

    0 讨论(0)
  • 2020-12-10 15:11

    Add com.apple.developer.ubiquity-kvstore-identifier in your Entitlements with the following value:

    $(TeamIdentifierPrefix)$(CFBundleIdentifier)
    
    0 讨论(0)
  • 2020-12-10 15:14

    I did the follow to get this to work for me (Xcode 4.2.1):

    1. In Xcode, go to your target > Summary > at the bottom, click Enable Entitlements.
    2. In the iOS Provisioning Portal, go to App IDs and enabled iCloud support. (You may not have to do this, but it worked for me.)
    3. Edit your Provisioning Profile to force it to update; then download this profile and open it so it automatically launches in Xcode.
    4. Clean and build your app to your device.
    0 讨论(0)
提交回复
热议问题