Many thanks for your replies🙏
Just in case, We were able to avoid the crash with the following code.
I hope that this information is helpful to you🙏
@available(iOS 13.0, *)
private func signInWithAppleOnOS13Later() {
let provider = ASAuthorizationAppleIDProvider()
let appleIDRequest: ASAuthorizationAppleIDRequest? = provider.createRequest()
guard let req = appleIDRequest else {
/* Rarely come here !!!!!! */
return
}
let scopes: [ASAuthorization.Scope] = [.fullName, .email]
req.requestedScopes = scopes
let controller = ASAuthorizationController(authorizationRequests: [req])
controller.presentationContextProvider = self
controller.delegate = self
controller.performRequests()
}