iCloud sync issues using NSPersistentCloudKitContainer for Core Data + CloudKit sync.

I have tried to set up iCloud sync. Despite fully isolating and resetting my development environment, the app fails with:

NSCocoaErrorDomain Code=134060 (PersistentStoreIncompatibleVersionHashError)

What I’ve done:

  • Created a brand new CloudKit container
  • Created a new bundle ID and app target
  • Renamed the Core Data model file itself
  • Set a new model version
  • Used a new .sqlite store path
  • Created a new .entitlements file with the correct container ID
  • Verified that the CloudKit dashboard shows no records
  • Deleted and reinstalled the app on a real device
  • Also tested with “Automatically manage signing” and without

Despite this, the error persists. I am very inexperienced and am not sure what my next step is to even attempt to fix this. Any guidance is apprecitated.

iCloud sync issues using NSPersistentCloudKitContainer for Core Data + CloudKit sync.
 
 
Q