ios - react 原生运行iOS构建失败错误: Multiple commands produceEntry, ":CFBundleIdentifier",不存在

标签 ios react-native react-native-ios

安装 react native 项目依赖后执行 react-native link ,当我运行命令 react-native run-ios 时出现此错误.

    Build system information

    error: Multiple commands produce ...
    1) Target 'ReactNativeNavigation' (project 'ReactNativeNavigation') has copy command from '.../node_modules/react-native-navigation/lib/ios/ReactNativeNavigation.h' to '.../ios/build/Build/Products/Debug-iphonesimulator/include/ReactNativeNavigation/ReactNativeNavigation.h'
    2) Target 'ReactNativeNavigation' (project 'ReactNativeNavigation') has copy command from '.../node_modules/react-native-navigation/lib/ios/ReactNativeNavigation.h' to '.../ios/build/Build/Products/Debug-iphonesimulator/include/ReactNativeNavigation/ReactNativeNavigation.h'

    ** BUILD FAILED **

    Installing build/Build/Products/Debug-iphonesimulator/myapp.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/myapp.app/Info.plist
    Print: Entry, ":CFBundleIdentifier", Does Not Exist

提供更多信息:
react-native-cli: 2.0.1
react-native: 0.56.0
xcode 10.0
node v10.11.0
npm 6.4.1

谢谢

最佳答案

这是 react-native-navigation错误并在 this commit 中修复

临时修复是转到 ReactNativeNavigation.xcodeproj在你的项目招聘中(应该在库下),然后选择 ReactNativeNavigation 下目标 (而不是 PROJECT ),然后选择 Build Phases > Copy files,并检查 Copy only when installing .

关于ios - react 原生运行iOS构建失败错误: Multiple commands produceEntry, ":CFBundleIdentifier",不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52845298/

相关文章:

reactjs - React Native - 无法在图像顶部放置图标

ios - 文档 Main.storyboard 需要 Xcode 8.0 或更高版本

react-native - 应用程序处于后台后,react-native 中的 setInterval 会发生什么?

javascript - 在 React Native 中,是否可以在键盘打开时调用 onPress

listview - 使用 React Native LayoutAnimation 对 ListView 行删除进行动画处理

react-native run-ios 不运行应用程序,但从 xcode 构建它可以工作

ios - 监视文件更改时出错 : EMFILE {"code" :"EMFILE" ,"errno" :"EMFILE" ,"syscall" :"Error watching file for changes:" ,"filename": null}?

ios - 如何自定义UITabbar

ios - 使用 Objective C 存储数据最可靠和最快的类型或数据结构是什么?

ios - 从 NSDate 生成格式化的日期时间字符串