Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CloudKit does not work with Simulator

Recently I've been having trouble getting the iOS Simulator to work with the records I've made in the CloudKit Dashboard. The interesting thing is that it works with a real device, but not with the simulator. CloudKit Dashboard says that it is a development environment. When I run my app with the simulator I get one of these two errors:

Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be completed. (Cocoa error 4097.)" (connection to service named com.apple.cloudd) UserInfo=0x7a276d40 {NSDebugDescription=connection to service named com.apple.cloudd}

or I get

Error : CKError 0x7b658890: "Request Rate Limited" (7/2008); "This operation has been rate limited"; Retry after 3.0 seconds

Any idea of what is causing this problem?

Thanks!

like image 318
Jaun7707 Avatar asked Oct 07 '14 16:10

Jaun7707


1 Answers

You have to sign into iCloud on your simulator. Go to settings, iCloud, and enter your iCloud credentials.

like image 86
Nancy Avatar answered Oct 23 '22 07:10

Nancy