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

Error: "Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/hello_world.app/Info.plist" #20933

Closed
yusk opened this issue Aug 31, 2018 · 2 comments
Labels
Platform: iOS iOS applications. Resolution: Locked This issue was locked by the bot.

Comments

@yusk
Copy link

yusk commented Aug 31, 2018

Environment

$ react-native info

  React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
      Memory: 20.59 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 9.11.2 - ~/.nodenv/versions/9.11.2/bin/node
      npm: 6.3.0 - ~/.nodenv/versions/9.11.2/bin/npm
      Watchman: 4.7.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: 26.0.0, 26.0.3, 27.0.3, 28.0.2
        API Levels: 23, 26, 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:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

Description

Error

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

All Log

$ react-native init hello_world
This will walk you through creating a new React Native project in /Users/yusk/hello_world
Installing react-native...
Consider installing yarn to make this faster: https://yarnpkg.com

> fsevents@1.2.4 install /Users/yusk/hello_world/node_modules/fsevents
> node install

[fsevents] Success: "/Users/yusk/hello_world/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN react-native@0.56.0 requires a peer of react@16.4.1 but none is installed. You must install peer dependencies yourself.

+ react-native@0.56.0
added 766 packages from 362 contributors and audited 15204 packages in 59.981s
found 0 vulnerabilities

Setting up new React Native app in /Users/yusk/hello_world
Installing React...
+ react@16.4.1
added 1 package and audited 15228 packages in 9.722s
found 0 vulnerabilities

Installing Jest...
npm WARN deprecated istanbul-lib-hook@1.2.1: 1.2.0 should have been a major version bump
+ babel-preset-react-native@5.0.2
+ react-test-renderer@16.4.1
+ babel-jest@23.4.2
+ jest@23.5.0
added 291 packages from 244 contributors, updated 1 package and audited 33333 packages in 28.288s
found 0 vulnerabilities

To run your app on iOS:
   cd /Users/yusk/hello_world
   react-native run-ios
   - or -
   Open ios/hello_world.xcodeproj in Xcode
   Hit the Run button
To run your app on Android:
   cd /Users/yusk/hello_world
   Have an Android emulator running (quickest way to get started), or a device connected
   react-native run-android
$ cd hello_world
$ react-native run-ios
Scanning folders for symlinks in /Users/yusk/hello_world/node_modules (19ms)
Found Xcode project hello_world.xcodeproj
Launching iPhone 6 (iOS 11.4)...
Building using "xcodebuild -project hello_world.xcodeproj -configuration Debug -scheme hello_world -destination id=C0F60DD0-07DE-403F-92D4-86302D96CF00 -derivedDataPath build"
▸ Building React/yoga [Debug]
▸ Check Dependencies
▸ Copying /Users/yusk/hello_world/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.h
▸ Copying /Users/yusk/hello_world/node_modules/react-native/ReactCommon/yoga/yoga/YGMacros.h
▸ Copying /Users/yusk/hello_world/node_modules/react-native/ReactCommon/yoga/yoga/YGEnums.h
▸ Compiling Yoga.cpp
▸ Compiling YGNode.cpp
▸ Compiling YGStyle.cpp
▸ Compiling YGFloatOptional.cpp
▸ Compiling YGEnums.cpp
▸ Compiling Utils.cpp
▸ Compiling YGLayout.cpp
▸ Compiling YGNodePrint.cpp
▸ Analyzing YGFloatOptional.cpp
▸ Analyzing Yoga.cpp
▸ Analyzing YGStyle.cpp
▸ Analyzing YGNode.cpp
▸ Analyzing YGEnums.cpp
▸ Analyzing Utils.cpp
▸ Analyzing YGLayout.cpp
▸ Analyzing YGNodePrint.cpp
▸ Building library libyoga.a
▸ Building React/jsinspector [Debug]
▸ Check Dependencies
▸ Copying /Users/yusk/hello_world/node_modules/react-native/ReactCommon/jsinspector/InspectorInterfaces.h
▸ Compiling InspectorInterfaces.cpp
▸ Analyzing InspectorInterfaces.cpp
▸ Building library libjsinspector.a
▸ Building React/privatedata [Debug]
▸ Check Dependencies
▸ Copying /Users/yusk/hello_world/node_modules/react-native/ReactCommon/privatedata/PrivateDataBase.h
▸ Compiling PrivateDataBase.cpp
▸ Analyzing PrivateDataBase.cpp
▸ Building library libprivatedata.a
▸ Building React/double-conversion [Debug]
▸ Check Dependencies
▸ Running script 'Install Third Party'
** BUILD FAILED **



The following build commands failed:
	PhaseScriptExecution Install\ Third\ Party /Users/yusk/hello_world/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/hello_world.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/hello_world.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
@kelset kelset changed the title Latest Version Error: "Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/hello_world.app/Info.plist" Error: "Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/hello_world.app/Info.plist" Aug 31, 2018
@robmoorman
Copy link

Have you already tried running another (older) emulator, 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

5 participants