Ziqiao, thank you so much for this!
I can confirm that removing the migrations makes it work.
It seems I don't even need to create 2 containers, just by removing the migrationPlan: parameter SwiftData is able to migrate the app model in production to the CloudKit compatible one.
I will try to reproduce on the new betas later today. Thanks again and happy wwdc24!
Best,
Matteo
Topic:
App & System Services
SubTopic:
iCloud & Data
Tags: