Print: Entry, ":CFBundleIdentifier", Does Not Exist.... I have tried everything

时间:2018-03-25 21:15:23

标签: react-native

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.

2 个答案:

答案 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: -

  1. 从中下载文件     https://github.com/mmmcompanies/ReactNativeMissingFiles
  2. 转到iOS文件夹      - >打开.xcodeproj
  3. 转到文件夹库 - > React.xcodeproj - > ThirdParty文件夹 - >出入记录

  4. 更新文件并再次运行。

    you can see missing file config.h and files in glog folder 
    
    add missing files show in finder and add these files from 
    

    https://github.com/mmmcompanies/ReactNativeMissingFiles