Sign-Up Not Completed

Working with apple id login, configured all required staff.

Enable sign in with Apple in developer account.

Code Block
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 its shows UI error, but delegate not called.


Sign-Up Not Completed
 
 
Q