Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error opening shared document via CloudKit

CloudKit sharing was introduced this year and I'm trying to implement it.

I'm using the UICloudSharingController and I'm saving the share and its root record in the completion handler which succeeds. However, when I share the link (e.g. via iMessage) and open it on another device (different iCloud account, same build), it shows the following error:

Couldn't open "Share"

You need a newer version of APPNAMEto open this, but the required version couldn't be found in the App Store. If you're not sure which version to use, check with the owner.

As this is a new app, it is of course not in the App Store. I need to test sharing first (Chicken or the egg?), so anyone knows how to test CloudKit sharing?

like image 231
ChaosCoder Avatar asked Oct 23 '16 20:10

ChaosCoder


People also ask

Do CloudKit apps sync with iCloud users?

Sync user data between multiple apps from the same developer If you have a suite of apps, they can all share the same CloudKit container so users can have access to their data for all of your apps on every device they have associated with their iCloud account.

What is a CloudKit zone?

CloudKit record zones (CKRecordZone) provide a mechanism for relating groups of records within a private database. Unless a record zone is specified when a record is saved to the cloud it is placed in the default zone of the target database.

Is CloudKit free?

Cost. Although the running cost of servers is a big deal for developers. But in case of CloudKit you don't have to be worried about paying large expenses at all. As it offers a reasonable storage amount completely free.


1 Answers

Turns out, I was missing the

<key>CKSharingSupported</key> <true/>

entry in my Info.plist. This resolved the error.

like image 130
ChaosCoder Avatar answered Sep 30 '22 18:09

ChaosCoder