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 init` new application won't run (React Native 0.66, macOS 11.6, Xcode 13.0)

See original GitHub issue

Description

** BUILD FAILED ** The following build commands failed: CompileC /Users/my-username/Library/Developer/Xcode/DerivedData/AwesomeProject-gosjsvksbvgusscazfjiagvwmfqy/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/FileUtil.o /Users/my-username/AwesomeProject/ios/Pods/RCT-Folly/folly/FileUtil.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target ‘RCT-Folly’ from project ‘Pods’) (1 failure)

React Native version:

System: OS: macOS 11.6 CPU: (16) x64 Intel® Core™ i9-9880H CPU @ 2.30GHz Memory: 365.40 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 12.19.0 - ~/.nvm/versions/node/v12.19.0/bin/node Yarn: 1.22.11 - /usr/local/bin/yarn npm: 6.14.8 - ~/.nvm/versions/node/v12.19.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps To Reproduce

  1. Run the following commands as shown on the Get Started page of the docs, to create a new application:
  • npx react-native init AwesomeProject
  • cd AwesomeProject
  • npx react-native start
  1. In a new terminal while Metro is running, run the following command:
  • npx react-native run-ios

Expected Results

Expect the application to run on the simulator successfully.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:20

github_iconTop GitHub Comments

3reactions
robertthecodercommented, Oct 14, 2021

I was able to get past this error by creating a new RN project inside a different parent folder

1reaction
robertthecodercommented, Oct 17, 2021

No problem!I feel the same way about it and was surprised the folder name could cause this but at least it works now haha.

If anyone figures out why this happens, please let me know 😃

My theory was maybe certain characters in the folder path cant be processed in xcode

Read more comments on GitHub >

github_iconTop Results From Across the Web

npx react-native run-ios doesn't work after initializing the project
How to fix: ... This is caused by Flipper-Folly being broken on the latest Catalina build. Until this gets patched, your best bet...
Read more >
How to fix “pod install” error in React Native on Mac M1
It's time to run your new app again (also, make sure that XCode is up and running when you restart your React Native...
Read more >
Prerequisites for Applications - React Native
iOS: Make the project build​ · Fix an API change in the AppDelegate.m . Open this file and apply this change: #if DEBUG...
Read more >
React Native App no longer builds … | Apple Developer Forums
My react native app previously built and ran on a simulator in xcode 11. However sine upgrading to xcode 12.5 i get the...
Read more >
[Answers]-Xcode 13 Debug-iphonesimulator/YogaKit/YogaKit ...
A brand new React Native 0.66 app was created with command below: npx react-native init myapp. The app was launched successfully with npx...
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