ARTICLE DETAIL

资讯详情

深耕网站建设、视觉设计与SEO优化的一线实战洞察。

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

Mac 执行 pod install 命令出现错误 Couldnt 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

 

返回列表