SwiftData crashes the app on iOS Beta 6

I created a default app and included SwiftData (Xcode 15 Beta 6) - and the app crashes on launch (it worked just fine on iOS Beta 5 and it still works when I target my Mac (Designed for iPad) and my simulator (which is still Beta 5).

dyld[697]: Symbol not found: _$s9SwiftData6SchemaC12RelationshipC_10deleteRule17minimumModelCount07maximumhI012originalName7inverse12hashModifierAeA15PropertyOptionsCd_AE06DeleteF0OSiSgAPSSSgs10AnyKeyPathCSgAQtcfC Referenced from: <3C3E5688-BD66-3C22-A509-0019AE66F13C> /private/var/containers/Bundle/Application/E1FC46F3-5842-4DFD-8B32-6F263CDFC5FD/GrapeSips.app/GrapeSips Expected in: <8B52C2B3-931A-3736-B357-ECF87A41F3EB> /System/Library/Frameworks/SwiftData.framework/SwiftData

I was dealing with that since updating to Beta 6 too. Now I'm seeing dyld[654]: Symbol not found: _$s9SwiftData20DefaultModelExecutorC7contextAcA0D7ContextC_tcfC.

I have created a default SwiftData app by selecting the storage as SwiftData.

The app runs fine on iOS simulator, there is no crash.

I am using Xcode 15 Beta 6.

Do you have any framework that you have added to your project?

Can you clear DerivedData and create a new project and test using Xcode Beta 6?

According to the iOS & iPadOS 17 Beta 7 Release Notes:

SwiftData

Resolved Issues

  • Fixed in beta 7: Apps using SwiftData that are built with Xcode 15 beta 6 have known issues when running on iOS 17 beta 6. (113915428)

New builds with the new Xcode beta should not run into those issues.