問(wèn)題:在podfile文件里添加‘SVProgressHUD’,在終端cd到項(xiàng)目文件后,pod install操作,出現(xiàn)以下情況
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,就可以了