I have the following code in an Xcode project for an iOS app that is supposed to request from the user permission to allow CloudKit to give my app the user’s identifiable information like name and the email address of the iCloud account.
@IBAction func actionGo(_ sender: UIBarButtonItem) {
CKContainer.default().requestApplicationPermission(.userDiscoverability) {
(status, error) in
print(error!)
}
I get the following error as printed to the debug screen by the print statement in my code:
<CKError 0x15e568b0: "Service Unavailable" (6/2022); "Request failed with http status code 503"; Retry after 30.0 seconds>
I have been getting this error over the past week. It’s not likely that it’s a service outage at Apple’s CloudKit servers. I’ve enabled CloudKit in my Xcode project along with a default Container. None of the other questions on Stackoverflow on this topic answers my question.
Anyone have any ideas what the problem is? Is it only a matter of a setting I didn’t set in CloudKit or Xcode?