【问题标题】:Entry, ":CFBundleIdentifier", Does Not Exist in new react native project条目,“:CFBundleIdentifier”,在新的反应原生项目中不存在
【发布时间】:2019-08-31 00:17:03
【问题描述】:

我使用命令 react-native init LocationExample --version 0.57.7

创建了一个新项目

它创建了一个名为 LocationExample 的项目,但是当我进一步进入项目文件夹并运行命令 react-native run-ios 时。

这给出了一个错误说明 Entry, ":CFBundleIdentifier", Does Not Exist

我尝试通过运行命令 rm -rf ios/build 删除构建文件夹,还尝试通过 rm -rf node_modules 删除模式模块。之后我运行 yarn 命令再次安装 node_modules,但这没有任何效果。

编辑1:

/Users/apple/React Native/LocationExample/node_modules/react-native/scripts/ios-install-third-party.sh: line 56: /Users/apple/React/ios-configure-glog.sh: No such file or directory
Command /bin/sh emitted errors but did not return a nonzero exit code to indicate failure

也是这个错误

'glog/logging.h' file not found

预期:应用应该已安装并且应该成功运行。

实际:应用未安装,提示BundleIdentifier错误。

【问题讨论】:

    标签: react-native cfbundleidentifier


    【解决方案1】:

    在Xcode 中构建它。如果构建成功,则使用Cmd+R 在Xcode 中运行它

    编辑

    试试这个

    1- 更改包标识符。

    2- 添加包:

    yarn add @babel/runtime

    3-

    watchman watch-del-all

    4- 删除构建:

    rm -rf ios/build

    5-

    sed -i '' '/DevelopmentTeam = V9WTTPBFK9/d;/DEVELOPMENT_TEAM/d;/ProvisioningStyle = Automatic/d' ./node_modules/react-native/React/React.xcodeproj/project.pbxproj

    6-

    react-native start --reset-cache

    7-

    react-native run-ios

    【讨论】:

    • 这根本没有帮助我请你帮我解决一下我已经更新了构建问题
    猜你喜欢
    • 1970-01-01
    • 2016-09-24
    • 2019-02-27
    • 1970-01-01
    • 2020-03-09
    • 2018-12-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多