We're using Swift Data and syncing it to iCloud. For the most part this is working. Our problem is when we delete the App, and install the latest version from TestFlight all our Swift Data Meeting tables are gone. If we create a Meeting on this instance it works, and we can display multiple meetings, but all our prior meetings are gone. Now if we just build the App in Xcode and overwrite the install, all the prior Swift Data meetings show up, in addition the above created meetings also show up. If we don't delete the App, and just install the TestFlight build over the Xcode build it also works, all the meetings show up. So it's as if there are 2 Containers, one for Development and one for Production (the TestFlight build), and they are not sync'd with each other.
CloudKit SwiftData TestFlight installs vs Xcode Builds
Just noticed the same problem, may be a sandboxing issue?
So it's as if there are 2 Containers, one for Development and one for Production (the TestFlight build), and they are not sync'd with each other.
I think that's literally true. I'm not sure yet what to do about it (I'm working through a similar issue.)