在提供的路径中找不到应用程序包...“:CFBundleIdentifier",不存在

编程入门 行业动态 更新时间:2024-10-26 14:31:14
本文介绍了在提供的路径中找不到应用程序包...“: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",不存在

本文发布于:2023-07-15 10:32:49,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1110684.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不存在   中找   路径   程序包   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!