更新本地 specs 仓库时,出现 SSL 证书验证失败错误 临时解决方案

问题

在更新本地 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
相关推荐
是Dream呀1 小时前
Python从0到100(八十六):神经网络-ShuffleNet通道混合轻量级网络的深入介绍
网络·python·神经网络
山楂树の2 小时前
计算机网络 性能指标相关
网络·计算机网络
泪不是Web妳而流2 小时前
【HTML入门】Sublime Text 4与 Phpstorm
网络·经验分享·编辑器·html·学习方法·sublime text·phpstorm
star010-3 小时前
一文学会HTML编程之视频+图文详解详析
前端·网络·网络安全·html·html5
学问小小谢8 小时前
第26节课:内容安全策略(CSP)—构建安全网页的防御盾
运维·服务器·前端·网络·学习·安全
一ge科研小菜鸡9 小时前
网络安全实战指南:攻防技术与防御策略
网络
马立杰12 小时前
H3CNE-33-BGP
运维·网络·h3cne
Mason Lin13 小时前
2025年1月22日(网络编程 udp)
网络·python·udp
字节全栈_rJF13 小时前
概述、 BGP AS 、BGP 邻居、 BGP 更新源 、BGP TTL 、BGP路由表、 BGP 同步
网络·智能路由器·php
EchoToMe13 小时前
电信传输基本理论/5G网络层次架构——超三万字详解:适用期末考试/考研/工作
网络·5g·架构