I’m getting the following error and am trying to track down the source but wanted to see if I could get any help.
CoreData: error: Property ‘setDateCreated:’ is a scalar type on class ‘BNRItem’ that does not match its Entity’s property’s scalar type. Dynamically generated accessors do not support implicit type coercion. Cannot generate a setter method for it.
So I have rebuilt the app three times for Chapter 16 and am now unable to get a working application. Since I did not receive a reply to my previous question above and did not know where to go, I decided to just redo Chapter 16. Not knowing the ramifications of having the same project run on the simulator I removed the folder from the simulator files. I am now, after what I thought was meticulously following the instruction in Chapter 16, getting the following error and the app will not even run: Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘Can’t merge models with two different entities named ‘BNRItem’’.
I have looked through the code and do not see multiple instances of BNRItem defined anywhere. Is this left over from previous trials?
This chapter has left me with a bitter taste in my mouth for not only CoreData but iOS programming in general. My frustration lies also with the errors generated and no clear understanding of what is happening. This is just unbelievably frustrating because I don’t even know where to start looking for a solution.