1. podfile文件中指定source源为master:
source ‘https://github.com/CocoaPods/Specs.git‘
2.终端执行$ pod repo remove trunk
移除trunk源
执行完后,$ pod search XXX
就都正常了!
podfile
文件中一定要指定master
源,因为现在默认是trunk
源
[!] CDN: trunk Repo update failed - 17 error(s): CDN: trunk URL couldn‘t be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/1/d/4/CocoaAsyncSocket/0.0.1/CocoaAsyncSocket.podspec.json, error: Operation timed out - SSL_connect ...
也可以用以上的方法解决
原文:https://www.cnblogs.com/liuzhi20101016/p/12489861.html