我已经尝试了所有的解决方案,但它们似乎都没有 .
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/albums.app/Info.plis
打印:条目,“:CFBundleIdentifier”,不存在
你如何让项目运行?
3 回答
由于删除了一些我在Xcode中没有使用的模拟器,我的终端会弹出相同的消息 .
如果您运行没有特定参数的
react-native run-ios
,react-native将运行默认模拟器,在我的情况下是带有iOS 10.3.1的iPhone 6,我偶然删除了这个模拟器 .这是我的错误消息:
. . .
为了摆脱这些,打开你的Xcode并检查可用的模拟器(与列出的终端相同)并运行
react-native run-ios --simulator="your device name"
对于我的情况,我运行
react-native run-ios --simulator="iPhone 7"
,问题解决了 .对我有用的是在xcode中打开项目并在那里运行项目 . 然后Xcode给我带来了一些问题 . 第一个问题是我选择了错误的设备用于测试 .
我确保选择了iPhone X模拟器(出于某种原因,它默认为我的ipad,它没有被设置为开发设备) .
然后确保你跑步时没有红色警告 . 我还有一个红色警告,那是因为我没有选择项目的团队档案 .
我还将包标识符更改为我的公司名称是唯一的 .
在xcode中运行它是了解错误的最佳方法 . 不要仅依靠本地反应来找出错误 .
当我删除
~/.rncash
时它对我有用反应原生信息