React Native's initial project doesn't run on IOS.
See original GitHub issueDescription
I created a new project using the command npx react-native init MyApp --template react-native-template-typescript.
When i run npx react-native run-ios, it gives me below error.
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/macbookpro/Library/Developer/Xcode/DerivedData/MyApp-gvadqhjqjqogdegfwqsahxwqnkps/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/FBReactNativeSpec.build/Script-8C01FEA837F8EC37C13D05D97D3F6C1B.sh
(1 failure)
React Native version:
System: OS: macOS 11.2.3 CPU: (4) x64 Intel® Core™ i5-7360U CPU @ 2.30GHz Memory: 58.32 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.16.0 - /usr/local/bin/node Yarn: Not Found npm: 6.14.11 - /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.4, DriverKit 20.2, macOS 11.1, tvOS 14.3, watchOS 7.2 Android SDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 12.4/12D4e - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.1 => 17.0.1 react-native: 0.64.0 => 0.64.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Issue Analytics
- State:
- Created 2 years ago
- Reactions:14
- Comments:41 (2 by maintainers)

Top Related StackOverflow Question
Removing
from
~/.bash_profile.AND
Commenting out all the code from
project/node_modules/react-native/scripts/find-node.shhelped to solve this issue.I am facing the same issue with
yarn iosbut if I build the app from Xcode it works.