简体   繁体   中英

Could not add private pod as a dependency in other pod?

I am working on a private pod, and when I tried to add it as a dependency to another private pod I am getting this error while running "Pod Update":

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

I have no clue why this is happening!

But, while running:

pod spec lint

I am getting this:

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

which I think might be a clue.

This is my 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

This sounds very likely that CocoaPods failed to download the dependency while linting the specification. If you run the command again with --verbose it will expose the underlying error from git while cloning the repository. It might be that the tag is missing for the dependency.

CocoaPods 0.35.0.rc2 was changed to provide a better error message ( https://github.com/CocoaPods/CocoaPods/issues/2667 ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM