Questions tagged [cloudkit]

CloudKit is a framework for storing and retrieving data on Apple’s iCloud servers. Queries can be run against structured records on the server, and assets provide for large data storage. The public database provides shared storage for web-style apps, and the private database provides storage for user-specific data. CloudKit also provides a user identity so that an iCloud account can be used for sign-in for your app.

CloudKit

CloudKit is a framework for storing and retrieving data on Apple’s iCloud servers. Queries can be run against structured records on the server, and assets provide for large data storage.

The public database provides shared storage for web-style apps, and the private database provides storage for user-specific data.

CloudKit also provides a user identity so that an iCloud account can be used for sign-in for your app.

CloudKit is a transfer mechanism rather than a full sync solution, but it can be used to build custom syncing solutions.

Resources

2317 questions
118
votes
2 answers

Using Core Data, iCloud and CloudKit for syncing and backup and how it works together

I am in the early stages of creating an app where I would like to save, sync and backup data. The app will not store any files just data in a database. It is going to be iOS 8 and up so I am able to use CloudKit. I did some research and still not…
Yan
  • 3,533
  • 4
  • 24
  • 45
61
votes
3 answers

How do I delete a CloudKit container?

I accidentally created a new container in CloudKit, and it is really annoying that it comes up when I open dashboard. Any suggestion how to delete? On developer.apple.com I don't see a delete button for containers.
János
  • 32,867
  • 38
  • 193
  • 353
54
votes
4 answers

Use production CloudKit during development?

My iOS and Mac apps have been launched to the App Store and all of my users, including myself, are using the CloudKit production database. My question is, is there any way to target the production environment for my development builds? It seems…
Eric
  • 1,858
  • 2
  • 16
  • 17
49
votes
5 answers

Check if User is Logged into iCloud? Swift/iOS

Is there a way for me to check and see if a user is logged into iCloud when they open the app up? I want to be able to direct them to the settings page if they are not logged in, and if they are logged into iCloud and have used the app before - I…
pmoney13
  • 1,075
  • 3
  • 11
  • 19
35
votes
3 answers

How to sync records between Core Data and CloudKit efficiently

I'm currently learning how to use CloudKit Framework and lack of documentation or examples showing how to sync Core Data and CloudKit. I have watched all WWDC videos (2014, 2015, 2016) Dedicated to CloudKit, but none of them telling us how to…
Adelmaer
  • 2,209
  • 3
  • 22
  • 45
34
votes
3 answers

CloudKit: "Internal Error" (1/4000); "Couldn't get a signing certificate">

I'm running on simulator and the app works fine, but once on an iPhone device it crashes with - An error occured in discoverUserInfo:: The discoverUserInfo is copied code from Apple's CloudKit sample code below. Is this something on Apple's end, or…
user3411663
  • 1,041
  • 1
  • 9
  • 12
34
votes
3 answers

Can I use CloudKit on Android or web-based app?

I've been coding an app, and using CloudKit would make my life a lot easier. However, this app needs a web-base app along side the iOS app. I was wondering if there was any way I could use CloudKit with Android or web-based apps. While this might…
Zoyt
  • 4,809
  • 6
  • 33
  • 45
31
votes
2 answers

NSPersistentCloudKitContainer: How to check if data is synced to CloudKit

I have implemented NSPersistentCloudKitContainer to get my data synced to CloudKit, I would like to know that the sync is finished and there is no other change pending to be synced. When I tried reinstalling the app, I start getting my data back…
FE_Tech
  • 1,534
  • 13
  • 25
27
votes
6 answers

CloudKit Server-to-Server authentication

Apple published a new method to authenticate against CloudKit, server-to-server.…
Philipp
  • 273
  • 3
  • 7
26
votes
1 answer

Cloudkit JS && Node JS

I'm currently trying to perform server side connection to iCloud Server using the new CloudKit JS from Apple. According to the WWDC 2015 "CloudKit JS and Web Service", since CloudKit JS is a pure JS framework, you can use it in all JS environnements…
GaétanZ
  • 4,870
  • 1
  • 23
  • 30
26
votes
5 answers

How to get the current user ID in CloudKit?

I'd like to save at most one record (i.e. a rating) per user in a table of the public database. For this I need to save the current user ID or device ID. But how can I get it?
Jan F.
  • 1,681
  • 2
  • 15
  • 27
24
votes
3 answers

Using TestFlight with CloudKit development environment

Is it possible to submit an app to the new TestFlight via iTunes Connect using the "Development" environment for CloudKit? It seems that only AdHoc Provisioning Profiles ask for the preferred CloudKit container name (Production or Development) when…
nh32rg
  • 1,462
  • 13
  • 15
24
votes
5 answers

CloudKit - no server-side logic?

With CloudKit, you can focus on your client-side app development and let iCloud eliminate the need to write server-side application logic. CloudKit provides you with Authentication, private and public database, structured and asset storage services…
alan0xd7
  • 1,831
  • 1
  • 15
  • 19
23
votes
2 answers

iOS 15 warning: NSKeyedUnarchiver _warnAboutPlistType:missingInAllowedClasses:

Xcode 13 and iOS 15 began warning about missingAllowedClasses when using custom DataTransformers. There is very little documentation on custom DataTransformers, so I thought I would post a question and answer it here. [general] ***…
Tom GODDARD
  • 641
  • 6
  • 9
23
votes
4 answers

Error _BSMachError: (os/kern) invalid capability (20) after receiving remote notification on CloudKit record addition

When I receive a remote notification on a record addition (didReceiveRemoteNotification called), I get the following error message: _BSMachError: (os/kern) invalid capability (20) I've already tried to find out more about this in forums and via…
John
  • 8,468
  • 5
  • 36
  • 61
1
2 3
99 100