react-native - 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”,不存在
解决方案
链接问题通常具有误导性,并且不容易调试:
这个问题有很好的做法来避免这类问题。
推荐阅读
- mysql - 将几行及其相关子行从一个表移动到另一个表的最佳方法
- javascript - React Bootstrap 使用 Nav 组件刷新应用
- android - 使用命令行启动 Android 应用程序
- reactjs - 在应用程序中多次使用 useSelector 反应 redux
- spring - 如何在 Hibernate 的 Crud Repo 中创建 where 查询功能?
- python - 如何使用python按字母顺序排列文件夹名称列表
- sql - 如何从第一个表中获取第二个表值重复的行数
- sql - SQL查询以获取平均值的总和
- ruby-on-rails - 在 Rails 中动态创建 crob 作业
- sql - Oracle Sql 转置表