在 XCode 12.5 上构建 ReactNative 0.59.10 忽略 Pod

时间:2021-06-29 10:42:27

标签: ios xcode react-native

我正在尝试为 IOS 编译和构建 ReactNative 项目。我现在使用的是目前最新的 XCode 12.5 版。我的 ReactNative 版本是 0.59.10。在我在 XCode 11.x 版上编译和构建我的项目之前,它运行良好。然后我安装了最新的 XCode 版本 12.5。然后我删除了 node_modules 文件夹并再次运行“npm install”。当我在 XCode 中打开 IOS 项目并尝试构建它时,它给了我以下错误。

node_modules/react-native/React/../third-party/folly-2018.10.22.00/folly/dynamic.h:63:10: fatal error: 'boost/operators.hpp' file not found
#include <boost/operators.hpp>
         ^~~~~~~~~~~~~~~~~~~~~

当我在旧版本的 XCode 中构建项目时,它运行良好。我在网上查找了解决方案,似乎是因为该项目可能没有使用 Podfile 或 Pods。在 ReactNative 0.59.10 版本中,它没有使用 Podfile 或 Pods 来管理依赖项。如何构建项目?是否仅升级 ReactNative 选项?还有其他解决办法吗?

0 个答案:

没有答案