无法 运行 firebase 连接后的 flutter 应用程序

cannot run the flutter app after firebase connection

在 xcode 上将 GoogleService-Info.plist 文件添加到 Runner 后,出现此错误。
(我在 M1 芯片 MacBook Air 上工作)

我卸载了每个 cocoapods 版本,并使用 ARM 版本 (sudo arch -x86_64 gem install cocoapods) 重新安装。 但是什么都没有改变。

编辑: 刚刚在 ios 文件夹中尝试了 pod install 方法,结果就是这样;

Analyzing dependencies
cloud_firestore: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
firebase_auth: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
firebase_core: Using Firebase SDK version '8.11.0' defined in 'firebase_core'
[!] CocoaPods could not find compatible versions for pod "cloud_firestore":
  In Podfile:
    cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)

Specs satisfying the `cloud_firestore (from `.symlinks/plugins/cloud_firestore/ios`)` dependency were found, but they required a higher minimum deployment target.

[!] Automatically assigning platform `iOS` with version `9.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

您需要先通过编写“pub upgrade”命令来升级您的包 在它尝试按照以下设置更新 podfile 之后:

  1. 在终端内移动到 ios 文件夹“cd ios
  2. 输入“pod 更新”命令
  3. 如果上述点不起作用尝试“pod install”命令

最终编辑:感谢this issue我解决了它。问题是 /ios 文件夹中没有 Podfile.lock