问题:在podfile文件里添加‘SVProgressHUD’,在终端cd到项目文件后,pod install操作,出现以下情况
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/6/Kingfisher/5.13.4/SVProgressHUD.podspec.json Response: Couldn't connect to server
解决:
在 Podfile 加上 source ‘https://github.com/CocoaPods/Specs.git’, 就是不用新版本的 CDN。
更改后如下:
platform :ios, '11.0'
source 'https://github.com/CocoaPods/Specs.git'
#inhibit_all_warnings!
use_frameworks!
target 'DSWB' do
pod "SnapKit"
pod "AFNetworking"
pod "SDWebImage"
pod "SVProgressHUD"
end
在终端里pod install --repo-update,就可以了