[!] CDN: trunk Repo update faile

2020-01-03  本文已影响0人  ws小人物

在使用cocoapods时,在执行pod search 操作时,报[!] CDN: trunk Repo update failed

解决办法:

1. podfile文件中指定source源为master:

source 'https://github.com/CocoaPods/Specs.git'

2.执行pod repo remove trunk移除trunk源

执行完后,pod search 就都正常了!

注意:podfile文件中一定要指定master源,因为现在默认是trunk源

source 'https://github.com/CocoaPods/Specs.git'

上一篇 下一篇

猜你喜欢

热点阅读