问题

错误出现执行 react-native run-ios

出现下面错误

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/ReactNativexx.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

解决方法:

1、新建项目指定版本:用--version

参数创建指定版本的项目。例如 react-native init DemoApp --version 0.44.3

注意版本号必须精确到两个小数点。

项目创建好之后:执行:react-native run-ios

2、尝试reset一下 模拟器之后再 react-native run-ios

3、尝试执行 react-native upgrade然后一路enter 再 react-native run-ios试试?

results matching ""

    No results matching ""