Xcode构建失败,严重错误:找不到模块'firebase_auth'@import firebase_auth; [英] Xcode Build failed,fatal error: module 'firebase_auth' not found @import firebase_auth;
本文介绍了Xcode构建失败,严重错误:找不到模块'firebase_auth'@import firebase_auth;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.4, on Mac OS X 10.15.5 19F101, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
[✓] Android Studio (version 4.0)
[✓] VS Code (version 1.46.1)
[!] Connected device
! No devices available
! Doctor found issues in 1 category.
\\\错误消息
** BUILD FAILED **
Xcode's output:
↳
/Users/Razi/Desktop/projects/Sayy/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'firebase_auth' not found
@import firebase_auth;
~~~~~~~^~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
我尝试删除Podfile/Podlock并运行 pod init
/ pod install
没有成功.还查看了ios文件夹的GitHub存储库.为什么找不到firebase_auth?
I have tried deleting Podfile/Podlock and running pod init
/ pod install
without success. Also have reviewed the GitHub repo for ios folder. Why is firebase_auth not found?
推荐答案
更新:通过执行以下操作,我终于找到了解决方法:
Update: I was able to eventually find a workaround by executing the following:
- 运行
Flutter Clean
(在项目的ios文件夹中) - 同时删除
Podlock
和&Pod文件夹
- 运行
pod init
,然后运行pod install
- Running
Flutter Clean
(in ios folder of project) - Deleting both
Podlock
&Pod Folder
- Running
pod init
followed bypod install
似乎与Runner.xcworkspace文件夹和内部版本有关运行构建所需的文件.
seems to be an issue with the runner.xcworkspace folder and the build files needed to run builds.
这篇关于Xcode构建失败,严重错误:找不到模块'firebase_auth'@import firebase_auth;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文