Post

Replies

Boosts

Views

Activity

Reply to Got crash:`EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000` on `ASAuthorizationAppleIDRequest#requestedScopes = [.fullName, .email]`
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()   }
Aug ’20