报错如下
执行 react-native run-ios
Installing build/Build/Products/Debug-iphonesimulator/YJPDealerBrokerProject.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/YJPDealerBrokerProject.app/Info.plist
Print: Entry, “:CFBundleIdentifier”, Does Not Exist
解决办法如下
删除node_modules 和相关的build文件夹
执行npm install