反应本机运行ios上的React Native ios构建失败

fur*_*514 13 terminal xcode ios react-native

得到这个错误

**建筑失败**

以下构建命令失败: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 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1次失败)

安装build/Build/Products/Debug-iphonesimulator/AwesomeProject.app处理命令时遇到错误(domain = NSPOSIXErrorDomain,code = 2):无法安装所请求的应用程序在提供的路径中找不到应用程序包.提供所需应用程序包的有效路径.打印:条目,":CFBundleIdentifier",不存在

命令失败:/ usr/libexec/PlistBuddy -c打印:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist Print:Entry,":CFBundleIdentifier",不存在

小智 7

Xcode 8.2仍然出现相同的错误.以下三条线为我修好了:)降级反应(16.0.0-alpha.12 - > 16.0.0-alpha.6)&react-native(0.45.0 - > 0.44.0)
rm -rf node_modules/react
npm i react@16.0.0-alpha.6 -S
npm i react-native@0.44.0 -S
然后运行react-native run-ios


Lal*_*mar 0

在您的 info.plist 中检查此捆绑包标识符

或者将此 Bundle 标识符名称添加为 --> com.cmpname.yourapp // 根据名称更改

在此输入图像描述