{"issue":{"created_at":"2011-11-18T11:39:06Z","state":"open","updated_at":"2011-11-18T14:06:38Z","comments":5,"user":{"gravatar_id":"3de094323f34e741d8462d8f0d7c9b3b","id":306661,"url":"https://api.github.com/users/bonkowski","login":"bonkowski","avatar_url":"https://secure.gravatar.com/avatar/3de094323f34e741d8462d8f0d7c9b3b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Hi.\r\n\r\nI want to use CocoaPods on our new project, but I think I'm missing something. I want to have one Workspace containing a couple of projects, but it seems that CocoaPods does not support this. \r\n\r\nWhenever I run pod install AppName.xcodeproj it generates a new workspace called AppName.xcworkspace and tells  me to use this from now on. But what about the existing workspace? And how can I add additional CocoaPods based project to the same workspace?\r\n\r\nThanks","assignee":null,"id":2279262,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"number":79,"title":"Multiple projects in a Workspace?","closed_at":null,"html_url":"https://github.com/CocoaPods/CocoaPods/issues/79","milestone":null,"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/79"},"action":"created","comment":{"created_at":"2011-11-18T14:06:38Z","updated_at":"2011-11-18T14:06:38Z","user":{"gravatar_id":"424a9ce662b059c35063b405e160461d","id":2320,"url":"https://api.github.com/users/alloy","login":"alloy","avatar_url":"https://secure.gravatar.com/avatar/424a9ce662b059c35063b405e160461d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"This will be interesting :)\r\n\r\nSo basically your Podfile should look something like the following (non-functional example):\r\n\r\n```Ruby\r\n\r\ntarget 'API', :exclusive => true do\r\n  link_with 'API lib', :project => 'API Project'\r\n\r\n  dependency 'AFNetworking'\r\n\r\n  target 'API-test' do\r\n    dependency 'Kiwi'\r\n  end\r\nend\r\n\r\ntarget 'other', :exclusive => true do\r\n  link_with 'Other target', :project => 'Other Project'\r\n\r\n  dependency 'SomeMapViewer'\r\n\r\n  target 'other-test' do\r\n    dependency 'Kiwi'\r\n  end\r\nend\r\n\r\n```\r\n\r\nThis means that:\r\n* We’ll have to ensure (or fix) that you can have target groups depend on the outer exclusive target group.\r\n* Allow an optional `project` attribute for `link_with`, to specify the project in the workspace. Although if the target name is unique we should be able to figure it out without specifying the project name. \r\n* We should probably not generate the default target if no dependencies are specified for it. An empty libPods.a is useless and confusing.\r\n* You will have to add the API library to the ‘other project’ link build phase yourself and there may be a need to do some xcconfig munging.\r\n\r\nDoes this seem like the correct config for you scenario?","id":2789375,"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/2789375"}}