I am facing the same issue, this was working perfectly fine for me in Xcode 15.0.1, I just tested my app using Xcode 15.2 Beta and I'm getting Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) on the same line where I try to create a model container ModelContainer(...) looks like a regression to me. I would open a Feedback
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: