Cocoapods:[!] CDN: trunk Repo update failed - 17 error(s)

问题:[!] 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就都正常了!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。