How to: solve CloudKit database permission issue (2021)
Solving unexpected issue on iCloud Database…
In September, I started two new iOS development projects using SwiftUI + CoreData + CloudKit. Then, I noticed the Schema (Indexes, Record Types & Security Roles) on one of the projects was not synchronized correctly to iCloud. After 3 months of discussion with Apple Developer Technical Support (DTS) and submitted feedback (FB9702306) via Feedback assistant, the database’s issue still not get resolved until today.
Environment
- Xcode 13–13.1
- MacBook Pro (macOS 12–12.1)
Here are some of the Error Logs
I got:
“Partial Failure” (2/1011); “Failed to modify some record zones”
partial errors: {
com.apple.coredata.cloudkit.zone:__defaultOwner__ =…
[error] error: CoreData+CloudKit: -[NSCloudKitMirroringDelegate _recoverFromPartialError:forStore:inMonitor:]_block_invoke
Skipping migration for … because it already has a column named…