Post

Replies

Boosts

Views

Activity

Reply to SwiftData ModelContainer can not be created in iOS 17.4 Beta
I have now identified that this issue is happening due to Relationships in my model. My MyToDo has task defined like this: @Relationship(deleteRule: .cascade) var tasks: [MyTask]? = [] and MyTask has reference back as following: var todo: MyTodo? Both of them are optional as required for CloudKit. This model can be read in iOS 17.3, but in 17.4 beta, it crashes!
Feb ’24