App crashes when Auth0.Swift v2.1.0 or later

Problem Statement

When using Auth0.Swift v2.1.0 or later, the error “Thread 1: EXC_BAD_ACCESS (code=1, address=0x6d6df9320)” occurs for the AppDelegate class at startup from custom url schemes, and the app crashes.

Auth0.swift/ at master · auth0/Auth0.swift · GitHub had the following additional mention in the AppDelegate of the App in Auth0.swift.

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
return WebAuthentication.resume(with: url)

We tried changing the return value of the startup process from AppDelegete’s custom url schemes to WebAuthentication.resume with: url, but the situation has not improved.


It seems there was a bug in older swift SDK versions. At least since swift SDK version 2.3.2 it should not be happening.