CoreData: warning: Unable to load class named 'User' for entity 'User'. Class not found, using default NSManagedObject instead.
If you get this error, but you are sure that there should exist an entity 'User', it is most likely that you forgot to set the correct class in the xcdatamodel. It should look like this:
Follow up: Generating the .swift model files