首页 文章

在模拟器中运行项目出错:“打印:条目”:CFBundleIdentifier“,不存在”

提问于
浏览
1

我正在我的笔记本电脑中设置React-Native . 我用于不同工具的版本如下:Node.js:v10.7.0 react-native-cli:2.0.1 react-native:0.56.0

在运行命令“react-native run-ios”时,我收到如下错误:

The following build commands failed:

    CompileC /Users/mshikher/Documents/react-native-workspace/firstProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

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

我在StackOverflow中尝试了很多答案,但到目前为止还没有任何工作 . 这可能是背后的问题 .

我最近得到的错误是:

The following build commands failed:

        CompileC /Users/mshikher/Documents/react-native-workspace/secondProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    (1 failure)

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

1 回答

  • 0

    我安装了与macOS 10.12.6兼容的xcode 9.2 . 这对我有用 .

相关问题