【发布时间】:2017-08-28 15:53:25
【问题描述】:
参考this 问题,我也有同样的问题。我在 VMware 上有 MacOs El Captain。
- 节点 v. 7.8.0
- npm v.4.6.1
- react-native-cli 2.0.1
- react-native 0.46.4
- Xcode v. 8.2.1
我有两个问题:
- 当尝试init 一个新的 react-native 项目时,获取的包会挂起从 repo 获取 react-native 0.46.4 包。其他包下载成功。所以我从 Windows 执行了npm install,然后在 Mac 上复制了node_modules 文件夹。
- 尝试在 iOS 模拟器上运行项目时,我收到以下错误:
** 构建失败 **
...
In file included from /Users/michelebombardi/Desktop/ReactNativeProjects/caliup/node_modules/react-native/React/../third-party/folly-2016.09.26.00/folly/Bits.h:70:
/Users/michelebombardi/Desktop/ReactNativeProjects/caliup/node_modules/react-native/React/../third-party/folly-2016.09.26.00/folly/detail/BitIteratorDetail.h:21:10: fatal error: 'boost/iterator/iterator_adaptor.hpp' file not found
#include <boost/iterator/iterator_adaptor.hpp>
The following build commands failed:
CompileC /Users/michelebombardi/Desktop/ReactNativeProjects/caliup/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/Conv.o /Users/michelebombardi/Desktop/ReactNativeProjects/caliup/node_modules/react-native/third-party/folly-2016.09.26.00/folly/Conv.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/CaliUp.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/CaliUp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist`
我真的需要在本周末之前在应用商店上发布我的应用。 我已经尝试了所有建议的解决方案,但没有任何效果。
谁能帮帮我?
【问题讨论】:
标签: ios node.js macos react-native