gpt4 book ai didi

swift - Firebase Firestore "Could not build module ' nanopb'

转载 作者:搜寻专家 更新时间:2023-10-31 21:58:58 25 4
gpt4 key购买 nike

我正在尝试试用新的 firebase firestore 数据库。我的 pod 文件有这两个依赖项。如果我不包含 firestore,我的项目将会构建。

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

我在几个地方收到错误“Could not build module 'nanopb'”和“Unknown type name 'FOUNDATION_EXPORT'”。我想知道这是否是 Firestore 的一个已知问题。我想我可以降低 Firestore 上的版本,但我不确定该怎么做。 enter image description here

我的 pod 版本是:火力地堡 4.5.0FirebaseFirestore (0.9.1)

更新:我构建了一个新项目并遇到了同样的错误。在这一点上,我只能想象这个版本的 firestore 有错误,或者我没有包括我需要的东西。目前有推荐的版本吗?

最佳答案

确保您使用的 CocoaPods 版本高于 1.2.1。我在 Firebase 代码实验室中尝试此操作并得到与您相同的结果,直到我更新以匹配 the displayed CocoaPods requirement .

我以为我安装了较新版本的 CP,但当我运行 pod --version 时,结果发现我运行的是 1.1.1。糟糕!

关于swift - Firebase Firestore "Could not build module ' nanopb',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47026758/

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