Private Pod update/install stuck at Pre-downloading: “” from “” step

匿名 (未验证) 提交于 2019-12-03 09:06:55

问题:

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 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)

Answers on related question doesn't help: How to fix 'pod update' getting stuck on a private pod?

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/

How to get past this private-pod install step and debug it?

回答1:

Deleting cocoapods cache fixed the issue.

Following steps were taken to debug it:

A) Remove unsupported or untested cocoapods gems. Earlier, there were multiple versions of cocoapods on the system. Existing developers are using v1.1.1, so removed v1.2.1.

pod --version 1.2.1 1.1.1 ..

used gem uninstall cocoapods.

This didn't fix the issue.

B) 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

Found the suggestion here: https://github.com/CocoaPods/CocoaPods/issues/568



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!