react-native: ":CFBundleIdentifier", Does Not Exist

We use GitHub Issues for bugs.

If you have a non-bug question, ask on Stack Overflow: http://stackoverflow.com/questions/tagged/react-native

If you have a feature request, post it on Product Pains: https://productpains.com/product/react-native/

— Please use this template, and delete everything above this line before submitting your issue —

Description

react-native run-ios then:

Installing build/Build/Products/Debug-iphonesimulator/pizza.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The bundle identifier of the application could not be determined.
Ensure that the application's Info.plist contains a value for CFBundleIdentifier.
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/pizza.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist

Additional Information

Version: react-native 0.42.0 trouble in iOS, android works fine OS: MacOS 10.12.3

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 10
  • Comments: 29 (5 by maintainers)

Most upvoted comments

Experiencing the same issue on 0.42.0

I was looking around for any solution and found this thread. Maybe https://github.com/facebook/react-native/issues/7308#issuecomment-219597774 can help you solving this issue.

I propose to keep all discussions about :CFBundleIdentifier errors in one thread. Therefore, closing this issue in favor of https://github.com/facebook/react-native/issues/7308

DO NOT use space in project path. It had solved my problem.

What do you have in “Bundle Identifier” here image and here? image

I have got the same problem, and solved this problem by checking the console log and found this issue may be raised by another issue. the log has some errors: there is something wrong with the third-party:boost_1_63_0, and reports file not found, according this https://github.com/facebook/react-native/issues/14404,I finally solved this problem by replace the boost_1_63_0 with the one I downloaded

in my case I got this error from having the xcworkspace file saved in the folder ios and it stopped from using command react-native run-ios. I have this xcworkspace because it is required to have that from using fastlane to run another CI.

react-native run-ios
Scanning 804 folders for symlinks in /Volumes/RAMDISK/reactnative/gl/node_modules (107ms)
Found Xcode workspace onlyfastlane.xcworkspace
Launching iPhone 6 (iOS 10.2)...
Building using "xcodebuild -workspace onlyfastlane.xcworkspace -configuration Debug -scheme onlyfastlane -destination id=21C21FEE-A13E-43F3-9C61-E4EFFC98A46E -derivedDataPath build"
User defaults from command line:
    IDEDerivedDataPathOverride = /Volumes/RAMDISK/reactnative/gl/ios/build


xcodebuild: error: The workspace named "onlyfastlane" does not contain a scheme named "onlyfastlane". The "-list" option can be used to find the names of the schemes in the workspace.

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

RN 0.42.3 XCode 8.2 Once I removed the workspace file and everything run as normal. Please fix that

@mrbone xcode version 8.2.1

@alekseylovchikov same issue, check your xcode version, if it’s 7.2.1, you should update to xcode8. For me it works.