gpt4 book ai didi

ios - 找不到“UserAgent.h”文件 flutter firebase iOS

转载 作者:行者123 更新时间:2023-12-01 16:11:18 24 4
gpt4 key购买 nike

我正在使用 firebase 开发 flutter 应用程序,当我使用 firebaseAuth 插件应用程序时出现以下错误

Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running pod install...
Running Xcode build...
Xcode build done. 131.2s
Failed to build iOS app
Error output from Xcode build:

2020-02-28 16:05:06.832 XCBBuildService[68423:382033] Failed to remove:
/Users/apple/Library/Developer/Xcode/DerivedData/Runner- hfqwisipukhnqobtbsvjhfltdbgs/Build/Intermediates.noindex/XCBuildData/1be627f6c729f1a388e5fec96804d392-manifest.xcbuild: unlink(/Users/apple/Library/Developer/Xcode/DerivedData/Runner-hfqwisipukhnqobtbsvjhfltdbgs/Build/Intermediates.noindex/XCBuildData/1be627f6c729f1a388e5fec96804d392-manifest.xcbuild): No such file or directory (2)
2020-02-28 16:05:07.269 XCBBuildService[68423:382033] Failed to remove: /Users/apple/Library/Developer/Xcode/DerivedData/Runner-hfqwisipukhnqobtbsvjhfltdbgs/Build/Intermediates.noindex/XCBuildData/1be627f6c729f1a388e5fec96804d392-desc.xcbuild: unlink(/Users/apple/Library/Developer/Xcode/DerivedData/Runner-hfqwisipukhnqobtbsvjhfltdbgs/Build/Intermediates.noindex/XCBuildData/1be627f6c729f1a388e5fec96804d392-desc.xcbuild): No such file or directory (2)
* BUILD FAILED *


Xcode's output:

/Users/apple/Library/Android/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+2/darwin/Classes/FLTFirebaseAuthPlugin.m:7:9: fatal error: 'UserAgent.h' file not found
#import "UserAgent.h"
^~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description

Could not build the application for the simulator.
Error launching application on iPhone 11 Pro Max.

我正在使用这些库-

firebase_auth: ^0.15.5+2
firebase_storage: ^3.1.1
cloud_firestore: ^0.13.4

有人知道如何解决这个错误吗?,我已经做了以下事情

flutter clean
deleted podfile.lock
deleted pods folder
pod deintegrate
pod repo update
pod install

但不要帮我解决这个错误

最佳答案

我们遇到了同样的错误。看来这是一个 firebase_auth 依赖项错误(firebase_core v0.4.4+2)。

首先,运行 flutter clean,然后将 pubspec.yaml 的依赖项更改为

dependencies: 
firebase_auth: 0.15.4
dependency_overrides:
firebase_core: 0.4.4

希望对你有帮助!

关于ios - 找不到“UserAgent.h”文件 flutter firebase iOS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60450208/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com