【问题标题】:Module 'cloud_firestore' not found未找到模块“cloud_firestore”
【发布时间】:2021-06-29 18:58:48
【问题描述】:

我正在编写一个基于 Flutter 的应用程序。我使用 Firebase Firestore 作为数据库。我在 pubspec.yaml 中添加了 cloud_firestore 作为依赖项。当我为 android 构建 apk 时,它工作得非常好,但是在 Xcode 中,当我尝试为 iOS 构建应用程序时,我有一个错误(附加图片)'Module cloud_firestore' not found,所有其他依赖项都在工作。我已经尝试了所有方法:pod 安装、pod 更新、删除 Podfile、删除 Podfile.lock,我什至创建了一个空白应用程序并添加了 cloud_firestore 作为依赖项,但它仍然会发生。

【问题讨论】:

  • 你可以在这里添加你的 podfile 吗?

标签: firebase flutter google-cloud-firestore


【解决方案1】:
  • inxcode,清理构建文件夹。

  • 在终端,flutter clean

  • flutter pub get 在终端中。

不要碰豆荚,构建你的文件。

【讨论】:

  • 您好 Huthaifa,感谢您的回答。我尝试了您的建议和其他方法,但无法解决。您还有其他修复建议吗?谢谢
猜你喜欢
  • 2020-10-06
  • 2021-12-03
  • 2021-01-08
  • 2021-09-26
  • 2021-01-29
  • 2020-10-02
  • 2018-04-15
  • 2020-09-28
  • 2019-09-11
相关资源
最近更新 更多