Lexical or processor issue:boost / config / user.hpp'file not found

当我在Xcode中运行我的反应原生应用程序时,它显示错误“boost / config / user.hpp”文件未find“。 而且当我使用命令“react-native run-ios”运行应用程序时,terminal出现错误,

"Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/sample2.app/Info.plist" Print: Entry, ":CFBundleIdentifier", Does Not Exist " . 

我如何解决这个问题。 我是反应本机应用程序开发bigginer。

你有任何更新来运行你的机器/ xcode? 当我有待安装的macOS Sierra更新时,我遇到了这个问题。

我安装了导致我的mac重新启动的更新,然后运行npm install并尝试重新构build,并成功。

版本:

  • macOS Sierra: 10.12.6
  • Xcode: 8.3.3
  • 反应: 16.0.0-alpha.12
  • react-native: 0.47.1

它与这个boost包相关: ./node_modules/react-native/third-party/boost_1_63_0/boost/config boost/ ./node_modules/react-native/third-party/boost_1_63_0/boost/config

  • 删除这个文件夹: /node_modules/react-native/third-party/

  • 重新运行Xcode项目。