I am having issues loading my model from a Swift Package with the following structure: | Package.swift | Sources | - | SamplePackage | - | - Core | - | - | - SamplePackageDataStack.swift | - | - | - DataModel.xcdatamodeld | - | - | - | - Model.xcdatamodel ( <- is this new? ) As mentioned, I am not required to list the xcdatamodeld as a resource in my Package manifest. When trying to load the model in the main app, I am getting CoreData: error: Failed to load model named DataModel Code: In my swift Package: public class SamplePackageDataStack: NSObject { public static let shared = SamplePackageDataStack() private override init() {} public lazy var persistentContainer: NSPersistentContainer = { let container = NSPersistentContainer(name: DataModel) container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { fatalError(Unresolved error (error), (error.userInfo)) } }) return container }() /// The managed object context associated with the main queue. (rea
5
0
5.6k