Post

Replies

Boosts

Views

Activity

Reply to Using SwiftData with a local and CloudKit backed configuration at the same time
Hi, Thank you very much, I've pushed a minimal project which fails to GitHub: https://github.com/thomasleese/swiftdata-local-and-remote-sample If you run it, you should find the following error: SwiftData/ModelContext.swift:3699: Fatal error: Failed to identify a store that can hold instances of SwiftData._KKMDBackingData<SwiftDataLocalRemoteSample.LocalModel> from ["8B7D97A6-4C92-49AD-9C78-17D04917B135": SwiftData.DefaultStore] I haven't tried yet with two separate model containers, although I think this will be tricky because a lot of the views requires a combination of models from both stores.
Oct ’25