当我使用“react-native run-ios”时,出现了一些错误,“boost/operators.hpp”文件未找到。我无法构建和运行我的项目:
react-native-cli: 2.0.1 react-native: 0.59.9 npm: 6.9.0 yarn: 1.16.0 node: v12.4.0 os: macos 10.14.5 xcode: 10.2.1
? Compiling JSIDynamic.cpp
? /Users/lidongbo/WorkBentch/ReactNative/AwesomeProject/node_modules/react-native/React/../third-party/folly-2018.10.22.00/folly/dynamic.h:63:10: 'boost/operators.hpp' file not found
#include <boost/operators.hpp>
^
? Analyzing JSCRuntime.cpp
? Analyzing jsi.cpp
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening AwesomeProject.xcodeproj
Run Code Online (Sandbox Code Playgroud)
项目可以构建和运行。