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

Print: Entry, ":CFBundleIdentifier", Does Not Exist #20596

Closed
omi10859 opened this issue Aug 9, 2018 · 16 comments
Closed

Print: Entry, ":CFBundleIdentifier", Does Not Exist #20596

omi10859 opened this issue Aug 9, 2018 · 16 comments
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@omi10859
Copy link

omi10859 commented Aug 9, 2018

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] <IDEFileReference, 0x7fe9ae022ee0: group:weatherApp.xcodeproj> 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

@omi10859
Copy link
Author

omi10859 commented Aug 9, 2018

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

@Parvinderjit
Copy link

Parvinderjit commented Aug 9, 2018

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

@vdlindenmark
Copy link

vdlindenmark commented Aug 9, 2018

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. 😄

@omi10859
Copy link
Author

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

@vdlindenmark
Copy link

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.

@Parvinderjit
Copy link

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

@omi10859
Copy link
Author

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

@kelset kelset added the Platform: iOS iOS applications. label Aug 18, 2018
@abdullahtariq1171
Copy link

abdullahtariq1171 commented Aug 20, 2018

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: **

#7308 (comment)

#7308 (comment)

#7308 (comment)

#14447 (comment)

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

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

@tolulopep
Copy link

Facing the same issue

@omi10859
Copy link
Author

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

@prabhu0023
Copy link

prabhu0023 commented Aug 31, 2018

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.

@heberuriegas
Copy link

Facing the same issue

@heberuriegas
Copy link

@emaddoma
Copy link

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.

@robmoorman
Copy link

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

@hramos
Copy link
Contributor

hramos commented Sep 24, 2018

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

@hramos hramos closed this as completed Sep 24, 2018
@facebook facebook locked as resolved and limited conversation to collaborators Sep 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests