SwiftData makes app crash: fatal error: Unable to find relationship
I get this error even with explicitly setting the relationship in my class. I have a workout class and an exercise class. workout is composed of an array of exercises:
SwiftData error when trying to delete items from a list, Never access a full future backing data
When I try to delete items from my list stored with swift data, it instantly makes crash my app with this error message:
SwiftData/BackingData.swift:482: Fatal error: Never access a full future backing data – PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://03DEFFA9-87EF-4E13-9448-946D9EBC17B6/Exercise/p8), implementation: SwiftData.PersistentIdentifierImplementation) with Optional(0252D555-649A-45B2-954C-7DD62A6DBAE4)