I recently wanted to try out CoreData and its power, so I found a simple tutorial and while following it, I created a .xcdatamodeld file with Entities and relationships.
What I wanted to do now is to turn it into classes (Tried on Xcode Version 8.1 (8B62) and Xcode Version 8.2 beta (8C23))
For this I opened my model file, clicked on Editor --> Create NSManagedObject subclasses. Doing this and selecting my two entities would generate 4 classes, two NSManagedObject classes and for each of them one extension.
After adding or rather generating those four files, Xcode won't compile the project and puts out the following error:
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
and sometimes it also says: Invalid redeclaration of [Managed Object Name]
Any insight would be awesome, should I create the classes myself without using a model? or does CoreData work in Objc? then I'd switch to that...
