{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6039","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6039/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6039/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6039/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6039","id":183187733,"number":6039,"title":"A question about PrivateSpec dependency","user":{"login":"mcmengchen","id":9442979,"avatar_url":"https://avatars.githubusercontent.com/u/9442979?v=3","gravatar_id":"","url":"https://api.github.com/users/mcmengchen","html_url":"https://github.com/mcmengchen","followers_url":"https://api.github.com/users/mcmengchen/followers","following_url":"https://api.github.com/users/mcmengchen/following{/other_user}","gists_url":"https://api.github.com/users/mcmengchen/gists{/gist_id}","starred_url":"https://api.github.com/users/mcmengchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcmengchen/subscriptions","organizations_url":"https://api.github.com/users/mcmengchen/orgs","repos_url":"https://api.github.com/users/mcmengchen/repos","events_url":"https://api.github.com/users/mcmengchen/events{/privacy}","received_events_url":"https://api.github.com/users/mcmengchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-10-15T04:16:28Z","updated_at":"2016-10-19T03:23:04Z","closed_at":null,"body":"## My need is to create a private pod which must depend on another private pod.\r\n\r\n+ My depended private pod is named 'RBTest'. It's  podspec file is as follow: \r\n```\r\nPod::Spec.new do |s|\r\n  s.name             = 'RBTest'\r\n  s.version          = '0.1.0'\r\n  s.summary          = 'a framework'\r\n  s.description      = 'A short description of RBFrameWorkTest.!!!'\r\n  s.homepage         = 'https://git.coding.net/michell/RBPrivateTest.git'\r\n  s.license          = { :type => 'MIT', :file => 'LICENSE' }\r\n  s.author           = { 'mengchen' => 'mengchen@roo.com' }\r\n  s.source           = { :git => 'https://git.coding.net/michell/RBPrivateTest.git', :tag => s.version.to_s }\r\n  s.ios.deployment_target = '7.0'\r\n  s.source_files = 'RBTest/Classes/**/*'\r\nend\r\n```\r\n![2016-10-15 12 04 47](https://cloud.githubusercontent.com/assets/9442979/19407276/9eca8f8a-92cf-11e6-803e-d9850b19079c.png)\r\n\r\n+ My private pod is named 'RBTestPrivateSpec'. It's pod spec file is as follow:\r\n```\r\n\r\nPod::Spec.new do |s|\r\n  s.name             = 'RBTestPrivateSpec'\r\n  s.version          = '0.1.0'\r\n  s.summary          = 'a framework'\r\n  s.description      = 'A short description of RBFrameWorkTest.!!!'\r\n  s.homepage         = 'https://git.coding.net/michell/RBTestPrivateSpec.git'\r\n  s.license          = { :type => 'MIT', :file => 'LICENSE' }\r\n  s.author           = { 'mengchen' => 'mengchen@roo.com' }\r\n  s.source           = { \r\n    :git => 'https://git.coding.net/michell/RBTestPrivateSpec.git',\r\n    :tag => s.version.to_s,\r\n    }\r\n  s.ios.deployment_target = '7.0'\r\n  s.source_files = 'RBTestPrivateSpec/Classes/**/*'\r\n  s.dependency 'RBTest'\r\nend\r\n```\r\n![2016-10-15 12 10 28](https://cloud.githubusercontent.com/assets/9442979/19407291/632ca75a-92d0-11e6-9a41-d80092266da8.png)\r\n\r\n\r\n## How to lint my private pod 'RBTestPrivateSpec'?\r\nWhen I use the command : \r\n```\r\npod spec lint RBTestPrivateSpec.podspec --sources='https://github.com/CocoaPods/Specs.git,https://git.coding.net/michell/RBPrivateTest.git' --verbose\r\n```\r\nI have the error:\r\n```\r\nResolving dependencies of \r\n -> RBTestPrivateSpec (0.1.0)\r\n    - ERROR | [iOS] unknown: Encountered an unknown error (An unexpected version directory `Classes` was encountered for the `/Users/william/.cocoapods/repos/RBTest/RBTest` Pod in the `RBTest` repository.\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source.rb:171:in `rescue in block in versions'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source.rb:168:in `block in versions'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source.rb:166:in `map'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source.rb:166:in `versions'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/specification/set.rb:85:in `block in versions_by_source'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/specification/set.rb:84:in `each'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/specification/set.rb:84:in `versions_by_source'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/specification/set.rb:60:in `versions'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/specification/set.rb:66:in `highest_version'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/specification/set.rb:76:in `highest_version_spec_path'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/specification/set.rb:45:in `specification'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source.rb:268:in `search'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source/aggregate.rb:83:in `block in search'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source/aggregate.rb:83:in `select'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-core-1.0.1/lib/cocoapods-core/source/aggregate.rb:83:in `search'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:346:in `create_set_from_sources'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:316:in `find_cached_set'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:289:in `specifications_for_dependency'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:107:in `search_for'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:205:in `block in sort_dependencies'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:199:in `each'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:199:in `sort_by'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:199:in `sort_dependencies'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:131:in `block (2 levels) in <class:Resolution>'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:437:in `push_state_for_requirements'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:429:in `require_nested_dependencies_for'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:417:in `activate_spec'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:382:in `attempt_to_activate_new_spec'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:320:in `attempt_to_activate'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:147:in `process_topmost_state'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolution.rb:72:in `resolve'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/molinillo-0.4.5/lib/molinillo/resolver.rb:42:in `resolve'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/resolver.rb:62:in `resolve'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:563:in `block in resolve_dependencies'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:63:in `section'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:561:in `resolve_dependencies'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/installer/analyzer.rb:76:in `analyze'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:227:in `analyze'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:151:in `block in resolve_dependencies'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:63:in `section'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:150:in `resolve_dependencies'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:373:in `block in download_pod'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:373:in `each'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:373:in `download_pod'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:269:in `block in perform_extensive_analysis'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:263:in `each'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:263:in `perform_extensive_analysis'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/validator.rb:81:in `validate'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/command/spec/lint.rb:60:in `block in run'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/command/spec/lint.rb:50:in `each'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/command/spec/lint.rb:50:in `run'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/bin/pod:23:in `load'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/bin/pod:23:in `<main>'\r\n) during validation.\r\n\r\nAnalyzed 1 podspec.\r\n\r\n[!] The spec did not pass validation, due to 1 error.\r\n\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/command/spec/lint.rb:77:in `run'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/bin/pod:23:in `load'\r\n/Users/william/.rvm/gems/ruby-2.0.0-p643/bin/pod:23:in `<main>'\r\n```\r\n## Did anybody have the trouble? How can I resolve it ?"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/254700658","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6039#issuecomment-254700658","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6039","id":254700658,"user":{"login":"benasher44","id":1120429,"avatar_url":"https://avatars.githubusercontent.com/u/1120429?v=3","gravatar_id":"","url":"https://api.github.com/users/benasher44","html_url":"https://github.com/benasher44","followers_url":"https://api.github.com/users/benasher44/followers","following_url":"https://api.github.com/users/benasher44/following{/other_user}","gists_url":"https://api.github.com/users/benasher44/gists{/gist_id}","starred_url":"https://api.github.com/users/benasher44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benasher44/subscriptions","organizations_url":"https://api.github.com/users/benasher44/orgs","repos_url":"https://api.github.com/users/benasher44/repos","events_url":"https://api.github.com/users/benasher44/events{/privacy}","received_events_url":"https://api.github.com/users/benasher44/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T03:23:04Z","updated_at":"2016-10-19T03:23:04Z","body":"In that case, you should look at setting up a private specs repo here: https://guides.cocoapods.org/making/private-cocoapods.html. This is the only way that I know of to support private pod that also has a private dependency, since there's no equivalent `:git` argument for podspec dependencies."}}
{"actor":{"display_login":"benasher44"}}