I'm trying to get the very basics of CloudKit working, but am having trouble. When I perform the following,
[[CKContainer defaultContainer] accountStatusWithCompletionHandler:^(CKAccountStatus accountStatus, NSError *error) { }];
I get account status CKAccountStatusCouldNotDetermine
and a CKError
with a description like
<CKError: "Internal Error" (1/2005)>
I’ve tried these things:
Xcode thinks everything is fine. I was previously using iCloud Drive (Documents) using a similar set up and things were fine.
Am I missing something totally obvious?
It looks like the issue was using a separate .entitlements
file for debug versus production builds, for whatever reason.