【问题标题】:Error on running the project in simulator: "Print: Entry, ":CFBundleIdentifier", Does Not Exist"在模拟器中运行项目时出错:“打印:条目,”:CFBundleIdentifier“,不存在”
【发布时间】:2018-07-28 20:29:18
【问题描述】:

我正在笔记本电脑中设置 React-Native。我用于不同工具的版本如下: Node.js:v10.7.0 反应原生 cli:2.0.1 反应原生: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

【问题讨论】:

  • 这对我不起作用。我仍然遇到同样的错误。我将 xocde 升级到 8.2.1 ,但我仍然面临同样的问题。
  • 你试过 react-native run-ios --simulator="iPhone 7" 吗?
  • 不,这对我不起作用。我用最近遇到的错误更新了问题。

标签: react-native xcode8 react-native-ios


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2016-09-24
    • 2019-02-27
    • 2019-07-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-08-31
    • 1970-01-01
    • 2019-09-17
    相关资源
    最近更新 更多