Even more late but for anyone else experiencing same, this is exactly what my issue was. Apple had (mistakenly) approved a version of my App and for weeks I was clueless that it wasn't working in production until I submitted a new version which they (correctly) rejected. Everything was fine while testing through xcode over various simulators and real devices so it was WTF for awhile until I stumbled upon this thread. Following the steps in [https://developer.apple.com/documentation/cloudkit/deploying-an-icloud-container-s-schema] hopefully has fixed the issue.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: