My iOS Testflight App is crashing immediately after download/start (on all physical devices)
iOS Console says: SwiftData/DataUtilities.swift:1093: Fatal error: Unable to parse keypath for non-PersistentModel Type
The code is probably it is during
self.modelContainer = try ModelContainer(
for: Model1.self, Model2.self, Model3.self, Model4.self,
configurations:
ModelConfiguration(isStoredInMemoryOnly: isPreview))
modelContainer.mainContext.autosaveEnabled = true
The app runs fine on physical devices in run scheme (debug or release)
I have no clue how to solve this. Any ideas?