{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4585","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4585/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4585/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4585/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4585","id":118596530,"number":4585,"title":"single pod file with multiple projects in one workspace","user":{"login":"artiy","id":5718195,"avatar_url":"https://avatars.githubusercontent.com/u/5718195?v=3","gravatar_id":"","url":"https://api.github.com/users/artiy","html_url":"https://github.com/artiy","followers_url":"https://api.github.com/users/artiy/followers","following_url":"https://api.github.com/users/artiy/following{/other_user}","gists_url":"https://api.github.com/users/artiy/gists{/gist_id}","starred_url":"https://api.github.com/users/artiy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artiy/subscriptions","organizations_url":"https://api.github.com/users/artiy/orgs","repos_url":"https://api.github.com/users/artiy/repos","events_url":"https://api.github.com/users/artiy/events{/privacy}","received_events_url":"https://api.github.com/users/artiy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-24T12:17:20Z","updated_at":"2015-11-25T05:27:45Z","closed_at":null,"body":"I've create a workpace and added two projects in it. The directory structure of my project is:\r\n\r\n- root\r\n - testworkspace.xcworkspace\r\n - root/project1\r\n   - root/project1/project1.xcodeproj\r\n - root/project2\r\n   - root/project2/project2.xcodeproj\r\n\r\nHow can I've single podfile for both the projects? I created one pod file under project1 and manually moved it under root directory. Here is how pod file looks like.\r\n```\r\nworkspace ‘testworkspace’\r\n\r\nxcodeproj ‘project1/project1.xcodeproj’\r\ntarget ‘project1’ do\r\npod 'testworkspace', :path => '.'\r\npod ‘AFNetworking’\r\nend\r\n\r\nxcodeproj ‘project2/project2.xcodeproj’\r\ntarget ‘project2’ do\r\npod 'testworkspace', :path => '.'\r\npod ‘MBProgressHUD’\r\nend\r\n``` \r\n\r\n*pod install --verbose* gives me error: **Unable to find a target named `project1`**"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/159495407","html_url":"https://github.com/CocoaPods/CocoaPods/issues/4585#issuecomment-159495407","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/4585","id":159495407,"user":{"login":"segiddins","id":1946610,"avatar_url":"https://avatars.githubusercontent.com/u/1946610?v=3","gravatar_id":"","url":"https://api.github.com/users/segiddins","html_url":"https://github.com/segiddins","followers_url":"https://api.github.com/users/segiddins/followers","following_url":"https://api.github.com/users/segiddins/following{/other_user}","gists_url":"https://api.github.com/users/segiddins/gists{/gist_id}","starred_url":"https://api.github.com/users/segiddins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segiddins/subscriptions","organizations_url":"https://api.github.com/users/segiddins/orgs","repos_url":"https://api.github.com/users/segiddins/repos","events_url":"https://api.github.com/users/segiddins/events{/privacy}","received_events_url":"https://api.github.com/users/segiddins/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T05:27:45Z","updated_at":"2015-11-25T05:27:45Z","body":"Try putting the `xcodeproj` directives inside the `target` blocks. "}}