React-Native iOS应用构建失败-打印: Entry, ":CFBundleIdentifier",不存在

标签 react-native

我在本地Mac OS X El Capitan机器上运行 native 应用程序。我已经安装了必需的依赖项,但该应用程序仍未在iOS模拟器中启动。

这是输出:

** BUILD FAILED **


The following build commands failed:
    Ld build/Build/Products/Debug-iphonesimulator/F8v2.app/F8v2 normal x86_64
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/F8v2.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/done.js:10
      throw err;
      ^

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/F8v2.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

    at checkExecSyncError (child_process.js:464:13)
    at Object.execFileSync (child_process.js:484:13)
    at _runIOS (/Users/-/f8app/node_modules/react-native/local-cli/runIOS/runIOS.js:82:32)
    at /Users/-/f8app/node_modules/react-native/local-cli/runIOS/runIOS.js:24:5
    at tryCallTwo (/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/core.js:45:5)
    at doResolve (/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/core.js:200:13)
    at new Promise (/Users/-/f8app/node_modules/react-native/node_modules/promise/lib/core.js:66:3)
    at Array.runIOS (/Users/-/f8app/node_modules/react-native/local-cli/runIOS/runIOS.js:23:10)
    at Object.run (/Users/-/f8app/node_modules/react-native/local-cli/cliEntry.js:96:13)
    at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:88:7)

最佳答案

运行react-native upgrade并覆盖所有iOS文件。对我来说就做到了。

关于React-Native iOS应用构建失败-打印: Entry, ":CFBundleIdentifier",不存在,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38811292/

相关文章:

react-native - 无法实现react-native-elements表单?

react-native - 将图像存储在 Android 和 iOS 的原生 react 中?

javascript - 在 React Native 中安排本地通知不起作用

javascript - 回调函数中的 navigator.pop() 形式为 redux 操作

android - npm WARN react-native-maps@0.14.0 需要 react@>=15.4.0 的对等体,但没有安装

android - native react -应用程序被杀死/未启动时未收到通知

ios - react native : Best approach to run a background task on iOS when the app is closed?

javascript - 仅在特定屏幕上渲染子组件中的按钮

redirect - 使用 React Native 在获取请求中禁用重定向

android - 如何访问相机 - React Native