ios - 找不到“openssl/base.h”文件 Firestore

标签 ios firebase google-cloud-firestore

我正在尝试将 Firestore 用于我现有的项目(也使用实时数据库)。我收到 'openssl/base.h' file not found 错误。

我尝试使用 pod 重新安装。我更新了 Xcode。那里没有帮助。

错误图片:enter image description here

我尝试创建一个新项目并毫无问题地安装了 Firestore。

这就是我正在做的:

  1. pod Firebase/Firestore podfile 中的行
  2. 从命令行安装 pod
  3. cmd + B 构建项目 == openssl/base.h file not found

我在这里做错了什么?

(在 podfile 中,我没有指定目标。我不知道这是否会导致这个问题)

[更新:重新安装后,它成功构建并运行 - 直到我打开 hmac.h 文件。仅当我打开它时才显示相同的错误。如果我转到任何其他页面然后构建并运行该项目,错误就会消失。 - 奇怪]

最佳答案

我的 Xcode 项目中出现“更新到推荐设置”的警告 我这样做了,并重新安装了 Firestore pod Firebase/Firestore,哇哦,它成功了!!

-- 这正是对我有用的。

关于ios - 找不到“openssl/base.h”文件 Firestore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50111556/

相关文章:

javascript - Testflight版本中React Native元素的位置错误

Javascript 和 Firebase 3 - 使用电子邮件和密码创建用户

firebase - Cloud FireStore 最低部署目标

ios - iphone 应用程序不在 ipad 上显示图标

ios - 使用重置解析功能解析 iOS

iphone - 在同一 View Controller 中进行一次、两次和三次点击操作

javascript - 如何从 '/functions' 以外的目录部署函数?

reactjs - 无法使用 Firebase v9 Modular React JS 读取未定义的属性(读取 'indexOf')

firebase - 了解 Firestore 集合中的数据何时到达末尾

node.js - 尝试在 firestore 中保存时,参数返回未定义