It's crazy how chaotic Apple development has become over the years. The app contains a signed provisioning profile which clearly says: YES, this app is allowed to access CloudKit for this container ID. And yet the sandbox applies its own two-cent heuristic, ignoring dynamic loading, which existed long before app sandboxing was even a thing.
I lost hours of work to something that looks like nothing. In my case I wasn't even getting the "deny" logs, and I found this thread by chance.
It affects ANY Core Data+CloudKit or SwiftData app in the App Store, and yes, Apple called it an "edge case" and never fixed it. The bug has been there since at least macOS 26.5. We're now on 27.2, and it's still here.
Topic:
App & System Services
SubTopic:
iCloud
Tags: