Nan
Nan

Reputation: 534

Xcode generate NSManagedObject Subclass issue

After I set up Core Data Stack, I generated the NSManagedObject Subclass automatically.

However, I received the error in xcode 8, which is very annoying. enter image description here

enter image description here

Upvotes: 1

Views: 639

Answers (1)

Gulliva
Gulliva

Reputation: 488

So I also ran in this issue. You have to disable automatical code generation if you want to create the NSManagedObjects by yourself. So there are different ways. First way is go to your model and changed the Toolversion to xCode 7.3. In every entity you can set the Codegen to Manual/None like in the Screenshot. Clean your project, and try again! I hope this was helpful. enter image description here

Upvotes: 3

Related Questions