在IOS上抖动:致命错误:找不到模块'cloud_firestore' [英] Flutter on IOS: fatal error: module 'cloud_firestore' not found
问题描述
在github上长时间搜索并查找类似错误后,没有提出的解决方案可以帮助我解决该错误.
After searching long hours on github and stack for similar errors, none of the proposed solutions helped me to resolve this error.
我尝试了很多事情(有点混乱):
I tried quite a few things (a bit out of order):
- 删除IOS衍生数据
- 更改Firestore软件包的版本
- 干净整洁
- rm -Rf ios/Pods
- rm -Rf ios/.symlinks
- rm -Rf ios/Flutter/Flutter.framework
- rm -Rf ios/Flutter/Flutter.podspec
- rm -rf ios/Podfile ios/Podfile.lock ios/Pods ios/Runner.xcworkspace
- pod初始化,安装和更新
- 取消注释平台:ios,podfile中的"9.0"(可能未链接到此问题)
这是错误:
** BUILD FAILED **
Xcode's output:
↳
/Users/flo/Mobile/we_ll_see/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module
'cloud_firestore' not found
@import cloud_firestore;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
需要一些帮助人员
推荐答案
如果您使用的是Android Studio,则在手动创建Podfile时可能会发生错误.Flutter仅使用pubspec.yaml文件运行.您不必自己设置Podfile.如果您遵循firestore主页上的安装指南,则在使用Xcode添加GoogleService-Info.plist文件后,只需跳过所有内容即可.
If you are using Android Studio the error might occur if you are creating the Podfile manually. Flutter runs using just the pubspec.yaml file. You don't have to set up the Podfile by yourself. If you follow the installation guideline on the firestore homepage just skip everything after adding GoogleService-Info.plist file using Xcode.
这篇关于在IOS上抖动:致命错误:找不到模块'cloud_firestore'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!