{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3470","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3470/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3470/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3470/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3470","id":71617017,"number":3470,"title":"[QUESTION] Reference local pods from other local pods in a single repo.","user":{"login":"tabuchid","id":39024,"avatar_url":"https://avatars.githubusercontent.com/u/39024?v=3","gravatar_id":"","url":"https://api.github.com/users/tabuchid","html_url":"https://github.com/tabuchid","followers_url":"https://api.github.com/users/tabuchid/followers","following_url":"https://api.github.com/users/tabuchid/following{/other_user}","gists_url":"https://api.github.com/users/tabuchid/gists{/gist_id}","starred_url":"https://api.github.com/users/tabuchid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabuchid/subscriptions","organizations_url":"https://api.github.com/users/tabuchid/orgs","repos_url":"https://api.github.com/users/tabuchid/repos","events_url":"https://api.github.com/users/tabuchid/events{/privacy}","received_events_url":"https://api.github.com/users/tabuchid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-28T15:12:43Z","updated_at":"2015-04-28T15:16:25Z","closed_at":null,"body":"I'm working on a project where we are breaking functionality out into pods that are shared between multiple apps. \r\nThe code is proprietary so we have to use private pods.\r\nAt the same time to ease development, deployment and reviews we have been experimenting with a monolithic repo for all the apps and some of the pods.\r\nThis was all working fine till we hit the issue that you can't reference a pod by a path in a podspec.\r\nThis is what the structure looks like.\r\n\r\n```\r\napp1\r\n  depends on shared_components, shared_api\r\napp2\r\n  depends on shared_components, shared_api\r\napp3\r\n  depends on shared_components, shared_api\r\napp4\r\n  depends on shared_components, shared_api, lib_1\r\nshared_components\r\n depends on shared_api, lib_1\r\nlib_1\r\n  standalone_pod\r\nshared_api \r\n  standalone_pod\r\n```\r\n\r\nThe problem I'm having is the shared_components pod project. I'm unable to have its podspec reference lib_1 and shared_api because podspecs can't reference dependancies locally.\r\nAm I missing something or is there a better way?"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/97102467","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3470#issuecomment-97102467","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3470","id":97102467,"user":{"login":"kylef","id":44164,"avatar_url":"https://avatars.githubusercontent.com/u/44164?v=3","gravatar_id":"","url":"https://api.github.com/users/kylef","html_url":"https://github.com/kylef","followers_url":"https://api.github.com/users/kylef/followers","following_url":"https://api.github.com/users/kylef/following{/other_user}","gists_url":"https://api.github.com/users/kylef/gists{/gist_id}","starred_url":"https://api.github.com/users/kylef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylef/subscriptions","organizations_url":"https://api.github.com/users/kylef/orgs","repos_url":"https://api.github.com/users/kylef/repos","events_url":"https://api.github.com/users/kylef/events{/privacy}","received_events_url":"https://api.github.com/users/kylef/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T15:16:24Z","updated_at":"2015-04-28T15:16:24Z","body":"I think it would make far more sense to create your own private spec repository. Then you can use it like so:\r\n\r\n```ruby\r\nsource 'https://github.com/artsy/Specs'\r\n\r\npod 'Artsy+UILabels'\r\n```\r\n\r\nNote, `Artsy+UILabels` depends on another private pod (https://github.com/artsy/Specs/blob/master/Artsy%2BUILabels/1.3.1/Artsy%2BUILabels.podspec#L18). The benefits for this approach is it's far simpler and you get proper version management of the pods."}}