cloudkit Questions
2
I'm using NSPersistentCloudKitContainer to synchronise data between different devices with CloudKit. It works perfectly well with a new project, however when I'm using it with old projects the old ...
Allocution asked 3/7, 2019 at 18:10
4
Solved
I have searched, and I cannot find an example. I have also tried adapting this code (recommended elsewhere (CloudKit won't reset my badge count to 0):
func resetBadgeCounter() {
let badgeRese...
Newsboy asked 28/11, 2017 at 22:28
2
I'm building a Macos CoreData+CloudKit app.
I first create my container by doing this:
let container = NSPersistentCloudKitContainer(name: "TestApp")
let description = container.persisten...
3
Solved
CKQuery doc says: Key names used in predicates correspond to fields in the currently evaluated record. Key names may include the names of the record’s metadata properties such as "creationDate” or ...
2
I tried to migrate my CoreData-Model (with CloudKit) and it duplicated all of the objects I had stored. How can I correctly migrate when using CoreData with CloudKit?
Summary
I am using CoreData wi...
Niccolo asked 30/8, 2020 at 11:10
3
Solved
I attempted to retrieve the first name and last name of the current user from CloudKit. However, I received a message from Xcode indicating that the 'userDiscoverability' feature will be deprecated...
1
Unfortunately the .unique attribute is not available for SwiftData model properties when using CloudKit.
Is there a best practice to setup a constraint like this for my own models?
For the local DB...
3
Solved
I am using PhotosPicker to let users select a photo. How do I retrieve the url of the selected photo?
I've tried printing out the imageSelection.itemIdentifier and got Optional("03966B05-1F51-...
7
Solved
I've just create a project in Xcode 9 beta 6 and add this code:
let privateDB = CKContainer.default().privateCloudDatabase
let greatID = CKRecordID(recordName: "GreatPlace")
let place = CKRecord(r...
Propagable asked 10/9, 2017 at 18:31
2
I'm building an app with Core Data and CloudKit. I need to detect when remote changes have been pushed to the app and are available in the local database to perform some work on the new data set. I...
2
Solved
To add a CKRecord in a private CKRecordZone you need to make sure the zone exists already.
But does it mean that every time I need to insert a record I need to fetch all the zones and find if my z...
0
has anyone figured out how to use swiftdata in SwiftUI with CloudKit to share data among other users and set permissions? Thank you!
I checked apple’s documentation along with the internet in gener...
Communalize asked 26/7, 2023 at 6:8
3
Solved
SWCollaborationView was introduced as a standard UI element to manage real-time collaboration between users in iOS16+. This is explained in this Apple article. Similarly to UICloudSharingController...
Cooncan asked 26/12, 2022 at 15:6
1
This is a copy of a thread I've created on Apple's Forum here
Background
I have an established app in the App Store which has been using NSPersistentCloudKitContainer since iOS 13 without any issue...
Rodrickrodrigez asked 30/8, 2021 at 4:57
3
Solved
Please see my updated question below:
I am working on my first app with CloudKit. I'm trying to test whether a user is connected to iCloud, before looking for transactions.
This is my code (showi...
2
I have the following code to import the UICloudSharingController into swift UI but when integrated the first time up it just shows an activity indicator that never stops and then the second time it...
Pinchcock asked 1/8, 2019 at 13:53
4
Solved
I'm building a test tool to verify content in CloudKit, but I want to be able to select the container's environment.
On iOS, you can select either the "Development" or the "Production" environment...
Flak asked 8/12, 2014 at 18:1
2
Solved
In the summer, Apple published an informative sample app on sharing objects between iCloud users using Core Data, CloudKit and UICloudSharingController in SwiftUI.
However, adding more participants...
2
I am interacting with the cloudkit dashboard and looking at data collected by my app.
How can I export all the data from the dashboard (data-> csv or json) so that I can do some analytics on it? ...
Excuse asked 27/7, 2016 at 14:50
2
Solved
I have an IOS 8 App which is successfully writing out records to its default Cloudkit container. Now I wish to read and process those records in a different App under OS X. I have set up the new Ap...
5
Below is one of the requirements to use Core Data with Cloudkit in Apple's doc:
All relationships must be optional. Due to operation size limitations,
relationship changes may not be saved atomica...
3
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 butto...
3
I am using CloudKit to store publicly available data and the new NSPersistentCloudKitContainer as part of my Core Data stack to store/sync private data.
When a user opens my app, they are in 1 of ...
Herra asked 20/4, 2020 at 5:32
1
Solved
Currently, we are using local CoreData with CloudKit feature, by using NSPersistentCloudKitContainer.
Why we enable persistent history tracking feature?
Due to the problem described at https://mcma...
5
Solved
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?
1 Next >
© 2022 - 2025 — McMap. All rights reserved.