skip to Main Content

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


  1. Chosen as BEST ANSWER

    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.


  2. For React Native you also have to maintain the ios pod files. So, go to your ios folder and update your pods.

    Terminal command:

    cd ios/ && pod install --repo-update
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search