[英]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": 我正在处理一个私有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`.
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: 这是我的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. 这听起来很像CocoaPods在插入规范时未能下载依赖项。 If you run the command again with --verbose
it will expose the underlying error from git while cloning the repository. 如果使用--verbose
再次运行该命令,它将在克隆存储库时暴露git的潜在错误。 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 ). 已更改CocoaPods 0.35.0.rc2以提供更好的错误消息( https://github.com/CocoaPods/CocoaPods/issues/2667 )。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.