我正在学习本教程,但是当我使用 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",不存在
发布评论