Hi everyone,
Complete newbie here. Building an app and trying to use Cloudkit. I've added the CloudKit capability, triple checked the entitlements file for appropriate keys, made sure the code signing entitlements are pointing to the correct entitlements file. I've removed and cleared all of those settings and even created a new container as well as refreshed the signing. I just can't seem to figure out why I keep getting this error:
Significant issue at CKContainer.m:747: In order to use CloudKit, your process must have a com.apple.developer.icloud-services entitlement. The value of this entitlement must be an array that includes the string "CloudKit" or "CloudKit-Anonymous".
Any guidance is greatly appreciated.
How to set up CloudKit for your app is detailed in Enabling CloudKit in Your App. If you are using Xcode, following the steps should get you ready, without the need of manually changing the entitlement value.
The error indicates that the com.apple.developer.icloud-services
entitlement in your app doesn't have the right value. You can find the entitlement and its value in the <YourAppName>.entitlements
file. Assuming you only use CloudKit
(and not key-value storage
or iCloud Documents
), the value should look like the following:
<key>com.apple.developer.icloud-services</key>
<array>
<string>CloudKit</string>
</array>
This kind of error typically happens when you use a 3rd-party developer tools – If that's the case, you might ask help from the vendor of the tools.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.