When I got this error, I had updated my core data models but not cleared the app instance from my test phone. This meant the models saved to core data on the phone did not match what I was trying to use in the code.
I removed the app from the phone and re-built/ran successfully.