在使用cocoapods時,在執(zhí)行pod search 操作時,報[!] CDN: trunk Repo update failed
解決辦法:
1. podfile文件中指定source源為master:
source 'https://github.com/CocoaPods/Specs.git'
2.執(zhí)行pod repo remove trunk移除trunk源
執(zhí)行完后,pod search 就都正常了!
注意:podfile文件中一定要指定master源,因為現(xiàn)在默認(rèn)是trunk源
source 'https://github.com/CocoaPods/Specs.git'