-
[ios_에러해결] pod install 명령어 이슈▶︎ iOS/react-native 2025. 2. 17. 15:49반응형
▼ 스팩
Apple Silicon: M1
mac OS: Sequoia 15.3
react: 16.9.0
react-native-cli: 2.0.1
react-native: 0.62.2
Xcode: 16.2 (16C5032a)
pod: 1.16.2
nvm: 0.39.1
node: 14.21.3
npm: 6.14.18
▼ 이슈내용
pod install을 명령했더니 아래와 같은 에러문구가 발생하였다
▼ 에러내용
Auto-linking React Native modules for target 'hdcIparkEngineerApp': RNCAsyncStorage, RNDateTimePicker, RNDeviceInfo, RNFS, RNGestureHandler, RNImageCropPicker, RNImageMarker, RNReanimated, RNSVG, RNScreens, RNSketchCanvas, RNVectorIcons, lottie-react-native, react-native-camera, react-native-cameraroll, react-native-get-random-values, react-native-w ebview, and rn-fetch-blob Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "lottie-ios":
In snapshot (Podfile. lock):
lottie-ios (from '../node_modules/lottie-ios')
In Podfile:
lottie-ios (from ' ../node_modules/lottie-ios')
lottie-react-native (from '•/node_modules/lottie-react-native') was resolved to 3.5.0, which depends on lottie-ios (~> 3.1.8)
▼ 이슈 해결방법
* 버전충돌:
lottie-react-native@3.5.0버전은 lottie-ios@~3.1.8을 요구함.
아래의 명령어를 순차적으로 적용하였더니 pod install이 정상적으로 해결되었다.
% npm install lottie-ios@3.1.8 % cd ios % rm -rf Pods Podfile.lock % pod install --repo-update % cd ..
* 수정전 버전 "lottie-ios": "^3.5.0" "lottie-react-native": "^3.5.0" * 수정후 버전 "lottie-ios": "^3.1.8" "lottie-react-native": "^3.5.0"
반응형'▶︎ iOS > react-native' 카테고리의 다른 글
[ios] Xcode16 업그레이드 리포트 (0) 2025.02.17 [ios_에러해결] pod install 명령어 이슈 (0) 2025.02.17