auth0-samples / auth0-flutter-samples

Auth0 Integration Samples for Flutter Applications
Apache License 2.0
26 stars 18 forks source link

I'm getting a nil error when building for iOS with Flutter. #56

Closed kno3a87 closed 3 weeks ago

kno3a87 commented 1 month ago

Checklist

Description

When I tried to run a Flutter sample on iOS, I got the following error in Xcode:

Auth0/NSURL+Auth0.swift:9: Fatal error: Unexpectedly found nil while unwrapping an Optional value

I have already set up the Allowed Callback URLs and Apple Team ID in the Auth0 Settings. I have also added my associated domain in Xcode. Do you know what I should do to resolve this?

Reproduction

  1. Download the Flutter sample
  2. Change to the bundle ID obtained from Apple Developer and register it in Allowed Callback URLs, etc.
  3. Prepare the .env file
  4. Register the associated domain
  5. Execute flutter run

Additional context

The Okta sample login is successful, and 'It Works!' is displayed.

Platform

iOS

Platform version(s)

Flutter 3.19.6/iOS 18.0

kno3a87 commented 3 weeks ago

Sorry, the format of my domain was incorrect. It's fixed now, so I'll close this🙇🏻‍♀️