Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native build failed - (in target 'RCT-Folly' from project 'Pods')

I am using Mac M1, trying to run React Native on IOS Simulator and I got this error:

CompileC /Users/jack/Library/Developer/Xcode/DerivedData/sample-gnrhtdrpdsucuifckqcsppcsfdbn/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/arm64/SysUio.o /Users/jack/React\ Native/sample/ios/Pods/RCT-Folly/folly/portability/SysUio.cpp normal arm64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')

Any solution to solve this?

like image 414
Jack Venevankham Avatar asked Oct 25 '25 16:10

Jack Venevankham


2 Answers

Ensure that your project path doesn't have any spaces within it. I have a M1 Pro and it worked!

Solution link: https://github.com/facebook/folly/issues/1670

like image 155
Adam Avatar answered Oct 28 '25 08:10

Adam


I had the same issue. What I did is, check the project folder path and then realised space contain in one folder.

  1. solution (1). remove the space and re open the project and run.
  2. solution (2). create new project without spaces in folder path.

Blockquote

Ex: User/My Project/ABC need to change into User/MyProject/ABC

My recommendation is solution 2

like image 34
kanishka nanayakkara Avatar answered Oct 28 '25 08:10

kanishka nanayakkara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!