Saving CloudKit Record “Not Authenticated” (9/1002)“ ”This request requires an authenticated account“”

后端 未结 6 878
星月不相逢
星月不相逢 2021-02-12 12:33

Saving a CKRecord in the simulator gives me the following error:

[publicDatabase saveRecord:cloudRouteEntity completionHandler:^(CKRecord *record, NS         


        
6条回答
  •  广开言路
    2021-02-12 13:20

    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.

提交回复
热议问题