为什么 flutterfire 配置没有替换我的旧 GoogleService-Info.plist 文件?

问题描述 投票:0回答:1

当我第一次在我的 flutter 应用程序中运行

flutterfire configure
时,生成了 4 个文件。
firebase_options.dart
,
google-services.json
,
firebase_app_id_file.json
GoogleServices-Info.plist
.

当我再次尝试使用

flutterfire configure
将我的应用程序链接到我的应用程序的开发版本时(在 this thread 之后),我只被提示更改 3 个这样的文件:

google-services.json 文件已经存在,但用于不同的 Firebase 项目 (betacentre-dev)。您想用 Firebase 项目 thinking-digit-343408 替换它吗? · 是的

在为所有这些选择

yes
之后,只有GoogleService-Info.plist没有变化,但它显然对firebase的工作至关重要(因为
flutterfire configure
首先添加它,并且在本指南中引用还有本指南,它包含我的 firebase 项目的标识符,我的应用程序仍然与原始项目通信)。

这是一个错误吗?为什么会这样?

ios flutter firebase plist
1个回答
0
投票

我认为这是一个错误。我最终创建了一个脚本来调用

rm ios/{your_target_name}/GoogleService-Info.plist
,然后使用一些预设选项调用
flutterfire configure

© www.soinside.com 2019 - 2024. All rights reserved.