榮耀存于心,而非流于形。
前言
最近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沒有整好(廢話)。