본문 바로가기
개발

[React Native] Failed to install CocoaPods dependencies for iOS project, which is required by this template.

by dohye1 2022. 10. 2.

목차

    반응형

    기존에 인텔 맥에서 진행하던 프로젝트를 m1맥에서 실행시켜보면 아래와 같은 에러가 났다.

    pod install이 실행이 안되는문제인데, 이것저것 찾아보다가 

    이 블로그를 찾았다.

     

    해결책은 

    #1 Install ffi 터미널에서 입력
    
    sudo arch -x86_64 gem install ffi
    
    #2 Re-install dependencies ios/ 위치에서 입력
     
    arch -x86_64 pod install

    라고 한다.

     

    그래서 이 코드를 실행해보니 pod도 잘 설치되고, simulator에서도 잘 켜진다.

     

    흑......다행이다....

     

    이젠 pod install을 실행하면안되고, 저 위의 코드를 실행시켜야한다!