簡體   English   中英

無法將私有Pod添加為其他Pod中的依賴項?

[英]Could not add private pod as a dependency in other pod?

我正在處理一個私有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

這聽起來很像CocoaPods在插入規范時未能下載依賴項。 如果使用--verbose再次運行該命令,它將在克隆存儲庫時暴露git的潛在錯誤。 可能是該標簽缺少相關性。

已更改CocoaPods 0.35.0.rc2以提供更好的錯誤消息( https://github.com/CocoaPods/CocoaPods/issues/2667 )。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM