Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native IOS Build CFBundleIdentifier Does not Exist

Tags:

react-native

I have create sample React Native project and following the tutorial as per react native website.

I have try to run the application IOS simulator, its throwing error as below ,

 ** 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

my environment setup information,

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

Please help us to resolve the issues.

like image 389
Developer KE Avatar asked Feb 04 '23 01:02

Developer KE


1 Answers

I have the same problem right after init:

react-native init myapp cd myapp react-native run-ios

..although run-android was fine.

Not a solution but a workaround for the moment, maybe be to init using a lower version of RN:

react-native init myapp --version [email protected]

That builds okay. Similar in an existing project, install an older version of RN.

Other versions before 0.54.2 might work but I haven't tried.

(edited 2018/4/2) Found my solution from this link: https://github.com/facebook/react-native/issues/18238

RN 0.54 requires types available since iOS 11. So you have to upgrade your xcode and set minimum iOS version in your app to 11

In short, upgraded OSX & Xcode to the latest. (As of today, OSX 10.13.4 Xcode & 9.3)

like image 107
kc2 Avatar answered May 23 '23 04:05

kc2