Search code examples
ioscore-datansmanagedobject

When i am creating NSManageObject subclass with Xcode Editor getting errors?


Getting lots of error while creating NSManageObject subclass.enter image description here


Solution

  • Follow this:

    1. Go to Project name.xcdatamodeld
    2. Select an entity
    3. select Data Model inspector on the right
    4. then in Class section, set module = Current Product Module and Codegen = Manual/none
    5. Then clean the product and restart Xcode.

    Hope this will solve your problem.