问题
在更新本地 specs 仓库时,出现以下错误:
bash
[!] Couldn't determine repo type for URL: https://cdn.cocoapods.org/: SSL_connect returned=1 errno=0 peeraddr=172.67.74.167:443 state=error: certificate verify failed (unable to get local issuer certificate) [!] [Codegen] warn: using experimental new codegen integration
解决方案
执行以下命令以禁用 CocoaPods 统计信息并设置 SSL 证书:
bash
export COCOAPODS_DISABLE_STATS=1
export SSL_CERT_FILE=/etc/ssl/cert.pem
pod install