Getting error in sample core data project

You need to add the Framework for coredata in your bundle before using the same.

As you said, you are a newbie in iPhone development, I would suggest you to refer to apple docs on coredata before implementing it.


In addition to adding Core Data framework in project settings, you have to #import <CoreData/CoreData.h> in your source code. You can do it just once for entire project by placing such #import into .pch file for your project, typically found in "Supporting Files" group of your project tree.