Using Version 8.1 of Xcode.
Create an entity named \"MapRegionObject\" in .xcdatamodeld file.
Using auto code generator, click Editor on the navigation bar -
Close the project and follow the following instructions:
Save and open Xcode project again.Everything should work well.