在提供的路径中找不到应用程序包...“:CFBundleIdentifier",不存在 [英] An application bundle was not found at the provided path... ":CFBundleIdentifier", Does Not Exist

查看:70
本文介绍了在提供的路径中找不到应用程序包...“:CFBundleIdentifier",不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在学习本教程,但是当我使用 react native cli 生成新项目时,它无法启动(使用 react-native run-ios).我一直收到上述错误,我已经尝试了几个小时的故障排除,我认为这可能是 Xcode 的问题,因为我最近更新了它,但我不确定.这是完整的错误消息:

I was working through this tutorial, however when I used the react native cli to generate a new project, it would not be able to launch ( with react-native run-ios). I kept getting the above error and I've tried troubleshooting for hours, I think it might be a problem with Xcode as I recently updated it but I'm not sure. Here is the full error message:

安装 build/Build/Products/Debug-iphonesimulator/auth.app处理命令时遇到错误(域=NSPOSIXErrorDomain,代码=2):未能安装请求的应用程序在提供的路径中找不到应用程序包.提供所需应用程序包的有效路径.打印:条目,:CFBundleIdentifier",不存在命令失败:/usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/auth.app/Info.plist打印:条目,:CFBundleIdentifier",不存在

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

如果有人遇到这个问题并解决了它,请告诉我什么对你有用!这使我处于完全停滞状态,我将不胜感激任何帮助.这可能是 react native 还没有赶上的版本问题吗?谢谢!

If anyone has encountered this problem and fixed it please let me know what works for you! This has put me at a complete standstill and I would greatly appreciate any help. Could this be a versions issue that react native has not caught up with yet? Thanks!

推荐答案

react-native init

请不要用react-native init ProjectName

您应该在最后附加 react-native 版本参数.

You should append react-native version argument in the end.

例如:

react-native init ProjectName --version 0.44.2

这篇关于在提供的路径中找不到应用程序包...“:CFBundleIdentifier",不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆