executeFetchRequest doesn't return the NSManagedObject subclass

前端 未结 3 547
猫巷女王i
猫巷女王i 2021-02-14 11:20

This is for XCode 6 and Swift...

I\'m trying to make a fetch request to the managed object context but it\'s not returning the correct subclass.

I have already s

3条回答
  •  别那么骄傲
    2021-02-14 11:47

    Check to make sure that in the "Entity" inspector (right side of the screen, Utilities pane) when Task is selected in your Model that its Class field is properly filled in with "Task" (it's blank by default).

提交回复
热议问题