React Native IOS Build CFBundleIdentifier不存在

use*_*290 6 react-native

我已经创建了示例React Native项目,并按照本机网站的反应进行了教程.

我试着运行应用程序IOS模拟器,它的抛出错误如下,

 ** BUILD FAILED **


        The following build commands failed:
            PhaseScriptExecution Install\ Third\ Party /Users/Test/Documents/REACTJS/SampleReactNative/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
        (1 failure)

        Installing build/Build/Products/Debug-iphonesimulator/SampleReactNative.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/SampleReactNative.app/Info.plist
        Print: Entry, ":CFBundleIdentifier", Does Not Exist
Run Code Online (Sandbox Code Playgroud)

我的环境设置信息,

  • node version v9.8.0 npm version 5.6.0 react-native-cli:2.0.1 react-native:0.54.2 xcode 9.2

请帮助我们解决问题.

Pan*_*waj 0

你的 Info.plist 中有 CFBundleIdentifier 吗?

如果没有,则添加它,例如。com.ios.learning

在此输入图像描述