Skip to content

react-native app doesn't work ":CFBundleIdentifier", Does Not Exist #10401

Closed
@xwartz

Description

@xwartz

On OS X Sierra

node --version v6.7.0
npm --v 3.10.8
react-native-cli: 1.0.0
react-native: 0.35.0
xcode 8.0

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/token.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/token.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

I tried all solutions issues#7308, but nothing works.

Interestingly, everything works if I open the .xcworkspace in XCode and run it from there. But react-native run-ios still gives me the error.

Activity

xwartz

xwartz commented on Oct 16, 2016

@xwartz
Author
charlle

charlle commented on Jan 14, 2017

@charlle

In you are still trying to figure this out.
If you've received this error, then you probably do not have the correct path for your application.

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

React Native has hardcoded it as part of their run-ios command in runIOS.js
build/Build/Products/${configuration}-${isDevice ? 'iphoneos' : 'iphonesimulator'}/${appName}.app

Unfortunately Xcode has different build paths depending on your configuration and on whether you are using an Xcode Project or Workspace. I believe the default path for an Xcode Project is build/Products.
I submitted this pull request 11899 to give programmers more flexibility from the CLI.

srt32

srt32 commented on Jan 19, 2017

@srt32

After launching in Xcode I followed the steps in #11265 (comment) and was able to get the simulator to work

florismettey

florismettey commented on Jun 27, 2017

@florismettey

I found how to solve the issue: do NOT use space in your project path! 🎉 😄

hramos

hramos commented on Aug 4, 2017

@hramos
Contributor

Duplicate of #14423

ningkexin

ningkexin commented on Oct 25, 2017

@ningkexin

delete /Users/{{your username}}/.rncache
and reinstall depend node_modules
then run sh react-native run-ios

locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @hramos@srt32@xwartz@florismettey@charlle

        Issue actions

          react-native app doesn't work ":CFBundleIdentifier", Does Not Exist · Issue #10401 · facebook/react-native