关于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 ...

也可以用以上的方法解决

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM