I'm trying to write a unit test for a Core Data model in Xcode 12 Beta 4 for a multiplatform app. However, it looks like it's unable to find the managed object model. The following returns nil:
This works fine in Xcode 11 for an iOS app. I also tried getting the model explicitly from the bundle, but that doesn't seem to work either.
Any ideas on how to fix this?
Code Block swift let container = NSPersistentContainer(name: "MyModelName")
This works fine in Xcode 11 for an iOS app. I also tried getting the model explicitly from the bundle, but that doesn't seem to work either.
Any ideas on how to fix this?