Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]: flutterfire configure does not generate GoogleService-Info.plist #336

Open
1 task done
maRci002 opened this issue Aug 27, 2024 · 6 comments
Open
1 task done
Labels
bug Something isn't working keep open Needs Attention OP created or responded to issue and it needs attention. question Further information is requested

Comments

@maRci002
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

CLI Version

1.0.0

Firebase Tools version

13.15.4

Flutter Doctor Output

[√] Flutter (Channel stable, 3.24.1, on Microsoft Windows [Version 10.0.19045.4780], locale hu-HU)
• Flutter version 3.24.1 on channel stable at C:\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5874a72aa4 (7 days ago), 2024-08-20 16:46:00 -0500
• Engine revision c9b9d5780d
• Dart version 3.5.1
• DevTools version 2.37.2

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\maRci002\AppData\Local\Android\Sdk
• Platform android-34, build-tools 34.0.0
• ANDROID_HOME = C:\Users\maRci002\AppData\Local\Android\Sdk
• ANDROID_SDK_ROOT = C:\Users\maRci002\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.7.0)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.7.34003.232
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] VS Code (version 1.92.2)
• VS Code at C:\Users\maRci002\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.4780]
• Chrome (web) • chrome • web-javascript • Google Chrome 127.0.6533.122
• Edge (web) • edge • web-javascript • Microsoft Edge 128.0.2739.42

[√] Network resources
• All expected network resources are available.

• No issues found!

Description

GoogleService-Info.plist file isn't generated

Steps to reproduce

Running this command neither generates the GoogleService-Info.plist file nor throws an error.

flutterfire configure ^
--project xxx-app-a128a128 ^
--out lib/app/firebase_options/prod/firebase_options.dart ^
-i com.example.xxxApp ^
--ios-out ios/firebase_config/prod ^
--platforms ios

Expected behavior

GoogleService-Info.plist file is generated

Screenshots

No response

Additional context and comments

No response

@maRci002 maRci002 added bug Something isn't working triage labels Aug 27, 2024
@russellwheatley
Copy link
Member

@maRci002 - Have you tried the latest dev version?

dart pub global activate flutterfire_cli 1.0.1-dev.4

@russellwheatley russellwheatley added question Further information is requested and removed triage labels Aug 28, 2024
@SelaseKay SelaseKay added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Sep 19, 2024
@jmguazzo
Copy link

Not OP but same issue on Windows and MacOS.

I tried with the version 1.0.0 and the latest dev version with the same result for both versions.

What I tested :

  • Windows : flutterfire configure -p {myproject} --out lib/flavor/dev/firebase_options.dart -i {mybundleId} --platforms ios --ios-out="ios/Runner/Config/GoogleService-info.plist".
    No file generated.
    The output contains no information about the GoogleService-info.plist.

  • Windows : flutterfire configure -p {myproject} --out lib/flavor/dev/firebase_options.dart -i {mybundleId} --platforms="ios" --ios-out="d:\{projectfolder}\ios\Runner\Config\GoogleService-info.plist"
    No file generated.
    The output contains no information about the GoogleService-info.plist.

  • MacOS : flutterfire configure -p {myproject} --out lib/flavor/dev/firebase_options.dart -i {mybundleid} --platforms ios --ios-out="ios/Runner/Config/GoogleService-info.plist" -y --ios-build-config=Debug
    No file generated.
    But the cli asks ? Enter a path for your ios "GoogleService-Info.plist" ("ios-out" flag.) relative to the root of your Flutter project. Example input: ios/dev and waits for user input.
    This is the same behaviour as running the command without the --ios-out

Flutter doctor for Windows & MacOS :

Windows [√] Flutter (Channel stable, 3.24.3, on Microsoft Windows [version 10.0.22631.4169], locale fr-CA) • Flutter version 3.24.3 on channel stable at C:\Users\jmg\fvm\versions\3.22.3 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 2663184aa7 (12 days ago), 2024-09-11 16:27:48 -0500 • Engine revision 36335019a8 • Dart version 3.5.3 • DevTools version 2.37.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at C:\Users\jmg\AppData\Local\Android\sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: C:\Program Files\Android\Android Studio1\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.7.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional
• Visual Studio Professional 2022 version 17.7.34031.279
• Windows 10 SDK version 10.0.22621.0

[√] Android Studio (version 2024.1)
• Android Studio at C:\Program Files\Android\Android Studio1
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] VS Code, 64-bit edition (version 1.93.1)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension version 3.96.0

[√] Connected device (4 available)
• sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 14 (API 34) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [version 10.0.22631.4169]
• Chrome (web) • chrome • web-javascript • Google Chrome 128.0.6613.120
• Edge (web) • edge • web-javascript • Microsoft Edge 129.0.2792.52

[√] Network resources
• All expected network resources are available.

MacOS

[✓] Flutter (Channel stable, 3.24.3, on macOS 14.7 23H124 darwin-arm64, locale fr-CA)
• Flutter version 3.24.3 on channel stable at /Users/jmguazzo/dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 2663184aa7 (12 days ago), 2024-09-11 16:27:48 -0500
• Engine revision 36335019a8
• Dart version 3.5.3
• DevTools version 2.37.3

[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15F31d
• CocoaPods version 1.15.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
not find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] VS Code (version 1.93.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.96.0

[✓] Connected device (4 available)
• iPhone 15 Pro (mobile) • 3D098364-15AD-4424-BDB4-6429267093F7 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.7 23H124 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.7 23H124 darwin-arm64

[✓] Network resources
• All expected network resources are available.

or found issues in 3 categories.

Copy link

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

@github-actions github-actions bot added the Stale label Oct 21, 2024
@maRci002
Copy link
Author

@maRci002 - Have you tried the latest dev version?

dart pub global activate flutterfire_cli 1.0.1-dev.4

@russellwheatley neither --ios-out ios/firebase_config/dev neither --ios-out ios/firebase_config/dev/GoogleService-Info.plist worked for me. The firebase_app_id_file.json also stopped generating. However firebase.json is generated at the root of the project and to be honest idk what is that file.

@github-actions github-actions bot added Needs Attention OP created or responded to issue and it needs attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. Stale labels Oct 22, 2024
@rikkertpm
Copy link

Same story here. All files are created or modified. Except for IOS... 😢

Copy link

Hello 👋, to help manage issues we automatically close stale issues.

This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?

This issue will be closed in 15 days if no further activity occurs.

Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working keep open Needs Attention OP created or responded to issue and it needs attention. question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants