React-native: Print: Entry, ":CFBundleIdentifier", Does Not Exist

Created on 9 Aug 2018  路  16Comments  路  Source: facebook/react-native

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz
Memory: 2.51 GB / 8.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.8.0 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.2.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: ^16.4.1 => 16.4.2
react-native: ^0.56.0 => 0.56.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
react-native-linear-gradient: 2.4.0

Description

App is working fine with android while running react-native run-ios is giving error
Scanning folders for symlinks in /Users/omkaryadav/Documents/project/react/july17/node_modules (35ms)
Found Xcode workspace weatherApp.xcworkspace
Building using "xcodebuild -workspace weatherApp.xcworkspace -configuration Debug -scheme weatherApp -destination id=7DF3F4ED-1395-4452-B409-6AE1B9263D6F -derivedDataPath build"
User defaults from command line:

IDEDerivedDataPathOverride = /Users/omkaryadav/Documents/project/react/july17/ios/build

2018-08-09 13:45:17.205 xcodebuild[55741:1825313] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Expected terminating '}' for dictionary at line 42" UserInfo={NSDebugDescription=Expected terminating '}' for dictionary at line 42}}

2018-08-09 13:45:17.207 xcodebuild[55741:1825313] [MT] IDEFileReferenceDebug: [Load] Failed to load container at path: /Users/omkaryadav/Documents/project/react/july17/ios/weatherApp.xcodeproj, Error: Error Domain=Xcode3ProjectErrorDomain Code=2 "Project /Users/omkaryadav/Documents/project/react/july17/ios/weatherApp.xcodeproj cannot be opened because the project file cannot be parsed." UserInfo={NSLocalizedDescription=Project /Users/omkaryadav/Documents/project/react/july17/ios/weatherApp.xcodeproj cannot be opened because the project file cannot be parsed.}

--- xcodebuild: WARNING: Unable to open project file '/Users/omkaryadav/Documents/project/react/july17/ios/weatherApp.xcodeproj' in workspace 'weatherApp.xcworkspace'.

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

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

iOS Locked

Most helpful comment

It looks like react native developers can't solve this issue and I should start learning flutter 馃敘

All 16 comments

I'm losing faith in react-native now
error that keep coming randomly :)

Getting same issue every time even when creating new project. Any one have any suggestion how to resolve it

Just build your app before running react-native run-ios. And please use Markdowns when you past some errors or code.

There are a lot of questions about this issue on the internet. Please check them, here at GitHub or at StackOverflow. Creating an new issue is only handy with more information like things you have tried etc. At this moment it looks like just the same issue as all the others, so creating a new one is not really necessary. 馃槃

Yes there are lot of question on the internet and none of them solves my problem.
I'm facing this problem from a while and not able to solve it so I thought opening new issue would be able to attract focus of some people who can possibly help me out

Could you tell us what you have already tried? Without that, we basically just suggest to do that what already is suggested on the internet.

Every time creating a new project gives me the following:

The following commands produced analyzer issues:
Analyze Base/RCTModuleMethod.mm normal x86_64
(1 command with analyzer issues)

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

Could you tell us what you have already tried? Without that, we basically just suggest to do that what already is suggested on the internet.

deleting node_modules and then running command npm install
deleting ~/.rncash

Facing same issue, have tried multiple solutions

* BUILD SUCCEEDED *

The following commands produced analyzer issues:
Analyze Base/RCTModuleMethod.mm normal x86_64
(1 command with analyzer issues)

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


react-native info

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
      Memory: 19.72 MB / 16.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 9.7.1 - ~/.nvm/versions/node/v9.7.1/bin/node
      Yarn: 1.7.0 - ~/.nvm/versions/node/v9.7.1/bin/yarn
      npm: 6.2.0 - ~/.nvm/versions/node/v9.7.1/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
      Android SDK:
        Build Tools: 23.0.1, 25.0.0, 25.0.2, 26.0.3, 27.0.0, 27.0.3, 28.0.2
        API Levels: 23, 25, 26, 27, 28
    IDEs:
      Android Studio: 3.1 AI-173.4907809
      Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.4.1 => 16.4.1
      react-native: 0.56.0 => 0.56.0
    npmGlobalPackages:
      create-react-native-app: 1.0.0


*Solution tried so far: *

https://github.com/facebook/react-native/issues/7308#issuecomment-216317248

https://github.com/facebook/react-native/issues/7308#issuecomment-219597774

https://github.com/facebook/react-native/issues/7308#issuecomment-230198331

https://github.com/facebook/react-native/issues/14447#issuecomment-308635478

https://stackoverflow.com/a/51552501/4089357

https://stackoverflow.com/a/40890239/4089357

Facing the same issue

It looks like react native developers can't solve this issue and I should start learning flutter 馃敘

Facing the same issue, can anyone help on it.
I am trying to run hello world program, I can`t build an iOS app.
https://facebook.github.io/react-native/docs/getting-started.html

NOTE: I am just trying from the react native official document.

Facing the same issue

For those of you who are starting an app from scratch and do not want to use Expo, we had success getting around this error by starting the app with Expo and then ejecting.

Running from xcode and choose another older iPhone works for me, e.g. react-native run-ios --simulator="iPhone 8

Reiterating what Marc said in #14423 at the start of the year. This error plainly indicates the project failed to compile or link. You'll need to look further up in your output for a hint of the root cause. I've opened #21303 in order to help people who run into this issue, and will lock this thread to avoid causing more confusion.

Duplicate of #21303

Was this page helpful?
0 / 5 - 0 ratings