【问题标题】:Private Pod update/install stuck at Pre-downloading: "" from "" stepPrivate Pod 更新/安装卡在 Pre-downloading: "" from "" step
【发布时间】:2017-09-23 01:39:18
【问题描述】:

我们有一个私有 git 存储库,它具有移动应用程序的共享框架,我们称之为 mobilesdk。最近一位新开发人员加入了团队,当她设置 repo 时,pod installpod update mobilesdk 卡在以下步骤:

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

相关问题的答案无济于事: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/

如何通过这个私有 pod 安装步骤并对其进行调试?

【问题讨论】:

    标签: cocoapods podfile


    【解决方案1】:

    删除 cocoapods 缓存修复了问题

    rm -rf "${HOME}/Library/Caches/CocoaPods" 
    rm -rf "`pwd`/Pods/" 
    bundle exec pod install
    

    其他细节:

    我采取了以下步骤来调试它:

    A) 移除不受支持或未经测试的 cocoapods gem。早些时候,系统上有多个版本的 cocoapods。现有开发者正在使用v1.2.1,因此删除了其他版本。

    pod --version
    1.5
    1.2.1
    1.1.1
    ..
    

    使用gem uninstall cocoapods

    这并没有解决问题。

    B) 尝试过pod repo update

    C) 删除了缓存的 pod 和本地 pod 并做了pod install,它成功完成了。

    rm -rf "${HOME}/Library/Caches/CocoaPods"
    rm -rf "`pwd`/Pods/"
    bundle exec pod install
    

    在这里找到建议:https://github.com/CocoaPods/CocoaPods/issues/568

    【讨论】:

      【解决方案2】:

      在我的情况下,这是因为临时 github.com 路由问题:https://github-debug.com/

      git clone https://github.com/github/debug-repo /tmp/debug-repo-http
      git clone git@github.com:github/debug-repo /tmp/debug-repo-ssh
      ping -c 10 github.com
      traceroute github.com
      

      【讨论】:

        猜你喜欢
        • 2022-12-01
        • 1970-01-01
        • 2021-07-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-04-08
        • 1970-01-01
        • 2019-04-03
        相关资源
        最近更新 更多