最近使用Cocoapods,出現(xiàn)如下報(bào)錯(cuò):
CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/deprecated_podspecs.txt, error: Net::OpenTimeout
按照官方文檔在 podfile文件中添加source源:
source 'https://github.com/CocoaPods/Specs.git'
podfile文件中添加source源后,pod install和pod update可以正常操作,但是pod search有些庫卻不正常,此時(shí)可以在終端執(zhí)行
pod repo remove trunk
移除trunk源,執(zhí)行完就OK了!
參考文章:
1.官方文檔
2.Github Issules