Quantcast
Channel: How to tear down Core Data Stack? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Cristian Pena for How to tear down Core Data Stack?

Since 2015, Apple introduced a new method called destroyPersistentStore(at:,ofType:,options:)guard let storeURL = persistentContainer.persistentStoreCoordinator.persistentStores.first?.url else {...

View Article


Answer by shallowThought for How to tear down Core Data Stack?

The old data has nothing to do with your context but with your PersistentStore. This is what you are using Core Data for, persist your data. Delete the store to get rid of your data before initializing...

View Article


How to tear down Core Data Stack?

I want to add unit tests for my Core Data app, but I am sure how to reset the context between tests.This is my CoreDataStack object:public final class CoreDataStack { var storeType: StoreType! public...

View Article
Browsing all 3 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>