cannot open file

Running my app with SwiftData in iOS 17 beta on iPhone leads to error:

cannot open file at line 46973 of [554764a6e7] os_unix.c:46973: (2) open(/private/var/mobile/Containers/Data/Application/ED4308D5-058B-41BC-A617-A46F9754E3EC/Library/Application Support/default.store) - No such file or directory API call with unopened database connection pointer misuse at line 179760 of [554764a6e7]

It seems the database file has not been created yet, since it's the first time running the app with SwiftData.

There is an exception at the get method of a model property: Thread 1: EXC_BREAKPOINT (code=1, subcode=0x24afae96c)

Same here. It doesn’t work on iOS, but the same code is running just well on iPadOS 🤷

iPad shows the same error for me.

It’s still not working for me in Xcode 15 beta 2, but the error messages are gone.

Did you happen to figure this out? I'm having the same issue.

cannot open file
 
 
Q