Cocoapods:[!] CDN: trunk Repo up

2019-11-04  本文已影响0人  Eyes_cc

问题:[!] CDN: trunk Repo update failed

[!] CDN: trunk Repo update failed - 17 error(s):
CDN: trunk URL couldn't be downloaded: ...

解决
添加source源:source 'https://github.com/CocoaPods/Specs.git'。podfile文件中添加source源后,pod install和pod update可以正常操作,但是pod search有些库却不正常。

platform :ios, '10.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'xxx' do
  use_frameworks!

  # Pods forxxx
  pod 'MBProgressHUD'
end

问题:pod search有些库却不正常。

Mac-Pro:xxx mac$ pod search mj
Creating search index for spec repo 'master'.. Done!
[!] CDN: trunk Repo update failed - 81 error(s):
CDN: trunk URL couldn't be downloaded: ...

解决

pod repo remove trunk

执行pod repo remove trunk移除trunk源,pod search就都正常了!

上一篇 下一篇

猜你喜欢

热点阅读