1

当我尝试运行“pod update”时,执行挂起我的私人库的下载:

Update all pods
Analyzing dependencies
Pre-downloading: `Obfuscated-Library` from `https://obfuscated.unfuddle.com/git/obfuscated_mvl/`, branch `develop`

Ctrl-C在取消它之前,我已经让它挂了大约 10 分钟。

到底是怎么回事?

这是关于我的私人 pod 的一些信息

私人图书馆 .podspec

#
# Be sure to run `pod spec lint Obfuscated-Library.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# To learn more about the attributes see http://docs.cocoapods.org/specification.html
#
Pod::Spec.new do |s|
  s.name         = "Obfuscated-Library"
  s.version      = "0.3.1"
  s.summary      = "A common library for Obfuscated."
  s.description  = <<-DESC
                      A source for common features found in Obfuscated apps.
                      DESC

  s.license      = {
  :type => 'Copyright',
  :text => <<-LICENSE
           Copyright (c) 2013 Obfuscated, Inc. All rights reserved.
           LICENSE
  }
  s.author       = { “Some Guy” => “someguy@gmail.com" }
  s.source       = { :git => "https://obfuscated.unfuddle.com/git/obfuscated_OBl/", :tag => "0.3.1" }

  s.platform     = :ios, '6.0'

  s.source_files =  'OBLibrary/**/*.{h,m}'

  s.resources = ['OBLibrary/**/*.{xib,png,json,ttf}', 'OBLibrary.xcdatamodeld']

  s.ios.resource_bundle = { 'OBCoreData' => 'OBCoreData' }

  s.dependency 'JASidePanels', '~> 1.3.2'
  s.dependency 'iCarousel', '~> 1.7.6'
  s.dependency 'KGModal', '~> 0.0.1'
  s.dependency 'SDWebImage', '~> 3.7.1'
  s.dependency 'HockeySDK', '~> 3.5'
  s.dependency 'KDropDownMultipleSelection', '~> 1.0.1'
  s.dependency 'SVPullToRefresh', '~> 0.4.1'
  s.dependency 'FXKeychain', '~> 1.5'
  s.dependency 'PMCalendar', '~> 0.3'
  s.dependency 'RSBarcodes', '~> 0.0.5'
  s.dependency 'IQKeyboardManager', '~> 3.1.1'

  s.frameworks = 'Foundation', 'UIKit', 'QuartzCore', 'CoreLocation', 'MapKit', 'CoreGraphics', 'CoreText'
  s.ios.vendored_frameworks = 'Pods/HockeySDK/Vendor/CrashReporter.framework'

  s.requires_arc = true

  s.homepage = "http://www.Obfuscated.com"

end

私人图书馆 Podfile

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, "6.0"

xcodeproj 'OBLibrary.xcodeproj'

pod 'JASidePanels', '~> 1.3.2'
pod 'iCarousel', '~> 1.7.6'
pod 'KGModal', '~> 0.0.1'
pod 'SDWebImage', '~> 3.7.1'
pod 'HockeySDK', '~> 3.5'
pod 'KDropDownMultipleSelection', '~> 1.0.1'
pod 'SVPullToRefresh', '~> 0.4.1'
pod 'FXKeychain', '~> 1.5'
pod 'PMCalendar', '~> 0.3'
pod 'RSBarcodes', '~> 0.0.5'
pod 'IQKeyboardManager', '~> 3.1.1'

客户端应用程序 Podfile

source 'https://github.com/CocoaPods/Specs.git'

xcodeproj ‘WL.xcodeproj'

pod ‘Obfuscated-Library', :git => "https://obfuscated.unfuddle.com/git/obfuscated_mvl/", :branch => "develop"
4

3 回答 3

2

我通过将 Podfile 更改为使用 ssh 身份验证 git url 来解决此问题,如下所示:

pod 'Obfuscated-Library', :git => "git@obfuscated.unfuddle.com:obfuscated/mvl.git", :branch => "develop"

我不确定为什么http方法不起作用。

于 2015-07-22T18:44:44.357 回答
1

尝试将 repo URL 更改为以git://.

在 Github 上的 CocoaPods 项目中对相同/类似问题的讨论中找到。该问题似乎是 Github Enterprise 上的 repos 问题。

于 2015-01-23T21:08:06.123 回答
0

有时,在处理大型项目时,无法修改 HTTPS 与 SSH 设置(防火墙、公共与私人访问)。其他步骤(例如删除本地 pod 和派生数据)不起作用。

您可以交叉检查pod --version. 通过以下命令删除 pod 缓存并pod install重新尝试。

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

链接:Private Pod 更新/安装卡在 Pre-downloading: "" from "" step

于 2017-04-25T21:22:25.247 回答