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.

npx react-native run-ios not working for react native fresh project

See original GitHub issue

Description

Based on the getting started guide provided here https://reactnative.dev/docs/environment-setup, I am trying to build a build a project using react native cli. I followed the exact steps provided in the article and the project starts for android but not for ios. The error I am getting is

2022-05-09 19:52:26.204 xcodebuild[27325:198569] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-05-09 19:52:26.208 xcodebuild[27325:198569] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

and this

Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening AwesomeProject.xcworkspace

The following build commands failed:
	CompileC /Users/jaydave5/Library/Developer/Xcode/DerivedData/AwesomeProject-gypcnmvewcvovdgwbdrhxjrrxutt/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/jaydave5/Documents/native\ projects/bare\ react\ native/AwesomeProject/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
(1 failure)

On doing some research I saw a stackoverflow post where it said to try opening the xcode workspace in ios folder and trying to build from there I have attached the screenshot of the error I received there

Screenshot 2022-05-09 at 8 23 34 PM

Version

0.68.2

Output of npx react-native info

System: OS: macOS 12.2.1 CPU: (8) x64 Apple M1 Memory: 43.58 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.17.1 - ~/.nvm/versions/node/v14.17.1/bin/node Yarn: 1.22.18 - ~/.nvm/versions/node/v14.17.1/bin/yarn npm: 6.14.13 - ~/.nvm/versions/node/v14.17.1/bin/npm Watchman: 2022.03.21.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.4, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.3.1/13E500a - /usr/bin/xcodebuild Languages: Java: 11.0.15 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Step 1 npx react-native init AwesomeProject

Step 2 npx react-native start

Step 3 npx react-native run-ios

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
olga-gizacommented, May 16, 2022

@JordanDDisch Yup - downgrading resolved mentioned issue 🎉 Then I faced another problem and for that error, I found this article which helped me run the app: https://khushwanttanwar.medium.com/xcode-12-compilation-errors-while-running-with-ios-14-simulators-5731c91326e9

0reactions
jaydave1412commented, May 25, 2022

I ran pod install normally it worked without any error but I faced this issue to resolve but when I ran arch -x86_64 pod install boiler plate app worked flawlessly

Read more comments on GitHub >

github_iconTop Results From Across the Web

npx react-native run-ios not working for react native fresh project
Since I am using a M1 based mac book when I ran pod install normally it did not work but when I ran...
Read more >
Troubleshooting - React Native
Troubleshooting. These are some common issues you may run into while setting up React Native. If you encounter something that is not listed ......
Read more >
Problem with npx react-native run-ios. : r/reactnative - Reddit
Hi, Im trying to run my first react native app but I have error. Failed to build iOS project. We ran "xcodebuild" command...
Read more >
Run React Native App on iOS Device | by Ajeng - Dev Genius
If you read this article I assume you already have a react native app running on development. The first thing to do is...
Read more >
"react-native run-ios --device" fa… | Apple Developer Forums
The react-native run-ios --device command fails with an error. The app runs on the simulator using the react-native run-ios command without any problem....
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