SwiftData Crash - After Developer Beta Update to iOS 17.0 (21A5312c)

Running on Version 15.0 beta 6 (15A5219j)

Crash on launch (replicatable with a new template iOS project with SwiftData in addition to my existing project). Error on launch looks like this:

dyld[8046]: Symbol not found: _$s9SwiftData15PersistentModelP14schemaMetadataSaySS_s10AnyKeyPathCypSgAGtGyFZTq
  Referenced from: <CFCE9A78-4C88-3DCA-AA36-643C911902C4> /private/var/containers/Bundle/Application/8F5A5864-78B5-42DD-9481-9AABC79AFCF4/TestThisNew.app/TestThisNew
  Expected in:     <8B52C2B3-931A-3736-B357-ECF87A41F3EB> /System/Library/Frameworks/SwiftData.framework/SwiftData
Message from debugger: killed

I'm seeing the same thing after my phone was updated to the same version (21A5312c). Simulators on (21A5303d) operate as expected.

This is because iOS 17 beta 6 contains a different version of the SwiftData framework in Xcode 15 beta 6. I think we need Xcode beta 7 for it to work.

I'm running into a similar issue on Xcode 15 beta 6 using both iOS beta 5 + 6:

dyld[5404]: Symbol not found: _$s9SwiftData15PersistentModelPAAE013createBackingB0QryAaBRd__lFZ
  Referenced from: <03A82B7F-BA4F-3EC4-844C-B8707BA0EC32> /private/var/containers/Bundle/Application/19E5AC5E-A8D9-45BD-8BB3-E5D022E5A94C/Resplit.app/Resplit
  Expected in:     <49E09F5C-ED41-3CA9-9F56-FEBA1FBE971D> /System/Library/Frameworks/SwiftData.framework/SwiftData

Having the same issue since Beta 5. Beta 6 also the same.

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.

SwiftData Crash - After Developer Beta Update to iOS 17.0 (21A5312c)
 
 
Q