After a recent iOS update, my app is not synching between devices. I'm not seeing or getting any errors. CLoudKit Logs show activity, but it's not happening realtime. Even if I close and reopen the app, it won't sync between devices. It almost looks like it only has local storage now and CloudKit is not working on it anymore.
STEPS TO REPRODUCE Use app on two devices with the same Apple ID. Create a user and one device and it won't show up on the other device. Vice Versa.
What CloudKit API are you using? If you are using NSPersistentCloudKitContainer
, I'd suggest that you start with the following technotes:
-
TN3163: Understanding the synchronization of NSPersistentCloudKitContainer
-
TN3164: Debugging the synchronization of NSPersistentCloudKitContainer
If you are using the CloudKit framework, start with:
The general methodology to debug a CloudKit synchronization issue is to capture and analyze a sysdiagnose, and try to find relevant CloudKit errors from there. If you did find an error and need further discussion, please post the detailed error message here for folks to take a look.
In any case, if you believe that CloudKit should be improved in some way, please feel free to provide actionable feedback for the CloudKit folks to consider.
Best,
——
Ziqiao Chen
Worldwide Developer Relations.