When my code tries to access a SwiftData model's relationship, my app promptly crashes with nw_socket_handle_socket_event [C1.1.1:2] Socket SO_ERROR 61
and no useful information. How do I go about debugging this?
I'm creating my modelContainer as inMemory, so I don't think this should be touching any SQLite DB:
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
.modelContainer(
for: SchemaV1.models,
inMemory: true,
isAutosaveEnabled: false,
isUndoEnabled: false)
}
}