See comments below
Post
Replies
Boosts
Views
Activity
Are you using real devices or simulators? There has (always?) been a problem with the simulators that required the app to be minimised and refocused before the iCloud data refresh would be triggered. However I've noticed with the Xcode 13 Beta the simulator now needs the application to close and be restarted before the data would be synchronised... I'm pretty sure this is a pre-release bug.
It's not working on devices either for me. The schema updates as expected, but records don't appear to land in the database, despite reporting a successful change.
I'm still keen to see the actually issue commented on from the Engineering team... this appears to be bothering a large group of developers who are keen to leverage the sharing updates for NSPersistentCloudKitContainer... but I've got a couple still open so hopefully they'll get to those.
I've submitted several feedback items, but I don't think any of them have been seen as yet... I suspect they do know but have been swamped by reports.
Thanks SpiralStack - In Beta 3 I've been getting provisioning errors when I try to connect to an iCloud container - have you seen that at all?
I've been trying but Beta 3 is failing with provisioning errors for me when I try to connect to a container...
Legend! Thanks so much!
Have you managed to get a CloudKit app working? Now that the profile works again, I'm not getting data sent through to the CloudKit conceal nor to other simulator instances... lots of "Failed to sync user" messages in the console...
Same for me - Beta 4 Monterey and Xcode. Just using boiler plate code, so I can't imagine there's anything wrong on the code side here.
Immediately on release everything seemed to work fine - I've only had this crop up today... strange
This didn't fix it for me...
Beta 5 has not resolved this for me (Just running a boiler place new project - can someone else please do a new project boiler plate build and confirm that they are seeing the same?)
Just running it again, the auth errors have stopped, but the data is different in the two simulators (data created on each device locally appears to be persistent on the respective devices, but there is no synchronisation)
I am getting extremely variable results. Just now I have two simulators running the same boilerplate app, one simulator has 2 items, 1 simulator has 1 item, and now CloudKit dashboard is showing all three items... Just bizarre!