Post

Replies

Boosts

Views

Activity

CKError - Request Permission Could Not Complete
Hi, Dose anyone know how to request permissions from the user, the code bellow should produce a popup window asking for permission from the user. But I get the error further bellow saying it "can not connect". Is there anyway to get connected to CloudKit(or check to see if CloudKit is connected)... or how do I get past this error.. I have reset the CloudKit Environment... I made a new Xcode project, and made a new CKContainer... tried different Simulators and also reset the Simulator and also down graded my xCode to see if a different version would work... but nothing changes... just the same error...over and over and over... :0( Code: CKContainer.default().requestApplicationPermission([.userDiscoverability]) {  [weak self] returnedStatus, returnedError in             DispatchQueue.main.async {                 if returnedStatus == .granted {                     self?.permissionStatus = true                     print("Granted")                 }                  if returnedStatus == .couldNotComplete {                     print("Could Not Complete")                     print("(String(describing: returnedError))")                 }                 if returnedStatus == .denied {                     print("Denied")                 }             } Debug Screen Returns the following: Is Signed In To iCloud Could Not Complete Optional(<CKError 0x6000038b11d0: "Internal Error" (1/1000); "Received a didCompleteWithError without an error but no response body where one was expected">)
3
1
1.5k
Apr ’22