react-native: CFBundleIdentifier", Does Not Exist

this is my init new project but it has error …



** BUILD FAILED **



The following build commands failed:
	PhaseScriptExecution Install\ Third\ Party /Users/genilex3/Desktop/reactNative/reactthree/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)

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

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 6
  • Comments: 23 (2 by maintainers)

Most upvoted comments

I bet you are using react-native 0.46 on mac…

everybody has this issue, and so far it’s being ignored.

@gopaldevra You can install 0.44.2 by using this command:

npm uninstall -g react-native
npm install -g react-native@0.44.2

though regardless of what I do… nothing works! Nada.

@wei63w 把"package.json"里面"react"换成这个版本, “16.0.0-alpha.6”,“react-native”: “0.44.3”,然后删除node_modules文件夹,重新npm install, 再react-native run-ios,如果还报错,你打开ios项目里面,target-buildphases-bundle react native code and images, 里面有个路径是写错了的,好像是script,正确的是"packager",你按照那个路径打开,把正确的路径写上去再运行试试

Nothing. And I mean none of the 10 solutions found here and on other issues worked. An absolute nightmare for myself and my team.

The only that worked was rolling back to… v0.52.0

Looks like this is an issue with Xcode Build Location. Try switching it to Unique under Xcode -> Preferences -> Locations -> Advanced.

Try to run your project by building it from XCode. It worked for me

You should try to remove react-native and reinstall the 0.44 version, it worked for me.

I downgraded react-native to 0.52.0 and build work fine

I’ve done exactly what @yozef said and it somehow worked.

@gopaldevra You might have some issues if you have already an app and try to downgrade it. If it is the case, they are mostly related to the folder structure. Let me know if it works

Hey @Baptiste-Garcin, how to remove the react-native and install the 0.44 version? please leme know.

I tried all the other suggestions multiple times infact, the only thing that worked for me was the downgrade to version 0.52.0!

My Xcode version is 8.3

yarn add react-native@0.52.0 or npm i react-native@0.52.0

The solution by @vish-udp fixed the issue for me. I always set my build location relative to my current project but react-native doesn’t seem to like that.

I’ve had the same problem, and I solved it using the react-native upgrade command. It asks you to reset several settings of the project like the Launch screen and etc.

I think this issue is caused by changing the name of the app name from within XCode instead from react-native project. Or at least that was what caused the issue in my case.

@Baptiste-Garcin , no no no , I tried many version because of this error, a few days ago my project version is 45 , i do nothing in project and when i using run command it’s wrong. then i tred version of 0.44.0 ,0.45.1, 0.45.0 , 0.46.1 but it also was wrong.