Post

Replies

Boosts

Views

Activity

Reply to Swift compiler crashes with simple SwiftData model
For anyone else seeing this, from the related Github thread, it seems to be due to the custom init defined. Temporarily making the init only accessible via a static method seems to be a temporary bypass to avoid the build error https://github.com/apple/swift/issues/67823#issuecomment-1673842437 add this inside your swift model, and only instantiate the model via a static method when calling from the parent package. public static func create(value: String) -> Note { Note(value) } hopefully this is fixed in the next release.
Sep ’23