Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Core data persistent store coordinator isnt present

im going through the Apple Doc's tutorial for the Core Data Tutorial for iOS and when i press the + button to add an event to my tableView, the app crashes and the console states: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'This NSPersistentStoreCoordinator has no persistent stores. It cannot perform a save operation.' I have went through the tutorial many times and i cannot find anywhere that the tutorial says anything about the store. So is there code I'm supposed to add that it isn't showing?

like image 572
iProRage Avatar asked Mar 26 '26 10:03

iProRage


1 Answers

You should create a new project using Xcode's Master-Detail template, selecting "use Core Data" to get a current working example. Once you have a working project in front of you, search the project for NSPersistentStoreCoordinator - it is much easier to understand the docs in conjunction with a working code example than it is to understand them while trying to create working code from nothing.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!