Setup: My app uses core data & cloud kit mirroring. For unit tests, I want to mock iCloud mirroring by setting cloudKitContainerOptions = nil of ...
Setup: My app uses core data & cloud kit mirroring. For unit tests, I want to mock iCloud mirroring by setting cloudKitContainerOptions = nil of ...
Setup: My app uses 2 persistent stores managed by a single persistent store coordinator that is used by several managed object contexts. Both persiste ...
The setup: My app uses uses either own data (own state) or data shared by another user (shared state), and it is possible to switch between both state ...
I have successfully launched 1st version of my App with MyProject.xcdatamodel. Now my 2nd version is under development and I created new model version ...
I am facing this issue once or twice a day for the last week when I open my app & the app tries any save operation on the context, I still can't f ...
I'm trying to add a sqlite persistent store in Library/Application-Support folder as shown below: - (NSManagedObjectModel *)managedObjectModel { ...
I use a CoreData database in my app. I need to delete it (model and all data) and recreate it when the app is updated. To delete it, I use destroyPer ...
When my app launches and the first view controller is created, a new backing NSManagedObject is also created. At this point, I have NOT saved the cont ...
Given a entity name and I know the format of the URI I am searching for... is there a way I can create predicate to fetch a range of objects based on ...
I am encoutering a strange issue: I am using a backgroundFetch to fetch the data from Core Data. Now in my view Controller, in my table cell: No ...
For my latest app update, I have to move the user's Core Data .sqlite database from the Documents directory to the Application Support directory. I us ...
I'm implementing backup and restore (via Dropbox) of a user's Core Data persisted data. For a restore I pull the files down from Dropbox and store the ...
I am using encrypted-core-data to encrypts all data that is persisted , previously simple CoreData was using. persistentStoreCoordinator creation code ...
I'm looking for a tutorial on how to store sensitive data in memory rather than on disk for iOS (10+). I've googled but nothing really relevant has co ...
I've managed to create a local backup of my PersistentStore using the following code: This seems to work. The backup files are created. This answer ...
I'm migrating my iOS app to use NSPersistentContainer. This class by default locates its persistent store files in the Library/Application Support dir ...
Is it safe to use the viewContext to save into the persistent store if I have large amounts of data? For example, I have 1000 records on my temporary ...
In my app, I have used Double Model of NSManagedContext. Have one child managedObjectContext with NSMainQueueConcurrencyType and parent writerManagedO ...
I am currently unit testing a layer that interacts with Core Data. It saves, deletes, and updates an Item object. However, my test that attempts to sa ...
I'm using NSInMemoryStoreType for NSPersistentStoreCoordinator to maintain the entities and relationships in-memory as I don't want to write it to the ...