관리 메뉴

개발 여행자, 현

[오류해결] pod install 오류 해결 (No podspec found for `react-native-version-info` in `../node_modules/react-native-version-info) 본문

ReactNative

[오류해결] pod install 오류 해결 (No podspec found for `react-native-version-info` in `../node_modules/react-native-version-info)

예스현 2022. 5. 2. 15:41
pod install 오류

 

 

1. 문제상황

작업중인 브랜치가 변경되어서 pod install을 재실행 하였더니다음과 같은 오류가 발생하였다.

pod install
[!] The version of CocoaPods used to generate the lockfile (1.11.3) is higher than the version of the current executable (1.11.2).

[!] No podspec found for `react-native-version-info` in `../node_modules/react-native-version-info

다음과 같은 오류가 발생했다.

 

2. 원인

다음과 같은 오류는 podfile.lock이 이전 버전의 Cocoapods로 빌드되었기 때문이다.

 

3. 해결방법

1) Ios/podfile.lock 파일을 삭제

2) pod install 실행

 

 이렇게 하면 현재 종속성과 함께 새 podfile.lock이 생성이 된다.
파일이 이미 다운로드되어 있어야 하므로 너무 오래 걸리지 않아야 하며 해당 파일에 연결하기만 하면 된다.

 

-> 만약에 이렇게 해도 같은 오류가 발생한다면

yarn install
pod install

yarn install을 먼저 하고 pod install을 다시 실행하면 된다.