I’m a new user to Mac OS and its system and M1.
After install dependencies of my project and trying yarn iOS
* BUILD FAILED **
The following build commands failed:
CompileC /Users/Library/Developer/Xcode/DerivedData/cemfgnbnzwyxlydpmalbfirprbcu/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RNScreens.build/Objects-normal/arm64/RNSScreenViewEvent.o /Users/Trampo/node_modules/react-native-screens/ios/RNSScreenViewEvent.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNScreens' from project 'Pods')
(1 failure)
2
Answers
I change React Native version to 0.64.4, run yarn, cd iOS pod install
pod update, Xcode and terminal (iterm2) to running with rosetta.
Work, thanks.
For React Native you also have to maintain the ios pod files. So, go to your ios folder and update your pods.
Terminal command: