Using Version 8.1 of Xcode.
Create an entity named \"MapRegionObject\" in .xcdatamodeld file.
Using auto code generator, click Editor on the navigation bar -
1) clean the project (cmd + shift + K)
2) In the "data model inspector" for every created Entity set attributes for Class just as in the screenshot below
3) Generate code again (Editor -> create NSManagedObject Subclasses)
After that everything should work fine.