CloudKit does not work with Simulator

Recently, I was not able to get iOS Simulator to work with the entries that I made in the CloudKit cloud panel. Interestingly, it works with a real device, but not with a simulator. CloudKit Dashboard says it's a development environment. When I run my application using a simulator, I get one of these two errors:

Domain Error = NSCocoaErrorDomain Code = 4097 "Operation could not be completed. (Cocoa error 4097.)" (connection to a service named com.apple.cloudd) UserInfo = 0x7a276d40 {NSDebugDescription = connection to a service named com.apple.cloudd}

or i get

Error: CKError 0x7b658890: "Limited rate" (7/2008); "This operation is limited in speed"; Try again in 3.0 seconds.

Any idea on what causes this problem?

Thanks!

+8
ios objective-c ios8 ios-simulator cloudkit
source share
1 answer

You need to enter iCloud on your simulator. Go to iCloud settings and enter your iCloud credentials.

+13
source share

All Articles