I have a model file thats named \"Model\". If I rename it to \"SomeOtherName\" it just does not get loaded.
initWithContentsOfURL returns nil and:
This worked for me:
(Check if the name in AppDelegate is the same as your xcdatamodel file. -> let container = NSPersistentContainer(name: "YourName") ......)