Questions tagged [nspersistentcloudkitcontainer]
111 questions
0
votes
1 answer
Problem getting NSPersistentCloudKitContainer to sync between devices (SwiftUI, iOS)
I have set up my Core Data model with NSPersistentCloudKitContainer:
struct PersistenceController {
static let shared = PersistenceController()
let container: NSPersistentCloudKitContainer
init(inMemory: Bool = false) {
container…

Gin Tonyx
- 383
- 1
- 11
0
votes
1 answer
NSPersistentCloudKitContainer returns no data on first app launch
I'm trying to mirror Core Data to iCloud using CloudKit. When I delete the app on simulator and then run the app, the app does not show any data. I then run it again and this time it shows data. I tried it multiple times with the consistent result…

matchifang
- 5,190
- 12
- 47
- 76
0
votes
2 answers
CoreData error: Must supply a fetch request during initialization
I have the following code setup for all my CoreData UnitTests (where context is my viewContext and Item is a CoreData model):
override func setUpWithError() throws {
let deleteReq = NSBatchDeleteRequest(fetchRequest: Item.fetchRequest())
try…

thisIsTheFoxe
- 1,584
- 1
- 9
- 30
0
votes
1 answer
Delay in CoreData to PersistentCoudKitContainer synchronization
I am having an issue with my CoreData to iCloud synchronization with NSPersistentCloudKitContainer.
The synchronization works, but when i do a fresh install of the app there is an annoying delay of several seconds between app launch and the end of…

Michael
- 182
- 1
- 9
0
votes
1 answer
How to store a CloudKit CoreData instance in Shared Group Container?
If you need to share your core data with app extensions it can be useful to store the container in a shared group.

lewis
- 2,936
- 2
- 37
- 72
0
votes
1 answer
CKQueryNotification.recordID: unrecognized selector sent to instance
I'm trying to set up silent push notifications to propagate local notifications across devices using CloudKit and I can't wrap my head around why my app is crashing every time I receive a remote notification.
Everything works just fine until I try…

rs7
- 1,618
- 1
- 8
- 16