본문 바로가기
프로그래밍/Flutter <Dart>

[Cocoapods] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/` 에러 해결

by TaeGyeong Lee 2025. 7. 2.

개요 

새로운 맥북에 기존 Flutter 프로젝트를 구동하기 위해 pod install 명령어를 실행했습니다. 그런데 아래와 같이 에러가 발생했습니다. 

[!] Couldn't determine repo type for URL: `https://cdn.cocoapods.org/`: SSL_connect returned=1 errno=0 peeraddr= state=error: certificate verify failed (unable to get local issuer certificate)

 

해결 방법 

openssl 패키지를 업그레이드 하세요. 버전마다 다르지만 새 맥북에 기본적으로 설치된 openssl 버전은 0.98.x 였습니다. 지금 openssl 최신 버전이 3.x.x 이니 호환 문제가 생겼습니다. 

brew upgrade openssl