invalid redeclaration in auto code generate NSManagedObject Subclass Swift 3

前端 未结 9 1520
情书的邮戳
情书的邮戳 2020-12-08 09:07

Using Version 8.1 of Xcode.

Create an entity named \"MapRegionObject\" in .xcdatamodeld file.

Using auto code generator, click Editor on the navigation bar -

9条回答
  •  旧巷少年郎
    2020-12-08 09:46

    1) clean the project (cmd + shift + K)

    2) In the "data model inspector" for every created Entity set attributes for Class just as in the screenshot below

    3) Generate code again (Editor -> create NSManagedObject Subclasses)

    After that everything should work fine.

提交回复
热议问题