无法将私有pod添加为其他pod中的依赖项?

时间:2014-11-11 10:25:11

标签: ios objective-c iphone cocoapods podspec

我正在处理私有pod,当我尝试将其作为依赖项添加到另一个私有pod时,我在运行" Pod Update"

时收到此错误
[!] Error installing EEMyPod
[!] Attempt to read non existent folder `/Volumes/Development/Work/Projects/Pods/eagle-eye-ios-pod/Example/Pods/EEMyPod`.

我不知道为什么会发生这种情况!

但是,在跑步时:

pod spec lint

我得到了这个:

Attempt to read non existent folder `/private/tmp/CocoaPods/Lint/Pods/EEMyPod`

我认为可能是一个线索。

这是我的Podfile:

Pod::Spec.new do |s|
  s.name             = "EEMypod"
  s.version          = "0.1.0"
  s.summary          = "A short description of EEMypod."
  s.description      = <<-DESC
                       An optional longer description of EEMyPod

                       * Markdown format.
                       * Don't worry about the indent, we strip it!
                       DESC
  s.homepage         = "https://github.com/Codigami/EEMyPod"
  # s.screenshots     = "www.example.com/screenshots_1", "www.example.com/screenshots_2"
  s.license          = 'MIT'
  s.author           = { "Siddarth Chaturvedi" => "Email ID" }
  s.source           = { :git => "git@github.com:Codigami/EEMyPod.git", :tag => "0.1.0" }
  # s.social_media_url = 'https://twitter.com/kidsid49'

  s.platform     = :ios, '7.0'
  s.requires_arc = true

  s.source_files = 'Pod/Classes/*.{h,m}'
  s.resource_bundles = {
    'AAFNetworking' => ['Pod/Assets/*.png']
  }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'

end

1 个答案:

答案 0 :(得分:2)

这听起来很可能是CocoaPods在使用规范时无法下载依赖项。如果再次使用--verbose运行命令,它将在克隆存储库时从git中暴露底层错误。可能是依赖项缺少标记。

更改了CocoaPods 0.35.0.rc2以提供更好的错误消息(https://github.com/CocoaPods/CocoaPods/issues/2667)。