How to: solve CloudKit database permission issue (2021)

Solving unexpected issue on iCloud Database…

MING
Mac O’Clock

--

Screenshot from Apple Developer Website
Project Config.

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…

--

--

Mac O’Clock
Mac O’Clock

Published in Mac O’Clock

The best stories for Apple owners and enthusiasts

MING
MING

Written by MING

 WWDC Award Winner | Project Manager, previous Senior Software Engineer, & UI Designer | Contact: hi@1998.media | Website: 1998.media