解决方法
在Podfile文件中添加一句话source 'https://github.com/CocoaPods/Specs.git'
pod repo remove trunk
接下来会报错# [!] Unable to find a pod with name, author, summary, or description matching AFNetworking 报错
该报错是一个很常见的错误,但是在搜索解决方法的时候,很多答案都是说删除~/Library/Caches/CocoaPods/search_index.json
但是有雨MacOS系统版本的原因,最新的系统往往这样做并没有用,还是无法解决;
下面是一个有用的解决方法,按照步骤操作即可:
1, pod repo remove master
2, cd ~/.cocoapods/repos
3, git clone --depth 1 github.com/CocoaPods/S… master
4, rm ~/Library/Caches/CocoaPods/search_index.json
5, pod search AFNetWorking
执行git clone --depth 1 github.com/CocoaPods/S… master报错
cocoapods fatal: unable to access ‘https://github.com/.../‘: LibreSSL SSL_connect: SSL_ERROR_SY
配置代理
没有配置代理,检查发现github ping不通
使用amazonaws.com.ipaddress.com/ 查询如图三个url的实际ip,然后添加到hosts文件(/etc/hosts )
Failed to connect to github.com port 443: Operation timed out
大多是代理的问题参考
# 解决git下载出现:Failed to connect to 127.0.0.1 port 1080: Connection refused拒绝连接错误
[# 【已解决】mac中git提交出错:fatal unable to access https://github.com LibreSSL SSL_connect SSL_ERROR_SYSCALL in connection to github.com 443](www.crifan.com/mac_git_pus…)
选Rule