gpt4 book ai didi

Firebase Firestore 构建时出现错误 : Call to constructor of 'firebase::firestore::util::FormatArg' is ambiguous

转载 作者:行者123 更新时间:2023-12-02 21:54:45 24 4
gpt4 key购买 nike

我正在为我的 React Native 项目使用 React Native Firebase。最近我更新了 RNFirebase 和 Pod,现在当我尝试构建应用程序时会出现此错误。

如果我从 Podfile 中删除 Firestore,它就会消失。

enter image description here

这是我的 podfile

platform :ios, '9.0'

target 'creativuse' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
# use_frameworks!

# Pods for creativuse

pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Messaging'

target 'creativuseTests' do
inherit! :search_paths
# Pods for testing
end

end

我似乎在任何地方都找不到有关此错误的任何信息。有什么想法吗?

环境

  • 应用目标平台:iOS
  • 开发操作系统:macOS High Sierra
  • 构建工具:Xcode 9.2
  • React Native 版本:0.55.3
  • RNFirebase 版本:4.2.0
  • Firebase 模块:Firestore

最佳答案

我认为最新版本的“Firebase/Firestore”(v5.2.0) 不正常

使用旧版本的 Firestore 是一种解决方法

编辑 Podfile

pod 'Firebase/Firestore', '5.1.0'

再次运行

pod update

这对我有用!

关于Firebase Firestore 构建时出现错误 : Call to constructor of 'firebase::firestore::util::FormatArg' is ambiguous,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50770341/

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