React-native: Print: Entry, ":CFBundleIdentifier", Does Not Exist

Created on 26 May 2016  路  19Comments  路  Source: facebook/react-native

I am running react-native run-ios and this is the error I am getting. Doing sudo beforehand does not fix the problem. Same with setting the permissions on the folder.

=== BUILD TARGET mobileTests OF PROJECT mobile WITH CONFIGURATION Release ===

Check dependencies

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/mobile.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
/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/done.js:10
      throw err;
      ^

Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/mobile.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

    at checkExecSyncError (child_process.js:470:13)
    at Object.execFileSync (child_process.js:490:13)
    at _runIOS (runIOS.js:91:34)
    at runIOS.js:24:5
    at tryCallTwo (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:45:5)
    at doResolve (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:200:13)
    at new Promise (/Users/astiefel/workspace/bosspayments/mobile/node_modules/promise/lib/core.js:66:3)
    at Array.runIOS (runIOS.js:23:10)
    at Object.run (/Users/astiefel/workspace/bosspayments/mobile/node_modules/react-native/local-cli/cli.js:86:13)
    at Object.<anonymous> (/usr/local/lib/node_modules/react-native-cli/index.js:88:7)
Locked

Most helpful comment

i tried all the above solutions nothing worked too, so sad

All 19 comments

have a look at this, maybe there is a solution for you
https://github.com/facebook/react-native/issues/7308

@ms88privat Those solutions there haven't helped. I tried them

Worked after upgrading XCode to 7.3.1

Strange.
If your run
/usr/libexec/PlistBuddy -c Print:CFBundleIdentifier ios/build/Build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist

Print: Entry, ":CFBundleIdentifier", Does Not Exist

But if you run
/usr/libexec/PlistBuddy -c Print:CFBundleIdentifier ios/build/Products/Debug-iphonesimulator/AwesomeProject.app/Info.plist
(one build on path)

org.reactjs.native.example.AwesomeProject

Is not exist /build/Build on my AwesomeProject IOS.
Any help?
Txs!

node v6.2.2
react-native-cli: 1.0.0
react-native: 0.29.0-rc.0
xcode 7.3.1
OSX 10.11.4

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/print-entry-cfbundleidentifier-does-not-exist

Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix.

i tried all the above solutions nothing worked

The following build commands failed:
CompileC /Users/ws1/Library/Developer/Xcode/DerivedData/build/Build/Intermediates/WS1.com.build/Debug-iphonesimulator/WS1.comTests.build/Objects-normal/x86_64/WS1.comTests.o WS1.comTests/WS1.comTests.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/WS1.com.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/WS1.com.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

+1 same error as @abuammar

Yea same error. Ive upgraded everything I can think of from my OS to XCode. I'm not on the latest macOS and XCode. Same error as everyone else

i tried all the above solutions nothing worked too, so sad

I had the error:

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

I found the issue: do NOT use space in your project path!

Xcode 8.2 still occur same error. Three lines bellow fixed it for me :)
Downgrade react(16.0.0-alpha.12 -> 16.0.0-alpha.6) & react-native(0.45.0 -> 0.44.0)
rm -rf node_modules/react
npm i [email protected] -S
npm i [email protected] -S
Then run react-native run-ios

@huynhquocthai thx馃榿

@huynhquocthai u da man! Thx!

As @florismettey said, I was using a space in my product name.
To fix it without affecting the Display name (bellow the app):

Open your project and select your target.
Go to Build Settings, search "product name" and remove any space in it.

It should work after that.

Just open your Xcode

Duplicate of #14423

After I have spent a whole day trying to follow every possible suggestion, I took a detailed look on my terminal finally ! :)

So here is what was my problem:

Above :CFBundleIdentifier", Does Not Exist error i had another one that stated that lRCTBEEPickerManager module was not able to install, so I open my Xcode project => Build phases= > Link Binary with Libraries

I removed the stated module (lRCTBEEPickerManager) and error was gone.

Hope this will help someone.

Was this page helpful?
0 / 5 - 0 ratings