问题描述
Podfile 内容
install! 'cocoapods', :warn_for_unused_master_specs_repo => false source 'https://cdn.cocoapods.org/' platform :ios, '10.0' inhibit_all_warnings! use_modular_headers! target 'DemoTarget' do pod 'libpag', '~>3.2.4.37' pod 'Mantle', '~> 1.0' pod 'Masonry', '~> 1.1' pod 'SDWebImage', '~> 5.9' pod 'SDWebImageWebPCoder' pod 'SnapKit' pod 'CocoaLumberjack/Swift', '~> 3.6' pod 'SSZipArchive' end
执行命令
pod install --repo-update --verbose
问题表现
输出如下提示后一直等待
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
观察网络使用情况并无网络流量消耗,判断是卡死了;
尝试解决
-
Google 找到一个链接 https://stackoverflow.com/questions/59405617/cdn-trunk-relative-path-cocoapods-version-yml-exists如图,很显然我的问题不是这个原因
-
还有的人说需要重新安装 psych,于是执行
sudo gem install psych
后重试无果 -
pod repo remove trunk
后重试无果 -
cd 到了 trunk 目录中删除 CocoaPods-version.yml 和 CocoaPods-version.yml.etag 后重试无果
最终解决
删除 trunk 目录
rm -fr ~/.cocoapods/repos/trunk
然后重试解决
原文链接:https://blog.csdn.net/xiaofei125145/article/details/123637760?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165918321816781818738233%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=165918321816781818738233&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-30-123637760-null-null.nonecase&utm_term=cdn
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/324