Saving a CKRecord
in the simulator gives me the following error:
[publicDatabase saveRecord:cloudRouteEntity completionHandler:^(CKRecord *record, NS
I got the same problem, which I was able to resolve by logging in to my iCloud account in the simulator (Settings > iCloud).
As of the latest Xcode, you can log in to your iCloud account in the simulator, and everything should work.
If you are having trouble logging in, try to go to iCloud.com on a desktop and log in there first. Once that is set up properly, then try in the simulator.