{"action":"closed","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3016","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3016/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3016/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/3016/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/3016","id":53635582,"number":3016,"title":"Feature request: Swift specific podspec","user":{"login":"basvankuijck","id":1327984,"avatar_url":"https://avatars.githubusercontent.com/u/1327984?v=3","gravatar_id":"","url":"https://api.github.com/users/basvankuijck","html_url":"https://github.com/basvankuijck","followers_url":"https://api.github.com/users/basvankuijck/followers","following_url":"https://api.github.com/users/basvankuijck/following{/other_user}","gists_url":"https://api.github.com/users/basvankuijck/gists{/gist_id}","starred_url":"https://api.github.com/users/basvankuijck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basvankuijck/subscriptions","organizations_url":"https://api.github.com/users/basvankuijck/orgs","repos_url":"https://api.github.com/users/basvankuijck/repos","events_url":"https://api.github.com/users/basvankuijck/events{/privacy}","received_events_url":"https://api.github.com/users/basvankuijck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-01-07T14:11:16Z","updated_at":"2015-01-08T12:43:44Z","closed_at":"2015-01-08T12:43:44Z","body":"Let's say I've got this class `ESRandom` which is an objective-c class.\r\nWhen swift became available we created a swift version of the same class. With the exact functionality and version code.\r\n\r\nNow when defining this pod in my `Podfile`:\r\n<code>\r\npod 'ESRandom', '~> 1.0'\r\n</code>\r\nIt both loads the obj-c and swift files and my swift project builds with an error saying it has duplicate symbols (or something like that).\r\nIf I remove the obj-c files my project runs perfectly.\r\n\r\nSo it would be great if I could tell the Podfile which filetype I want to use\r\n<code>\r\npod 'ESRandom', '~> 1.0' :lang => 'swift'\r\n</code> (or something like that)\r\n\r\nI have tried using subspecs, but these don't give the right result and I don't think they're used for this kind of setup.\r\n\r\nOr is there any other workaround / solution for this ?"}}