{"action":"opened","issue":{"url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/402","repository_url":"https://api.github.com/repos/CocoaPods/Xcodeproj","labels_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/402/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/402/comments","events_url":"https://api.github.com/repos/CocoaPods/Xcodeproj/issues/402/events","html_url":"https://github.com/CocoaPods/Xcodeproj/issues/402","id":171700662,"number":402,"title":"Adding aggregate targets to a pod-template fails to install the template","user":{"login":"pkrmf","id":1714267,"avatar_url":"https://avatars.githubusercontent.com/u/1714267?v=3","gravatar_id":"","url":"https://api.github.com/users/pkrmf","html_url":"https://github.com/pkrmf","followers_url":"https://api.github.com/users/pkrmf/followers","following_url":"https://api.github.com/users/pkrmf/following{/other_user}","gists_url":"https://api.github.com/users/pkrmf/gists{/gist_id}","starred_url":"https://api.github.com/users/pkrmf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkrmf/subscriptions","organizations_url":"https://api.github.com/users/pkrmf/orgs","repos_url":"https://api.github.com/users/pkrmf/repos","events_url":"https://api.github.com/users/pkrmf/events{/privacy}","received_events_url":"https://api.github.com/users/pkrmf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-17T16:22:02Z","updated_at":"2016-08-17T16:22:02Z","closed_at":null,"body":"Seems that having a template project with an Aggregate Target makes CocoaPods to fail when trying to call the function `def remove_demo_project` in the ProjectManipulator.rb file. Basically the ProjectManiuplator file wants to remove the application example target and its unit tests so it has to iterate through all the Targets on the project and find them.\r\n\r\nI am guessing cocoa pods is trying to parse the project.pbxproj file and assign the variable product_type to each one of the targets. Apple doesn't provide a product_type for Aggregate Targets:\r\n\r\n`/* Begin PBXAggregateTarget section */\r\n\t\t74D136291D62890A0015C7B3 /* PROJECTExport */ = {\r\n\t\t\tisa = PBXAggregateTarget;\r\n\t\t\tbuildConfigurationList = 74D1362A1D62890A0015C7B3 /* Build configuration list for PBXAggregateTarget \"PROJECTExport\" */;\r\n\t\t\tbuildPhases = (\r\n\t\t\t\t74D1362D1D62890E0015C7B3 /* ShellScript */,\r\n\t\t\t);\r\n\t\t\tdependencies = (\r\n\t\t\t);\r\n\t\t\tname = \"PROJECTExport\";\r\n\t\t\tproductName = \"PROJECTExport\";\r\n\t\t};\r\n/* End PBXAggregateTarget section */`\r\n\r\nIs there any workaround to include an Aggregate Target to Project Template? I tried adding it myself and assign a value to it, but obviously it fails `/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.1.0/lib/xcodeproj/project/object.rb:321:in configure_with_plist: [!] Xcodeproj doesn't know about the following attributes {\"productType\"=>\"com.apple.product-type.application\"} for the 'PBXAggregateTarget' isa. (RuntimeError)`\r\n\r\nCould CocoaPods prevent to assign the product_type variable to a Target that doesn't have a product_type variable?"}}
{"actor":{"display_login":"pkrmf"}}