关于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
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3