본문 바로가기
개발/React Native

[에러] pod install --repo-update m1 이슈

by 세크레투스 2024. 5. 7.
반응형
SMALL

1. 상황 설명

pod isntall 시 버전 문제가 발생
pod install --repo-update 를 시도해보라는 메시지가 있음.

 

시도를 하면

[!] CocoaPods could not find compatible versions for pod "Firebase/Auth":
  In Podfile:
    RNFBAuth (from `../node_modules/@react-native-firebase/auth`) was resolved to 16.4.6, which depends on
      Firebase/Auth (= 10.2.0)

None of your spec sources contain a spec satisfying the dependency: `Firebase/Auth (= 10.2.0)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

같은 에러만 반복됨.

mac book pro M1 버전을 쓰는 사람들에게 발생하는 이슈라고 한다.

 

2. 해결 방법

Podfile.lock, workspace 파일 삭제 후,

sudo arch -x86_64 gem install ffi
arch -x86_64 pod install --repo-update

를 터미널에 입력 후,

yarn ios를 입력하면 시뮬레이션이 정상적으로 작동되는 것을 확인할 수 있다.

반응형
LIST