首页 > 解决方案 > react-native 构建失败(run-ios)

问题描述

我尝试使用本机代码从 CRNA 传递到 React-Native 应用程序。当我使用 react-native run-ios 构建时,构建失败,我不知道该怎么办!

** 构建失败 **

以下构建命令失败:

CompileC /Users/Karl/Documents/Applications/MyItems51Work/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/raw_logging.o /Users/Karl/Documents/Applications/MyItems51Work/node_modules/react-native/third-party/glog-0.3.4/src/raw_logging.cc normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler

(1 次失败)

安装 build/Build/Products/Debug-iphonesimulator/MyItems.app 处理命令时遇到错误 (domain=NSPOSIXErrorDomain, code=22): Failed to install the requested application 无法确定应用程序的包标识符。确保应用程序的 Info.plist 包含 CFBundleIdentifier 的值。打印:条目,“:CFBundleIdentifier”,不存在

命令失败:/usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/MyItems.app/Info.plist 打印:条目,“:CFBundleIdentifier”,不存在

标签: react-native

解决方案


链接问题通常具有误导性,并且不容易调试:

这个问题有很好的做法来避免这类问题。


推荐阅读