question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React Native 0.55.0 CFBundleIdentifier error after fixing metro port

See original GitHub issue

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.

Issue Analytics

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

github_iconTop GitHub Comments

41reactions
kelsetcommented, 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.

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

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - React Native
The Metro bundler runs on port 8081. ... If you encounter an error such as npm WARN locking Error: EACCES while using the...
Read more >
ios - Print: Entry, ":CFBundleIdentifier", Does Not Exist
Open Project in Xcode. If Xcode > 9 run command react-native upgrade (this overwrites all your iOS configurations, use with caution!) then.
Read more >
解決策 - mozyのかきおき
BUILD FAILED ** The following build commands failed: ... React Native 0.55.0 CFBundleIdentifier error after fixing metro port · Issue #18687 ...
Read more >
metro waiting on exp | The Search Engine You Control
The React Native Debugger for port 19000 has no network calls or console logs. There are indeed network calls in my app. Within...
Read more >
Upgrading React Native to version 0.59 and beyond: a step-by ...
Upgrading is one of those tedious tasks that you'll inevitably face at some point when working on a React Native project.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found