Swift CoreData: generate swift NSManagedObjects

Swift CoreData: generate swift NSManagedObjects

This is a follow up to my previous post about Xcode6 and CoreData.
If you set the class in your xcdatamodel to <MyAppName>.User and create the NSManagedObjects from the entities, Xcode6 does not generate the correct .swift model files. It parses the class <MyAppName>.User only to the . and creates a single <MyAppName>.swift file.

For now the only fix i have is to rename the class to User, generate the .swift file and rename it again to <MyAppName>.User so i dont get the errors.

If anyone has a better solution please leave me a comment.

Thomas Sattlecker

Thomas Sattlecker

View Comments
Navigation