【问题标题】:Print: Entry, ":CFBundleIdentifier", Does Not Exist.... I have tried everything打印:条目,“:CFBundleIdentifier”,不存在......我已经尝试了一切
【发布时间】:2018-03-25 21:15:23
【问题描述】:
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

我什么都试过了。需要记住的是,我什至可以让它在 xcode 中工作。 React-native 升级、npm install 和杀死端口都不起作用。请帮忙。

【问题讨论】:

    标签: react-native


    【解决方案1】:

    如果您缺少 config.h 文件,可能会发生这种情况,

    对于更新 config.h 文件,

    1) 关闭您的 Xcode。

    2) 打开终端,转到项目的根文件夹并执行以下操作:

    cd node_modules/react-native/third-party/glog-0.3.4/
    

    3) 运行配置脚本:

    ./configure
    

    4) 打开 Xcode 并尝试运行您的应用。

    【讨论】:

      【解决方案2】:

      您在 react 中缺少一些库文件。所以需要在你的iOS项目中手动添加。

      打开 xcode 项目

      转到 .xcodeproj :-

      1. 从以下位置下载文件 https://github.com/mmmcompanies/ReactNativeMissingFiles
      2. 转到文件夹 iOS -> 打开 .xcodeproj
      3. 转到文件夹库 -> React.xcodeproj -> 第三方文件夹 -> glog

      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

      【讨论】:

        猜你喜欢
        • 2016-09-24
        • 2019-02-27
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-07-30
        • 2022-08-23
        • 1970-01-01
        相关资源
        最近更新 更多