Invalid redeclaration on CoreData classes

前端 未结 2 1304
甜味超标
甜味超标 2020-12-23 01:55

I am working with CoreData, on an entity called \"RoleName\".

The problem is: I click on \"Create NSManagedObject subclass\" from within my model, and so it automati

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-23 02:59

    This is because Xcode handles all that by itself. I felt it like a bit of trouble as the auto generated classes don't have all my properties.

    So follow these steps to get this as it used to be:

    • Delete what ever classes you already made for core data.
    • Set class.Module as Current Product module

    • Set Class.codegen as Manual/None

    • Now select your entity and create NSmanagedobject subclass

    • You are all set

提交回复
热议问题