gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 19:42:49 24 4
gpt4 key购买 nike

安装 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com