首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Print:条目":CFBundleIdentifier“不存在

Print:条目":CFBundleIdentifier“不存在
EN

Stack Overflow用户
提问于 2016-05-26 21:03:37
回答 30查看 138.1K关注 0票数 134

当我运行react-native run-ios时,构建成功了,但是我得到了下面的错误。我已经检查了所有的地方,但似乎没有任何工作。在命令前面使用sudo也无济于事。我使用的是Xcode7.3,react-native-cli: 0.2.0,react-native: 0.24.1,node v5.11.0。

代码语言:javascript
复制
=== BUILD TARGET mobileTests OF PROJECT mobile WITH CONFIGURATION Release ===

Check dependencies

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/mobile.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
/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/done.js:10
      throw err;
      ^

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

    at checkExecSyncError (child_process.js:470:13)
    at Object.execFileSync (child_process.js:490:13)
    at _runIOS (runIOS.js:91:34)
    at runIOS.js:24:5
    at tryCallTwo (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:45:5)
    at doResolve (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:200:13)
    at new Promise (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:66:3)
    at Array.runIOS (runIOS.js:23:10)
    at Object.run (/Users/astiefel/workspace/bosspayments/mobile/node_modules/react-native/local-cli/cli.js:86:13)
    at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:88:7)
EN

回答 30

Stack Overflow用户

回答已采纳

发布于 2016-05-29 09:35:13

我的问题实际上是我的构建处于发布模式而不是调试模式。因此,标识符指向的是不存在的东西。我更改了构建类型,它最终正常工作。

票数 13
EN

Stack Overflow用户

发布于 2018-11-07 03:34:30

如果您使用的是Xcode 10,可能是因为它与Xcode的最新构建系统不兼容。尝试切换到遗留构建系统。

打开Xcode 10,File > Project Settings > Build System > switch dropdown to Legacy Build System。

票数 37
EN

Stack Overflow用户

发布于 2020-10-05 21:39:33

我在iOS 14和Xcode12上也遇到了同样的问题。

代码语言:javascript
复制
Error: Command failed: ...../Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

我通过删除我的yarn.lock文件和node_modules文件夹解决了这个问题。然后使用yarn install重新安装所有内容。它背后的逻辑是,这将升级您的react-native-cli which fixes此错误。

票数 17
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37461703

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档