Reply to Failing to insert @Model class into managed object context I got this same error after adding a second .modelContainer modifier in my App struct. Works: .modelContainer(for: [Location.self, Bakery.self]) Didn't work: .modelContainer(for: Location.self) .modelContainer(for: Bakery.self) Programming Languages Swift Oct ’23