CDN: trunk URL couldn't be downloaded:***Response: SSL peer certificate or SSH remote key was not OK

错误信息

CDN: trunk URL couldn't be downloaded: https://cdn.jsdelivr.net/cocoa/Specs/0/3/5/Firebase/6.9.0/Firebase.podspec.json Response: SSL peer certificate or SSH remote key was not OK

解决思路

由于 pod 重新安装,没有执行 pod update, 导致 pod 仓库没有同步下来造成的。
解决办法就是 pod update过程很漫长。当然也可以切换为清华源,不做介绍了
通过pod repo来检查本地是否有 cocoapods 仓库

~ » pod repo

cocoapods
- Type: git (master)
- URL:  https://github.com/CocoaPods/Specs.git
- Path: /Users/mac/.cocoapods/repos/cocoapods

trunk
- Type: CDN
- URL:  https://cdn.cocoapods.org/
- Path: /Users/mac/.cocoapods/repos/trunk

2 repos

CocoaPods 清华镜像使用帮助

Pod 常见问题解决

iOS 卡住在 Cloning spec repo 'cocoapods' from 'https://github.com/CocoaPods/Specs.git'

你可能感兴趣的:(CDN: trunk URL couldn't be downloaded:***Response: SSL peer certificate or SSH remote key was not OK)