Class not found, using default NSManagedObject instead

前端 未结 6 765
既然无缘
既然无缘 2021-01-04 04:59

I have a problem with core data in IOS 8. Whenever I want to use the insertNewObjectForEntityForName method, I get the

Class not found,

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-04 05:33

    There is a similar answer to this question. In my case I was using Objective-C and doing this got rid of this error in the console.

    I found the answer here: Unable to find specific subclass of NSManagedObject

    You can empty the "Module" field (it will show "None") and mark the managed object subclasses with @objc(classname)

    This fixed it for me.

提交回复
热议问题