Swift CoreData: Unable to load class named...

Swift CoreData: Unable to load class named...

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: <MyAppName>.User

Follow up: Generating the .swift model files

Source: https://developer.apple.com/library/prerelease/mac/documentation/Swift/Conceptual/BuildingCocoaApps/WritingSwiftClassesWithObjective-CBehavior.html

Thomas Sattlecker

Thomas Sattlecker

View Comments
Navigation