-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Page URL
https://firebase.google.com/codelabs/firebase-auth-in-flutter-apps#3
Page source
No response
Describe the problem
Even running from the Complete directory and connecting the app to own Firebase project this example does not run.
Deploying to Android:
FirebaseException ([core/duplicate-app] A Firebase App named "[DEFAULT]" already exists)
Until this solution is applied:
https://stackoverflow.com/questions/70812697/a-firebase-app-named-default-already-exists
However, then the app does not run on other platforms.
Deploying to iOS:
Just deploys endlessly and the device shows a white screen.
Trying to build/run directly from Xcode gives various errors like "Framework 'Pods_Runner' not found" and "Linker command failed with exit code 1"
Deploying to web (Chrome):
This is the closest one to working. On first load, it displays the login screen (no logo), however no elements are clickable. After refreshing the screen, the elements can now be interacted with, however when trying to register a new account with email/password, simply "Error" is shown in subtitle. Same when trying to log in.
When trying to register or log in via "Sign in with Google", the Oauth window pops up briefly, but it is blank, then it immediately disappears, and "Error" is displayed in the subtitle.
Deploying to macOS:
Not possible due to errors below:
--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, id:00008103-0032523523REG, name:My Mac }
{ platform:macOS, arch:x86_64, id:00008103-0032523523REG, name:My Mac }
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.14, but module 'desktop_webview_auth' has a minimum deployment target of macOS 10.15: /Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/build/macos/Build/Products/Debug/desktop_webview_auth/desktop_webview_auth.framework/Modules/desktop_webview_auth.swiftmodule/arm64-apple-macos.swiftmodule
import desktop_webview_auth
^
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.14, but module 'desktop_webview_auth' has a minimum deployment target of macOS 10.15: /Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/build/macos/Build/Products/Debug/desktop_webview_auth/desktop_webview_auth.framework/Modules/desktop_webview_auth.swiftmodule/arm64-apple-macos.swiftmodule
import desktop_webview_auth
^
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.14, but module 'desktop_webview_auth' has a minimum deployment target of macOS 10.15: /Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/build/macos/Build/Products/Debug/desktop_webview_auth/desktop_webview_auth.framework/Modules/desktop_webview_auth.swiftmodule/arm64-apple-macos.swiftmodule
import desktop_webview_auth
^
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.14, but module 'desktop_webview_auth' has a minimum deployment target of macOS 10.15: /Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/build/macos/Build/Products/Debug/desktop_webview_auth/desktop_webview_auth.framework/Modules/desktop_webview_auth.swiftmodule/arm64-apple-macos.swiftmodule
import desktop_webview_auth
^
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Flutter/GeneratedPluginRegistrant.swift:8:8: error: compiling for macOS 10.14, but module 'desktop_webview_auth' has a minimum deployment target of macOS 10.15: /Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/build/macos/Build/Products/Debug/desktop_webview_auth/desktop_webview_auth.framework/Modules/desktop_webview_auth.swiftmodule/arm64-apple-macos.swiftmodule
import desktop_webview_auth
^
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 15.2.99. (in target 'AppAuth-AppAuthCore_Privacy' from project 'Pods')
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 15.2.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Core_Privacy' from project 'Pods')
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 15.2.99. (in target 'GTMSessionFetcher-GTMSessionFetcher_Full_Privacy' from project 'Pods')
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 15.2.99. (in target 'AppAuth' from project 'Pods')
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 15.2.99. (in target 'GTMSessionFetcher' from project 'Pods')
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 15.2.99. (in target 'GTMAppAuth-GTMAppAuth_Privacy' from project 'Pods')
/Users/user/Dev/flutter-codelabs/firebase-auth-flutterfire-ui/complete/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.12, but the range of supported deployment target versions is 10.13 to 15.2.99. (in target 'GTMAppAuth' from project 'Pods')
** BUILD FAILED **
Error: Build process failed
Exited (1).
Expected fix
No response
Additional context
Running on MacOS 15.3, flutter and flutterfire all updated to latest.
I would like to fix this problem.
- I will try and fix this problem on docs.flutter.dev.