반응형
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
'개발 > React Native' 카테고리의 다른 글
[RN 개발일지] 좋아요 기능 구현하기 (버튼 클릭 시 이미지 및 좋아요 수 변경) (0) | 2024.05.15 |
---|---|
[에러] error Failed to install the app. Command failed with exit code 1: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 이슈 (0) | 2024.05.07 |
[React Native] Text에서 특정 글자만 색상(스타일) 변경하기. (0) | 2023.07.06 |
Android Emulator에서 FoldablePhone 해상도 테스트하기 (0) | 2023.07.04 |
React Native 화면 크기별로 폰트 사이즈 변경하기 (0) | 2023.07.04 |