Supratik Majumdar Supratik Majumdar - 1 year ago 131
iOS Question

Cannot create NSManagedObject subclass

I am trying to learn CoreData.
I created a single entity with only one attribute and created it's NSManagedObject using the Editor menu.

But as soon as I try to build the app I am shown a Swift Compiler Error

File Structure:

enter image description here

enter image description here

enter image description here

Answer Source

You are manually generating a NSManagedObject subclass, which has already been generated by Xcode.

Find detailed solutions here.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download