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
0
votes
0 answers

How can I collect data in SwiftUI and show it to all users?

I'm using a SwiftUI, and I want to create a list of functionality that has not yet been added to my app and allow users to vote for the functionality they want to see first. Basically, it will be a list of labels with buttons. When the user taps a…
user6023982
  • 413
  • 1
  • 5
  • 15
0
votes
1 answer

NSUbiquitousKeyValueStore.didChangeExternallyNotification fires also when change is done on device itself

My app worked fine until iOS 16.0. When I write to iCloud: NSUbiquitousKeyValueStore then the didChangeExternallyNotification notification is triggered also on the device I wrote to iCloud. So it did not change externally but internally. Therefore…
0
votes
0 answers

How to find missing symbols during linking on App Store

I am attempting to submit my app to the App Store and receive the message: The app submission can not be successfully recompiled from bitcode due to missing symbols during linking. I went through the problem resolution steps they recommend by…
Russ
  • 467
  • 3
  • 10
0
votes
1 answer

How to decode a CKRecord NSData field, created by a transformable CoreData attribute, back to its original type?

Setup: My app uses CoreData & CloudKit sync. Entity Item has among others an attribute status of type Int16 with corresponding property @NSManaged var status: Int16, and an attribute names of type transformable using…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
0
votes
0 answers

Is it necessary to use both CKFetchDatabaseChangesOperation and CKFetchRecordZoneChangesOperation?

I’ve been learning about CloudKit sharing and using the code techniques in Apple’s CloudKitShare sample project found in Apple‘s documentation. Upon reading Apple stock vacation for CKFetchDatabaseChangesOperation and…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
0 answers

State var nil in SwiftUI with async await (CloudKit)

I haven't done much with the changes to SwiftUI concurrency with async await but I have gone through all the documentation and I really don't get what's going on here: I try to share my CloudKit database with other users, I implemented basically 1:1…
breeef
  • 1
  • 1
0
votes
0 answers

Swift CoreData -> Cloudkit Using Public Database - BAD REQUEST

I have a CoreData private database that I'd like to make into a public database. I've done this before but this database is more complicated and perhaps that is the underlying issue. When I check the CloudKit console logs all I see i a request…
Russ
  • 467
  • 3
  • 10
0
votes
1 answer

Prevent CloudKit Sync and Trigger sync manually

CloudKit sync with Core Data is quite an energy expensive task which can drain the battery quickly. As far as I found out, CloudKit triggers a sync when it thinks it's convenient to do so. I discovered, that in my app the sync is triggered almost…
wildcard
  • 896
  • 6
  • 16
0
votes
2 answers

Request permission not working in CloudKit

I am trying to request permission using the function: func requestPermission() { CKContainer.default().requestApplicationPermission([.userDiscoverability]) { [weak self] returnedStatus, returnedError in …
Marcus Grant
  • 11
  • 1
  • 3
0
votes
0 answers

Linking Assets (CKAsset) to a Core Data Entity

I am toying with CloudKit, saving records and assets (using the private database). Managed to successfully save an CKAsset, it ends up in the _defaultZone. My Core Data Objects however somehow end up in the zone called…
DeveloperSammy
  • 167
  • 1
  • 11
0
votes
1 answer

How to fully remove macOS Xcode application?

I'm working on a multiplatform app using Xcode and SwiftUI. A couple weeks ago I changed my CloudKit data and now the application won't run as I'm getting a fatalError. I got the iOS application running again by uninstalling the app and running…
Kyra
  • 5,129
  • 5
  • 35
  • 55
0
votes
0 answers

How do I retrieve CloudKit Reference List?

I have setup my CloudKit record types the same as my local structs and models in my code but can't seem to find a way to retrieve the list of references. For example, I have a UserData record type with a record field of friends which is a list of…
Papi
  • 255
  • 1
  • 2
  • 13
0
votes
0 answers

How to replace CoreData + CloudKit to only CoreData

My app's database uses CoreData + CloudKit, but I want to remove CloudKit and use only local CoreData. I run the app after replacing NSPersistentCloudKitContainer to NSPersistentContainer, but failed to load persistant stores. How to result this…
junya
  • 1
0
votes
1 answer

Core Data, CloudKit - Failed to find matching objectIDs for CKRecordID

I am using CloudKit to sync my app across devices. At first everything seems to work as expected but after a while CloudKit seems to get caught in an endless loop and the debug console throws tons of these messages (several thousand in…
wildcard
  • 896
  • 6
  • 16
0
votes
1 answer

iOS Core Data CloudKit sync not working on AppStore

I've built an app where I want t sync my data between devices. I've started from the default code created by Xcode 13.4.1 when you check CloudKit with Core Data. When I run the app from Xcode on my iPhone and iPad it all syncs as expected. However,…
Deddiekoel
  • 1,939
  • 3
  • 17
  • 25
1 2 3
99
100