Flutterfire won't configure - flutter

I am trying to create a firebase project. But when I try to create one using flutterfire, this is what happens:
✔ Enter a project id for your new Firebase project (e.g. my-cool-project) · fluttercourse-yung
i New Firebase project fluttercourse-yung created successfully.
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase projects:create fluttercourse-yung --json
ERROR: Failed to create project. See firebase-debug.log for more info.

Enter your project name like this
my-project-001
"-" is important

Related

Please how can i fix this problem Which macos bundle id do you want to use for this configuration, e.g. 'com.example.app'? ·

please how can i fix this problem
Which macos bundle id do you want to use for this configuration, e.g. 'com.example.app'? ·
i have to write the this my self
'com.example.homeapp'
but after that it will just write me these code
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase apps:create ios home_app (macos) --bundle-id='com.example.homeapp' --json --project=homeapp-f02b4
ERROR: Failed to create iOS app for project homeapp-f02b4. See firebase-debug.log for more info.

Flutter Web and multiple deployment error

I am trying to set up a production/development of a Flutter web app for Firebase. I am able to deploy to the first one I configured (production) but not to the second (development). I am getting this error:
=== Deploying to 'my-app-dev'...
i deploying hosting i hosting[my-app-dev]: beginning deploy... i
hosting[my-app-dev]: found 27 files in build/web ⠋ hosting: uploading
new files [3/21] (14%) Error: Task
1c5e4be41a8a2901d8c9ae4edb5c2bd26c5c4d0564d732a3ce2bef7c6c27bcb0
failed: retries exhausted after 6 attempts, with error: The "path"
argument must be of type string. Received undefined ⠸ hosting:
uploading new files [4/21] (19%)
I am running the following commands:
firebase use my-app-dev
flutterfire configure --project=my-app-dev
flutter build web
firebase deploy
Note: if I use my-app-prod instead it works perfectly.
What am I doing wrong?
I faced the same problem and I solved it with the next two steps:
remove the .firebase folder from the root folder of your project
try to deploy your project again with firebase deploy

COMMAND: firebase apps:create android yourPackageName (android) --package-name=yourPackageName --json --project=yourPackageName

I was connecting my app with flutter, using FirebaeCli but when i choose IOS, ANDROID, WEB it doesn't work, it shows the error below but when i choose IOS and Web as platforms it works so the solution is below
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase apps:create android yourPackageName (android) --package-name=yourPackageName --json --project=yourPackageName ###
If ever you are facing this Error when using Firebase CLI
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase apps:create android yourPackageName (android) --package-name=yourPackageName --json --project=yourPackageName ###
This error because of the package name, you should put 2 names seperated by .

Firebase App Distribution doesn't work with Codemagic

I've setup Firebase App Distribution for my Flutter Project and it works perfectly local. But if I try to run it on Codemagic I get teh following error:
Error: failed to fetch app information. HTTP Error: 403, Firebase App Distribution API has not been used in project XXX before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/firebaseappdistribution.googleapis.com/overview?project=XXX then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
The XXX are placeholders for a project ID. But I have no Project with that I. If I open the url I get a message that I'm not justified.
Here is my fastlane command:
lane :deploy_dev_firebase do
firebase_app_distribution(
app: "***330f",
testers: "***#gmail.com",
release_notes: "release",
firebase_cli_path: "/usr/local/bin/firebase",
apk_path: "../build/app/outputs/apk/dev/release/app-dev-release.apk"
)
end
And my codemagic Post-build script:
#!/bin/bash
gem install bundler
cd android
bundle install
bundle exec fastlane deploy_dev_firebase

Why do i get this error message when trying to add a new framework using carthage?

I want to add a FrameWork to this app I'm working on. It converts latitude and longitude coordinates to UTM coordinates.
I added this to the cartfile:
github "peterringset/UTMConversion" ~> 1.1
But when i run this code in the terminal to clone the framework:
carthage update --platform iOS
I get this error message:
A shell task (/usr/bin/env git clone --bare --quiet https://github.com/peterringset/UTMConversion.git /Users/Fallet/Library/Caches/org.carthage.CarthageKit/dependencies/UTMConversion) failed with exit code 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
I've used other external frameworks like this, and it used to work just fine.. Any idea how I can fix this?
The problem occurs due to a change in username by the publisher of his GitHub account. If you notice the link to the repository is https://github.com/wtw-software/UTMConversion while the Carthage reference is "peterringset/UTMConversion". I was able to solve it by changing the Carthage reference to "wtw-software/UTMConversion". But then you will get this error if you are on Swift 3 or below and Xcode 8 or below.
Task failed with exit code 65.....This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details
So I digged into the logs and found this:
Check dependencies
“Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
** BUILD FAILED **
I googled around this error and it looks like the project is developed with Swift 4 and with Xcode 9.