I am trying to get someone to help me set up CloudKit for the App we are making, I have added him as a team member in the App Store Connect. Can he have access to set up the CloudKit Dashboard?
Post
Replies
Boosts
Views
Activity
Hi, I am trying to build a Social Media App in SwiftUI but I am having a lot of issues, can anyone recommend a good advanced SwiftUI training course I could take online? Or recommend a Tutor who could advise me on how to complete the App?
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">)