私有Pod更新/安装停留在预下载中:“"来自“"步 [英] Private Pod update/install stuck at Pre-downloading: "" from "" step
问题描述
我们有一个私人的git repo,它具有用于移动应用程序的共享框架,我们称其为mobilesdk.最近,一名新开发人员加入了该团队,并在她设置回购pod install
& pod update mobilesdk
在以下步骤陷入困境:
We have a private git repo that has shared framework for mobile apps, let's call it mobilesdk. Recently a new dev joined the team, and when she is setting up the repo pod install
& pod update mobilesdk
are getting stuck at the following step:
Pre-downloading: `mobilesdk` from `https://github.companyurl.com/mobileFramework/mobilesdk.git`, branch `release/0.9`
包含Pod:
pod 'mobilesdk', :git => "https://github.companyurl.com/mobileframework/mobilesdk.git", :branch => "release/0.9"
pod inclusion:
pod 'mobilesdk', :git => "https://github.companyurl.com/mobileframework/mobilesdk.git", :branch => "release/0.9"
"pod env"
CocoaPods : 1.1.1
Ruby : ruby 2.2.5p319
RubyGems : 2.4.5.1
Host : Mac OS X 10.11.6
Xcode : 8.0 (8A218a)
Git : git version 2.8.4 (Apple Git-73)
"pod env"
CocoaPods : 1.1.1
Ruby : ruby 2.2.5p319
RubyGems : 2.4.5.1
Host : Mac OS X 10.11.6
Xcode : 8.0 (8A218a)
Git : git version 2.8.4 (Apple Git-73)
Answers on related question doesn't help: How to fix 'pod update' getting stuck on a private pod?
尝试更改SSH与HTTPS;它没有解决.另外,由于pod install
适用于现有开发人员,因此这并不是一个真正的选择,并且此问题对于她的计算机/设置是本地的. https://help.github .com/enterprise/2.9/user/articles/which-remote-url-should-i-use/
Tried changing SSH vs HTTPS; It didn't fix it. Also, it's not really an option as pod install
works for existing devs, and this issue is local to her machine/setup. https://help.github.com/enterprise/2.9/user/articles/which-remote-url-should-i-use/
如何跳过该私有pod安装步骤并对其进行调试?
How to get past this private-pod install step and debug it?
推荐答案
删除cocoapods缓存解决了该问题
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
bundle exec pod install
其他详细信息:
我已按照以下步骤对其进行调试:
I took following steps to debug it:
A)移除不受支持或未经测试的可可豆宝石.较早之前,系统上有多个版本的椰壳足纲.现有的开发人员正在使用v1.2.1
,因此删除了其他版本.
A) Remove unsupported or untested cocoapods gems. Earlier, there were multiple versions of cocoapods on the system. Existing developers are using v1.2.1
, so removed other versions.
pod --version
1.5
1.2.1
1.1.1
..
使用gem uninstall cocoapods
.
这不能解决问题.
B)尝试过pod repo update
.
C)删除了缓存的广告连播&本地Pod并执行pod install
,并成功完成.
C) Removed Cached pods & local pods and did pod install
, and it completed successfully.
rm -rf "${HOME}/Library/Caches/CocoaPods"
rm -rf "`pwd`/Pods/"
bundle exec pod install
在这里找到建议: https://github.com/CocoaPods/CocoaPods/issues/568
这篇关于私有Pod更新/安装停留在预下载中:“"来自“"步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!