Skip to main content
The 2024 Developer Survey results are live! See the results

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.

0 votes
0 answers
29 views

SwiftData @Model Macro - Store Media as Type Data?

I have been working on an app and using the SwiftData Model with the @Model macro. I noticed a while back that it doesn't support the CKAsset data type b/c it does not conform to the PersistentModel ...
SeniorDeveloper's user avatar
-1 votes
0 answers
19 views

iOS app container structure changed - database not found

Today I'm downloading my in-development iOS app container (.xcappdata) from Xcode's devices and simulators window in order to see what's stored in the app using Core Data (and eventually use that ...
Damien's user avatar
  • 3,360
-2 votes
0 answers
67 views

Is there a way to quickly read a lot of data from 'SwiftData'?

I will create an app that supports purchase records. I used 'SwiftData' to implement storage, backup, and restoration functions at once. One problem is that it takes a lot of time to read the data ...
KimJitae's user avatar
  • 233
-1 votes
0 answers
21 views

What do I have to do that the data is synchronized between iPhone and iPad when I installed my app via TestFlight?

I am building my first iOS app that I actually want to release in the App Store. At the moment I want to test my app via TestFlight. The data is not synchronized between my iPhone and iPad. It is ...
Dominik's user avatar
  • 21
0 votes
0 answers
44 views

Using SwiftData how does one sync a public database?

I have an iOS project with CloudKit, Background, and Remote Notifications enabled. I have specified an @Model type that matches the name of the record in the CloudKit database. But when I created the @...
Scott McKenzie's user avatar
0 votes
0 answers
21 views

About CloudKit Security Roles and Permissions

I've checked that there are some questions like mine. But the terminology seems to have changed and it's been time, so I opened a new question. Hi, I'm trying to add the ability to back up and record ...
KimJitae's user avatar
  • 233
0 votes
1 answer
25 views

Does the Apple CloudKit dashboard only show developer data?

I am creating an iOS app. I saved the data using Realm, but I found CloudKit while I was looking into it because I thought there were many inconveniences with the backup. I understand that CloudKit ...
KimJitae's user avatar
  • 233
1 vote
1 answer
120 views

SwiftData custom migration crash when CloudKit enabled

I have an app that is in production that has a single entity called CDShift. This is the class: @Model final class CDShift { var identifier: UUID = UUID() var date: Date = Date() ... } ...
Andrea Mario Lufino's user avatar
0 votes
1 answer
119 views

How to save to specific Stores/Configurations in Core Data

I'm currently syncing core data with the CloudKit private and public databases, as you can see in the code below, I'm saving the private database in the default configuration in Core Data and the ...
fs_tigre's user avatar
  • 10.6k
0 votes
0 answers
18 views

NavigationList not working in NavigationStack

I have two simple modules in my Swift program. One maintains a list of Locations and the second maintains a list of Activities. The locations module works fine while the Activities module freezes! ...
John Bennett's user avatar
3 votes
0 answers
53 views

Understanding Syncing between Core Data and CloudKit Public Database using NSPersistantCloudKitContainer

Can someone please give me an overview of how sync works between Core Data and the public CloudKit database when using the NSPersistentCloudKitContainer and please point out my misunderstandings based ...
fs_tigre's user avatar
  • 10.6k
0 votes
1 answer
48 views

How can we reliably detect when a user runs out of iCloud storage?

I am using NSPersistentCloudKitContainer, to integrate CoreData with CloudKit. What I want to achieve is to prompt the user to go to iCloud settings to manage their storage when there is a sync error, ...
Cheok Yan Cheng's user avatar
0 votes
1 answer
54 views

Local Core Data Backup/Restore iCloud conflict “ Told to tear down with reason: Stores Changed”

I have a backup / restore function for Core Data defined like this: import CoreData import FirebaseCrashlytics import Foundation extension NSPersistentCloudKitContainer { enum ...
Petr Smejkal's user avatar
-1 votes
1 answer
17 views

CloudKit CKQuery Predicate to find next available name

I'm attempting to query the CloudKit database for the following - (Example) userName = "Fred" Let's say that this is unavailable (checked with a query), so I want to find names which begin ...
SomaMan's user avatar
  • 4,164
1 vote
1 answer
35 views

Use CloudKit with CoreData store in shared AppGroup container

Because I added widgets that need access to the CoreData store, I have moved the store into a shared AppGroup container. That has worked well, with no issues. However, I have been unable to get it to ...
Yrb's user avatar
  • 9,370

15 30 50 per page
1
2 3 4 5
157