react-native: React Native 0.55.0 CFBundleIdentifier error after fixing metro port

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.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 35
  • Comments: 32 (5 by maintainers)

Most upvoted comments

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.

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: https://github.com/facebook/react-native/issues/14423

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

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

Same issue

same issue

Same issue here…

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 😃

Same issue here

same issue

Could you try the following and try again?

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

+1

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

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

react-native upgrade worked for me

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

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.

Thank you @angly-cat! Reverting this commit is the solution for react-native 0.55.0 install pb! https://github.com/Plo4ox/react-native/commit/8b43d81290139da263c7c09dc127e9f24f89cad1 Now I am still unable to launch the simulator (Metro is launching fine)… don’t know why

Same issue

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)

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?