No NSEntityDescriptions in any model claim the NSManagedObject subclass

If you ever encounter an issue similar to this using SwiftUI, you can try changing the entity’s class module from Global Namespace to Current Product Module.

Go to your xcdatamodeld file and select the problematic entity. Then in the data model inspector, change the Module field from the default Global namespace to available value “Current Product Module” by clicking on the arrow at the right of the field.

This allowed my app to compile without encountering the error.

Changing the module field

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)