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:
Current Product Module for the model class module What helped:
CoreData for the xcdatamodeld fileTo do this:
xcdatamodeld file in Project Navigator
Utilities on the right sideFile Inspector
Target Membership
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With