iOS 26.1 and SwiftData: Can't reuse store?

I have one target building and filling the SwiftData store and then copying the same store file to another target of the app to use the contents.

That worked fine from iOS 17 to iOS 26.0.1 Under iOS 26.1 I am getting following error: CoreData: error:

This store file was previously used on a build with Persistence-1522 but is now running on a build with Persistence-1518.
file:///Users/xxx/Library/Developer/CoreSimulator/Devices/0FE92EA2-57FA-4A5E-ABD0-DAB4DABC3E02/data/Containers/Data/Application/B44D3256-9B09-4A60-94E2-C5F11A6519E7/Documents/default.store

What does it mean and how to get back to working app under iOS 26.1?

The message seems to indicate a framework version mismatching, which likely happens when you have a store created with the higher version framework (Persistence-1522) and try to access it with the lower version (Persistence-1518).

The store file path has "CoreSimulator," and so I guess if it is that the version of your simulator doesn't match. Does the issue happen when you run your app on an iOS 26.1 device? Also, does the version of your simulator match your Xcode version? If not, you can try to remove the simulator and re-install a new one using the UI at Xcode > Window > Devices and Simulators.

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.

iOS 26.1 and SwiftData: Can't reuse store?
 
 
Q