Closed nilsreichardt closed 8 months ago
Does this occur on the latest dev release? It's not an issue on the latest. Hopefully get a release out soon enough.
I upgraded the CLI last night and still got this issue. The CLI is looking at the in PRODUCT_BUNDLE_IDENTIFIER
macos/Runner/Configs/AppInfo.xcconfig
which somehow always gets set to the test build identifier.
@nilsreichardt Have you tried with the latest dev release? It is a lot more stable -
dart pub global activate flutterfire_cli 0.3.0-dev.18 --overwrite
@russellwheatley Yes, but still the issue persists
I have same issue.
I remove target RunnerTests and flutterfire configure
again :(
Bug has been confirmed and I've made a PR with a fix.
so how can I fix it? I deleted the issued (RunnerTests) app ios app from firebase console. Now I'm getting the following macod registration error when running fluterfire configure:
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command.
COMMAND: firebase apps:create ios my-app (macos) --bundle-id=com.myapp.RunnerTests --json --project=my-project
ERROR: Failed to create iOS app for project my-project. See firebase-debug.log for more info
```.
so how can I fix it? I deleted the issued (RunnerTests) app ios app from firebase console. Now I'm getting the following macod registration error when running fluterfire configure:
FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command. COMMAND: firebase apps:create ios my-app (macos) --bundle-id=com.myapp.RunnerTests --json --project=my-project ERROR: Failed to create iOS app for project my-project. See firebase-debug.log for more info ```.
Hi @almogtovim,
I had this issue, and needed to permanently delete all apps in the Firebase Console and remove any current configuration files in my flutter project to make this go away.
I also believe this bug still exists, as I too was seeing flutter fire use the wrong bundle id. What worked for me was using the below to specify a bundle id for the macos app:
flutterfire configure --macos-bundle-id=com.<your_domain>.<your_appname>.macos --project=your_project_id
macos
in the above is a unique identifier (it can be anything) so that it does not conflict with your ios bundle id.
This is still an issue for me. Looking into it a bit, doing a regex.firstMatch seems rather unstable when the xcode project file has multiple build targets for debug/release/profile in both the runner and runnertest.
EDIT: For users, the hacky fix is to go into the project's ios/Runner.xcodeproj/project.pbxproj file and manually move the block with the desired project bundle identifier to the top of the file.
Is there an existing issue for this?
CLI Version
0.2.7
Firebase Tools version
12.3.1
Flutter Doctor Output
Description
My macOS app has the bundle identifier
com.example.exampleFlutterfireBugMacos
. However, when I runflutterfire configure
, the FlutterFire CLI uses thecom.example.exampleFlutterfireBugMacos.RunnerTests
bundle identifier of theRunnerTests
target. I think theRunnerTests
target will be added for every macOS app since the last stable Flutter version.Steps to reproduce
flutter create your_name
flutterfire configure
Expected behavior
The CLI should use the
com.example.exampleFlutterfireBugMacos
bundle identifierScreenshots
Additional context and comments
No response