Duplicate symbol error when adding NSManagedObject subclass, duplicate link

后端 未结 6 1555
情深已故
情深已故 2020-12-13 13:02

I was trying to create NSManagedObject subclasses (2 related entities) automatically in Xcode. They are generated like this:

6条回答
  •  执念已碎
    2020-12-13 13:53

    I recently tried the above answer and it failed. Somehow, Xcode was still generating the files.

    I solved it using the following method:

    • Mark all entities as Abstract
    • Build
    • Remove Abstract flag
    • Build
    • Success !

    This sounds like a bug in Xcode...

提交回复
热议问题