Installing build/Build/Products/Debug-iphonesimulator/roam.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/roam.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
I have tried everything. Something to keep in mind is I was even able to make it work in xcode. React-native upgrade, npm install, and killing the port all did not work. Please help.
答案 0 :(得分:5)
如果缺少config.h文件,可能会发生这种情况
对于更新config.h文件,
1)关闭您的Xcode。
2)打开终端,转到项目的根文件夹并执行以下操作:
cd node_modules/react-native/third-party/glog-0.3.4/
3)运行配置脚本:
./configure
4)打开Xcode并尝试运行您的应用。
答案 1 :(得分:2)
你遗漏了一些库文件。因此需要在iOS项目中手动添加。
打开xcode项目
转到.xcodeproj: -
转到文件夹库 - > React.xcodeproj - > ThirdParty文件夹 - >出入记录
更新文件并再次运行。
you can see missing file config.h and files in glog folder
add missing files show in finder and add these files from