I have separated my Data Access Layer (DAL) in a framework in order to be able to use it in both the app and its Today widgets. I set up everything and it compiled but at runtime when I tried to create a NSPersistentContainer
the app crashed with the infamous An NSManagedObject of class 'ClassName' must have a valid NSEntityDescription
.
What I tried:
- checking if the name of the persistent container is the same as the data model
- selecting
Current Product Module
for the model class module