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

I am trying to run a new react-native project but I have an error

My setup

  • xCode 8.3.3
  • Node v6.11.0
  • npm v3.10.10
  • react-native v0.45.1
** BUILD FAILED **


The following build commands failed:

	CompileC /Volumes/300GB/react-native/jlledm/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/third-party.build/Objects-normal/x86_64/MallocImpl.o /Volumes/300GB/react-native/jlledm/node_modules/react-native/third-party/folly-2016.09.26.00/folly/detail/MallocImpl.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

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

I tried everything that others similar issues say:

  • Change the File->Project Settings->Advanced->Custom changing to “build/Build/Products”
  • Upgrade and update everything
  • lsof -n -i4TCP:8081 to kill a process that was running
  • react-native upgrade
  • Delete node_modules/, clear the cache and install again
  • Doubleclick on the RCTWebSocket project in your navigator and remove the flags under build settings > custom compiler flags
  • Setting manually the Bundle Identifier
  • Run npm start – --reset-cache
  • rm -rf ios/build and run-ios again…

If I try to compile in xcode, I had this problem

screen shot 2017-06-10 at 15 11 16

And I just run the react-native init projectName and react-native run-ios the get this error

Have anyone a modern (2017) solution for this problem?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 4
  • Comments: 42 (7 by maintainers)

Most upvoted comments

Devs keep ignoring this issue, and keep closing them. My Faith in RN is loosing momentum.

I just merged several related issue. Let’s avoid opening new issues for the same error message for now. It seems like the preferred workaround at this time is to do the following:

rm -rf ~/.rncache
react-native run-ios

Wait for the last command to finish in its entirety. You should see several messages that follow this format: curl: Saved to filename 'glog-0.3.4.tar.gz'. Do not press CTRL+C to kill the process.

Thanks to @jjerryhan for arriving at the above list of steps (see Handling third party build error on React Native for an explanation behind why some people may end up in this state).

I believe I saw some PRs land recently that may deal with this particular issue, but I’m not 100% sure. I’ll come back and update this issue with my findings.

To aid in the investigation, please refrain from adding “me too” comments unless you have new information to share.

@dgurns Well, first of all I updated my Node JS to the latest version available. After that I created a new project using the latest version of React-Native and then, I replaced the third-party folder. Then I run: react-native run-ios.

react-native 0.45.1 i try to solve this problem by running shell script in react-native package manually

  1. open terminal node_modules/react-native/ios-install-third-party.sh
  2. after downloading finished, set pemission to .rncache folder sudo chown -R $(whoami) ~/.rncache
  3. run react-native run-ios
  1. make sure your four tar.gz is completely downloaded in ~/.rncache
  2. remove node_modules/react-native/third-party
  3. react-native run-ios again

this works for me.

I replaced the third-party folder with this https://github.com/whg1412/ThirdParty as @GabrielLidenor sad and it worked for me too.

Duplicate of #14423

It looks like @mhorowitz has looked at this before (see a555551aaf1de1aff2a58f7aa09e970bcd003f7f and his comment on #14423).

If you see the following message, “Unpacking ‘SOME_FILENAME_HERE’ failed. Debug info:”, when running react-native run-ios, please comment here with the output following the “Debug info:” phrase.

Since Marc has already commented over at #14423, I’ll mark that as the canonical issue and point all other issues there. Sorry for the churn.

I am having this issue now: React Native 0.47.1 MacOS Sierra 10.12.6 XCode 8.3.3

None of the solutions I’ve seen (removing spaces in path; changing relative build location) have worked.

@whg1412 my third party folder is 32M (1265 items). Where could we get the full version of it?

Same error after downgrading the react native version on my system but on the another system working properly, what the issue, I can’t figure out, Is this going to fix or not?

My RN project works fine locally. When I push it to git and then pull it down. npm install and link all libraries. I cannot run the project because of CFBundleIdentifier does not exist. All the approaches don’t work for me.Then error message is library not found -lRCTBEEPickerManager.a Then I go to Build Phase=> link binary with libraries and delete a file called libRCTBEEPickerManager.a This at least allow me to build from xcode. But I still cannot build from command line. Now the error message becomes An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):

I have the same problem and provided solutions didn’t work for me. Xcode 8.0, React native 0.45.1

Hi @Mikael491! This open the new project, but in a very different folder structure (very lean) and with 0.44 react-native version. It could be a partial solution and I am grateful for your help.

But I need a Native Code, and I used the command with no success

react-native init AwesomeProject