Not able to run a new react-native project for ios
See original GitHub issueIs this a bug report?
Yes
Have you read the Bugs section of the How to Contribute guide?
yes
Environment
react-native -v
: react-native-cli: 2.0.1node -v
: v6.11.1npm -v
: 3.10.10yarn --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.
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:
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:
- Created 6 years ago
- Reactions:4
- Comments:7 (3 by maintainers)
Top GitHub Comments
Duplicate of #14423
Duplicate of #14447