收到此错误
\*\* 构建失败 **
以下构建命令失败:CompileC /Users/karthikn/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o Views/RCTTabBarItem.m normal x86_64目标-c com.apple.compilers.llvm.clang.1_0.compiler (1 失败)
安装 build/Build/Products/Debug-iphonesimulator/AwesomeProject.app 处理命令时遇到错误 (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application 在提供的路径中找不到应用程序包。提供所需应用程序包的有效路径。打印:条目,“:CFBundleIdentifier”,不存在
命令失败:/usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist 打印:条目,“:CFBundleIdentifier”,不存在
原文由 furball514 发布,翻译遵循 CC BY-SA 4.0 许可协议
Xcode 8.2 仍然出现同样的错误。下面的三行为我修复了它:) 降级 react(16.0.0-alpha.12 -> 16.0.0-alpha.6) & react-native(0.45.0 -> 0.44.0)
rm -rf 节点模块/反应
npm 我反应@16.0.0-alpha.6 -S
npm i react-native@0.44.0 -S
然后运行 react-native run-ios