Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFBundleIdentifier", Does Not Exist #14969

Closed
wei63w opened this issue Jul 12, 2017 · 23 comments
Closed

CFBundleIdentifier", Does Not Exist #14969

wei63w opened this issue Jul 12, 2017 · 23 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@wei63w
Copy link

wei63w commented Jul 12, 2017

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

@Baptiste-Garcin
Copy link

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

@fanyuexiang
Copy link

#14604 this is it

@Baptiste-Garcin
Copy link

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

@gopaldevra
Copy link

gopaldevra commented Jul 12, 2017

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

@yozef
Copy link

yozef commented Jul 12, 2017

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.

@Baptiste-Garcin
Copy link

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

@hramos
Copy link
Contributor

hramos commented Jul 12, 2017

https://github.com/facebook/react-native/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20CFBundleIdentifier

@hramos hramos closed this as completed Jul 12, 2017
@wei63w
Copy link
Author

wei63w commented Jul 13, 2017

@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.

@wei63w
Copy link
Author

wei63w commented Jul 13, 2017

@fanyuexiang 啥意思 , 你说的那个已经关闭了啊, 也没有成功的解决方案啊 ? 我猜你看得懂中文

@fanyuexiang
Copy link

@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",你按照那个路径打开,把正确的路径写上去再运行试试

@gopaldevra
Copy link

Thanks, @yozef, @Baptiste-Garcin, Now I am running the app through the Xcode and it's working.
So I am not using the command to run on the iOS.

@wei63w
Copy link
Author

wei63w commented Jul 13, 2017

@fanyuexiang thanks for you , 额 谢谢啦, OK了

@hramos
Copy link
Contributor

hramos commented Aug 4, 2017

Duplicate of #14423

@mradkov
Copy link

mradkov commented Dec 20, 2017

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.

@dathu7728
Copy link

In react native main.jsbundle file missing in xcode ios

@vish-udp
Copy link

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

@sunnypurewal
Copy link

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.

@rpmonteiro
Copy link

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

@DomLeMarin
Copy link

The solution for me was in the Xcode Build Location, under Xcode -> Preferences -> Locations, I changed the "Command Line Tools" from an old version to the latest version of Xcode 9.4 and it worked.

@wawhal
Copy link

wawhal commented May 10, 2018

This happens for me whenever the React Native cache gets corrupted. Clearing cache and retrying works for me:

$ rm -rf ~/.rncache
$ rm -rf node_modules
$ npm install
$ react-native run-ios

@IshanFx
Copy link

IshanFx commented May 21, 2018

I downgraded react-native to 0.52.0 and build work fine

@oluomoniyi
Copy link

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

@SamiChab
Copy link

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

@facebook facebook locked as resolved and limited conversation to collaborators Jul 12, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests