Post

Replies

Boosts

Views

Activity

Unit Testing with Core Data in Xcode 12
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: 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?
1
0
618
Aug ’20