Mac 执行 pod install 命令出现错误 Couldn't determine repo type for URL

在Mac系统执行命令 pod install 时出现如下错误

Analyzing dependencies
[!] Couldn't determine repo type for URL: `https://github.com/CocoaPods/Specs.git`: SSL_connect returned=1 errno=0 peeraddr=20.205.243.166:443 state=error: certificate verify failed (unable to get local issuer certificate)

执行如下2条命令解决问题

export SSL_CERT_FILE=/etc/ssl/cert.pem

pod repo update

 

posted @ 2026-02-12 12:38  爱学习的绿叶  阅读(2)  评论(0)    收藏  举报