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.

Not able to run a new react-native project for ios

See original GitHub issue

Is this a bug report?

Yes

Have you read the Bugs section of the How to Contribute guide?

yes

Environment

  1. react-native -v: react-native-cli: 2.0.1
  2. node -v: v6.11.1
  3. npm -v: 3.10.10
  4. yarn --version: 0.27.5

Then, specify:

  • Target #Platform: iOS
  • Development Operating System: macOS Sierra v10.12.3
  • Build tools: Xcode 8.3.3

Steps to Reproduce

(Write your steps here:)

1.Open terminal
2.react-native init ProjectName 3.From project folder type react-native start 4.react-native run-ios

Expected Behavior

It should build a project which shows the initial page of the react-native app.

Actual Behavior

It shows Build Failed and displays a list a errors.

screen shot 2017-07-26 at 5 01 25 pm This is what is shows.

tar: Error exit delayed from previous errors.

Command /bin/sh failed with exit code 1

** BUILD FAILED **

The following commands produced analyzer issues:

Analyze /Users/apple/Desktop/RCTApp/RCTApp/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/apple/Desktop/RCTApp/RCTApp/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c

(2 commands with analyzer issues)

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

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

When the same project is run on Xcode 8.3.3 I get issues as below: screen shot 2017-07-26 at 5 37 20 pm

Reproducible Demo

It happens to every newly created react native projects

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hramoscommented, Aug 3, 2017

Duplicate of #14423

1reaction
hramoscommented, Aug 3, 2017

Duplicate of #14447

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run react native project on iOS - Stack Overflow
1 Answer 1 · Open your ios/ *project_name*.xcworkspace in xcode. · Choose your project in the left side of the xcode. · Go...
Read more >
Troubleshooting - React Native
You will also need to update your applications to load the JavaScript bundle from the new port. If running on device from Xcode,...
Read more >
Setup React Native Environment For IOS | by randerson112358
Start Xcode on the Mac. · Choose Preferences from the Xcode menu. · In the General panel, click Downloads. · On the Downloads...
Read more >
Run React Native App on iOS Device | by Ajeng - Dev Genius
The first thing to do is to connect your iOS device to your Mac with a USB cable. Open your react native app's...
Read more >
Get Started with React Native - Visual Studio App Center
Run pod install --repo-update from iOS directory to install CocoaPods dependencies. · Create a new file with the name AppCenter-Config.plist with ...
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