美文网首页iOS (oc)OC-开发案例收集
Cocoapods -- CDN: trunk URL coul

Cocoapods -- CDN: trunk URL coul

作者: MQ_Twist | 来源:发表于2019-12-13 09:46 被阅读0次

荣耀存于心,而非流于形。

前言

最近Cocoapods升级到1.8.4后,install和update都没有问题,但是search的时候就遇到了问题,问题如下:

CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/0/a/8/YYModel@Haidora/1.0.4/YYModel@Haidora.podspec.json, 
error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)

不多哔哔,先上两种解决方法:

  • 在Podfile里面添加Source
source 'https://github.com/CocoaPods/Specs.git'

target 'XXXDemo' do

  use_frameworks!

  pod 'YYModel'

end
  • 移除trunk
pod repo remove trunk

后记

为什么这样呢,我寻思着是CDN没有整好(废话)。

相关文章

网友评论

    本文标题:Cocoapods -- CDN: trunk URL coul

    本文链接:https://www.haomeiwen.com/subject/hsaxnctx.html