CoreData issue: -[NSManagedObject setValue:]: unrecognized selector sent to instance

后端 未结 8 607
温柔的废话
温柔的废话 2021-02-05 08:29

I just started with CoreData yesterday, and I\'m going crazy :( I created a project that uses CoreData (ticked the box -use CoreData). Created the entities, and then created the

8条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-05 08:41

    take the following steps

    1) created a new version of the Core Data Model via Xcode.

    2) Fix the relationship (added a new relationship between the two. )

    Creating Managed Object Relationships

    3) re-created the NSManagedObject subclass

提交回复
热议问题