9
votes

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!

1

1 Answers

17
votes

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