Sign in with Apple: Error: Sign-Up Not Completed

988 Views Asked by At

Working with apple id login, configured all required staff.

Enable sign in with Apple in developer account.

Code:

import UIKit
import AuthenticationServices

class ViewController: UIViewController, ASAuthorizationControllerDelegate {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        let button = ASAuthorizationAppleIDButton()
        button.addTarget(self, action: #selector(appleIDButtonPressed), for: .touchUpInside)
        button.center = view.center
        view.addSubview(button)
    }
    
    @objc private func appleIDButtonPressed() {
        let appleIDProvider = ASAuthorizationAppleIDProvider()
        let request = appleIDProvider.createRequest()
        request.requestedScopes = [.fullName, .email]
        let authorizationController = ASAuthorizationController(authorizationRequests: [request])
        authorizationController.delegate = self
        authorizationController.performRequests()
    }
    
    func authorizationController(controller: ASAuthorizationController, didCompleteWithError error: Error) {
        
    }
    
    func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
        
    }
}

When tap on login button and verify face show UI error, but delegate not called.

image of UI error

1

There are 1 best solutions below

1
On BEST ANSWER

It was an issue Apple-side, I tried everything yesterday it didn't work and now it's working today. :)