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

React Native 0.55.0 CFBundleIdentifier error after fixing metro port #18687

Closed
3 tasks done
Rob117 opened this issue Apr 4, 2018 · 32 comments
Closed
3 tasks done

React Native 0.55.0 CFBundleIdentifier error after fixing metro port #18687

Rob117 opened this issue Apr 4, 2018 · 32 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@Rob117
Copy link

Rob117 commented Apr 4, 2018

React native gives the classic CFBundleIdentifier Does Not Exist error on new project in 0.55.0

The following build commands failed:

	CompileC /Users/rob/projects/newproto/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTBundleURLProvider.o Base/RCTBundleURLProvider.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

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

Environment

Environment:
OS: macOS High Sierra 10.13.3
Node: 9.10.1
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.3 Build version 9E145
Android Studio: 3.1 AI-173.4670197

Packages: (wanted => installed)
react: ^16.3.0-alpha.0 => 16.3.1
react-native: 0.55.0 => 0.55.0

Steps to Reproduce

react-native init prototype
cd prototype
ref #18681 - perform this edit to the runIOS file so you can start metro bundler.
react-native run-ios

Expected Behavior

Sim starts, app is displayed

Actual Behavior

I get the above error.

Note that downgrading to react-native 0.52.0 and running the above commands gives no problems at all.

@JimTeva
Copy link

JimTeva commented Apr 4, 2018

Same issue here...

@zicat
Copy link

zicat commented Apr 4, 2018

I meat the same error, I try to use react-native 0.54.0, it run well.

@Harryyan
Copy link

Harryyan commented Apr 4, 2018

same issue

@mo-esmp
Copy link

mo-esmp commented Apr 4, 2018

Same issue here

@wellyshen
Copy link

Same issue

1 similar comment
@hiepnm
Copy link

hiepnm commented Apr 4, 2018

Same issue

@amory1206
Copy link

same issue

@kelset
Copy link
Contributor

kelset commented Apr 4, 2018

First off, PLEASE don't pollute the issue with useless 'same issue' comments.

There are the reactions for indicating that this issue is present.

That said, please don't use 0.55.0 because it ships with the wrong version of React. We are going to release soon a new version.

Aside from all of this, also consider cleaning up your XCode Build and Derived Data and pod cache.

@grabbou
Copy link
Contributor

grabbou commented Apr 4, 2018

This issue has been around for a while, please search for a solution here: https://github.com/facebook/react-native/issues?q=is%3Aissue+CFBundleIdentifier+is%3Aclosed, this one in particular: #14423

In my case, opening project with Xcode and hitting "Run" manually fixes the issue.

@JimTeva
Copy link

JimTeva commented Apr 5, 2018

Thank you @angly-cat! Reverting this commit is the solution for react-native 0.55.0 install pb! Plo4ox@8b43d81
Now I am still unable to launch the simulator (Metro is launching fine)... don't know why

@lebedev
Copy link
Contributor

lebedev commented Apr 5, 2018

Now I am still unable to launch the simulator (Metro is launching fine)... don't know why

Yeah, that's another issue, @tevatahiti. However, you can work around it by launching simulator once via Xcode. At least it's something.

@grabbou
Copy link
Contributor

grabbou commented Apr 5, 2018

Okies, this ended up being a real issue! Anyway, PR is in progress and I got this fixed in 0.55.1 which is coming out in a second :)

@wouterds
Copy link

wouterds commented Apr 9, 2018

@grabbou: I just upgraded to 0.55.1 but the issue is still present for me.

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/Delta.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

@lebedev
Copy link
Contributor

lebedev commented Apr 9, 2018

@wouterds Did your build succeed?

@kelset
Copy link
Contributor

kelset commented Apr 9, 2018

Try cleaning the Xcode project, then the build folder, then the DerivedData folder, then the pod cache, then run again pod install.

@saranshjain1
Copy link

I am getting this error on both 0.55.2 and 0.54.4 version of react-native.

The following build commands failed:
CompileC /Users/livspace/saransh/mobile/newproject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTFont.o Views/RCTFont.mm normal x86_64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler

(1 failure)

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

I have tried changing path in xcode from default build/* to build/Build/* and verified info.plist. Can you please tell me what could be wrong?

@Rob117
Copy link
Author

Rob117 commented Apr 27, 2018

@saranshjain1 I'm not sure if you fixed it yet, but it looks like you need to make sure that your metro bundler is starting properly?

If you run npm start, does your bundler start without errors? If so, what happens when you run react-native run-ios after?

@dbnex14
Copy link

dbnex14 commented May 3, 2018

Same issue here

** BUILD FAILED **


The following build commands failed:

	CompileC /Users/dinob/reactnativework/MapExample/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTShadowView+Internal.o Views/RCTShadowView+Internal.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

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


dinob@dbmac:~/reactnativework/MapExample $ ls -l
total 704
-rw-r--r--    1 dinob  staff    1184  3 May 15:48 App.js
drwxr-xr-x   10 dinob  staff     340  3 May 15:48 android
-rw-r--r--    1 dinob  staff      57  3 May 15:48 app.json
-rw-r--r--    1 dinob  staff     126  3 May 15:48 index.js
drwxr-xr-x    8 dinob  staff     272  3 May 15:48 ios
drwxr-xr-x  638 dinob  staff   21692  3 May 15:48 node_modules
-rw-r--r--    1 dinob  staff  340982  3 May 15:48 package-lock.json
-rw-r--r--    1 dinob  staff     455  3 May 15:48 package.json
dinob@dbmac:~/reactnativework/MapExample $ react-native -v
react-native-cli: 2.0.1
react-native: 0.55.3
dinob@dbmac:~/reactnativework/MapExample $ node -v
v8.9.1
dinob@dbmac:~/reactnativework/MapExample $ npm -v
5.5.1
dinob@dbmac:~/reactnativework/MapExample $ watchman -v
4.9.0
dinob@dbmac:~/reactnativework/MapExample $ 

@ChaseWPDEV
Copy link

Experiencing an identical issue to @dbnex14 with .4 patch:
react-native-cli: 2.0.1
react-native: 0.55.4
node: 10.0.1
nom: 5.6
iOS: 10.13

@ChaseWPDEV
Copy link

Since this is a new version/ compilation error I've moved to new issue #19218

@dbnex14
Copy link

dbnex14 commented May 11, 2018

That is correct. While this but is closed for some reason, same version 0.55 (which is latest stable version according to https://facebook.github.io/react-native/versions.html) has same issue. Not sure why it was closed?

@billtlee
Copy link

So, has this issue been closed or under another issue? I am also having the same exact problem with 0.55.4.

@yashafromrussia
Copy link

We added main.jsbundle reference to project.pbxproj. When running on simulator, the file was not being generated, so we had to run the bundler ourselves. However, that main.jsbundle is needed to run the app on a real device. It should be generated as part of the Build Phases. I added the following to a new build phase Bundle React Native code and images:

export NODE_BINARY=node
../node_modules/react-native/scripts/react-native-xcode.sh

@RusinovAnton
Copy link

react-native upgrade worked for me

@augustbjornberg
Copy link

augustbjornberg commented Jun 24, 2018

+1

Removing /ios and subsequently running "react-native upgrade" did not work.

@dbnex14
Copy link

dbnex14 commented Jun 25, 2018 via email

@MaheshNandam
Copy link

image

Deleting the following folders from the above mentioned screen works for me:
~/Library/Developer/Xcode/DerivedData/Build/Products
~/Library/Developer/Xcode/DerivedData/Index/DataStore
~/Library/Developer/Xcode/DerivedData/Build/Intermediates.noindex

@ChaoTzuJung
Copy link

ChaoTzuJung commented Aug 10, 2018

I buy new iMac and set up the environment for RN and I create new project and it fail such as the title
screen shot 2018-08-11 at 12 02 33 am
My version is:
"react": "16.4.1",
"react-native": "0.56.0"

XCode is 8.2.1

screen shot 2018-08-10 at 11 47 07 pm

I create app by react-native init ${projectName}

@wouterds
Copy link

Could you try the following and try again?

rm -rf ios android
react-native eject
git checkout ios android

@Ahmed-Fayyaz
Copy link

Hi Guys, any luck with this. I have been struggling for last four days and none of the solutions worked for me :(.

**Skipping bundling in Debug for the Simulator (since the packager bundles for you). Use the FORCE_BUNDLING flag to change this behavior.

** BUILD SUCCEEDED **

Installing build/Build/Products/Debug-iphonesimulator/brooklynz.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.**

version:
react-native-cli: 2.0.1
react-native: 0.55.4
xCode v10.0

@devapro
Copy link

devapro commented Jan 23, 2019

image

I have the same issue on latest version RN. I fixed it by opening File->Xworkspace settings ->Advanced and set Default (see my image)

@grabbou
Copy link
Contributor

grabbou commented Mar 11, 2019

CFBundleIdentifier is a false error that shadows the underlying cause. We have fixed the error reporting in latest React Native. Please submit the original issue. Closing this conversation meanwhile.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 11, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Apr 4, 2019
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