I followed the steps in https://reactnative.dev/docs/environment-setup and after initializing the app, when I went to build my app, it gives me this error in terminal:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/----/Library/Developer/Xcode/DerivedData/AwesomeProject-fneeqrmgpvoyyygpzbykmsofeknl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/SysUio.o /Users/asaadat/Documents/CollegeStuff/EECS\ 441/test_app/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')
CompileC /Users/----/Library/Developer/Xcode/DerivedData/AwesomeProject-fneeqrmgpvoyyygpzbykmsofeknl/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RCT-Folly.build/Objects-normal/x86_64/NetOps.o /Users/asaadat/Documents/CollegeStuff/EECS\ 441/test_app/AwesomeProject/ios/Pods/RCT-Folly/folly/net/NetOps.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RCT-Folly' from project 'Pods')
(2 failures)
in xcode when I try to build the ios app, it shows me this: xcode screenshot
I've tried reinstalling the pods and pod repo update and even starting the tutorial over. I've also deleted node_modules and did npm install again. Still same error. I'm on React-Native 0.66.
I'm new to developing with react-native and ios and I'm confused why a brand new project is showing this.
Here is my Podfile:
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
platform :ios, '11.0'
target 'AwesomeProject' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
target 'AwesomeProjectTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable the next line.
use_flipper!()
post_install do |installer|
react_native_post_install(installer)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
