关于cocoapods中的一些报错解决方案

[!] CDN: trunk - Cannot perform full-text search because Algolia returned an error: 0: Cannot reach any host: execution expired, execution expired, execution expired, execution expired

解决办法:

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