gpt4 book ai didi

firebase - 将 firebase_ml_vision 添加到 flutter 引发错误 'Unknown type name ' FIRVisionCloudLabelDetector'

转载 作者:IT王子 更新时间:2023-10-29 06:43:15 24 4
gpt4 key购买 nike

将 firebase_ml_vision: 0.3.0 添加到现有项目时,在构建 xcode 时总是提示:Unknown type name 'FIRVisionCloudLabelDetector'。

如果排除firebase_ml_vision,则项目可以编译。

这是我的 flutter doctor 结果:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel dev, v1.1.9, on Mac OS X 10.14.1 18B75, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.2)
[✓] Connected device (1 available)

我尝试重新安装 cocoapods 并使用“flutter upgrade”升级 flutter 并使用“cd ios && pod update”升级 pod,但仍然无效。

最佳答案

我遇到了同样的问题,解决方法是降级 MLVisionLabelModel

为此,在 xcode 中打开您的项目并打开 Podfile 然后添加

pod 'Firebase/MLVisionLabelModel', '5.15.0'

然后重新运行。它应该可以正常工作。

关于firebase - 将 firebase_ml_vision 添加到 flutter 引发错误 'Unknown type name ' FIRVisionCloudLabelDetector',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54421151/

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