{"action":"created","issue":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/365","repository_url":"https://api.github.com/repos/mxcl/PromiseKit","labels_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/365/comments","events_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/365/events","html_url":"https://github.com/mxcl/PromiseKit/issues/365","id":135418115,"number":365,"title":"Carthage categories","user":{"login":"leoMehlig","id":9119485,"avatar_url":"https://avatars.githubusercontent.com/u/9119485?v=3","gravatar_id":"","url":"https://api.github.com/users/leoMehlig","html_url":"https://github.com/leoMehlig","followers_url":"https://api.github.com/users/leoMehlig/followers","following_url":"https://api.github.com/users/leoMehlig/following{/other_user}","gists_url":"https://api.github.com/users/leoMehlig/gists{/gist_id}","starred_url":"https://api.github.com/users/leoMehlig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leoMehlig/subscriptions","organizations_url":"https://api.github.com/users/leoMehlig/orgs","repos_url":"https://api.github.com/users/leoMehlig/repos","events_url":"https://api.github.com/users/leoMehlig/events{/privacy}","received_events_url":"https://api.github.com/users/leoMehlig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-22T13:33:13Z","updated_at":"2016-02-28T14:39:39Z","closed_at":null,"body":"I'm currently looking into this library and am trying to find a solution to use the categories with Carthage. The 'copy the files into the checkout folder'-option doesn't work for me, because I use a automate build system, which updates all the dependencies. \r\nI agree, that linking all the categories would be a bad idea.\r\nMy proposal to solve this problem is, having separate schemes/targets for each category.\r\n\r\nThese targets would depend on the PromiseKit and include the code of their category.\r\n\r\nPros of this solution are:\r\n\r\n- The user can simply add the build binaries of the categories that he requires.\r\n- There is no linking of unnecessary (system) libraries\r\n- Dependency management with carthage would work, even on automated build servers.\r\n\r\nCons:\r\n- A lot of schemes and targets would be required (platforms * categories = something like 60 targets and schemes)\r\n- All schemes of a platform would be build by carthage with every `carthage update --platform ***`\r\n\r\n\r\nThe best solution would be the support of \"sub-projects\" by carthage, but until then I think this is a possible solution.\r\n\r\nI could create thees targets if this is something other user a interested in. \r\n\r\nWould appreciate any feedback.\r\n\r\nPS. I've already added the iOS Foundation category on the carthage branch of [my fork](https://github.com/leoMehlig/PromiseKit/tree/carthage).\r\n"},"comment":{"url":"https://api.github.com/repos/mxcl/PromiseKit/issues/comments/189884345","html_url":"https://github.com/mxcl/PromiseKit/issues/365#issuecomment-189884345","issue_url":"https://api.github.com/repos/mxcl/PromiseKit/issues/365","id":189884345,"user":{"login":"leoMehlig","id":9119485,"avatar_url":"https://avatars.githubusercontent.com/u/9119485?v=3","gravatar_id":"","url":"https://api.github.com/users/leoMehlig","html_url":"https://github.com/leoMehlig","followers_url":"https://api.github.com/users/leoMehlig/followers","following_url":"https://api.github.com/users/leoMehlig/following{/other_user}","gists_url":"https://api.github.com/users/leoMehlig/gists{/gist_id}","starred_url":"https://api.github.com/users/leoMehlig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leoMehlig/subscriptions","organizations_url":"https://api.github.com/users/leoMehlig/orgs","repos_url":"https://api.github.com/users/leoMehlig/repos","events_url":"https://api.github.com/users/leoMehlig/events{/privacy}","received_events_url":"https://api.github.com/users/leoMehlig/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T14:39:39Z","updated_at":"2016-02-28T14:39:39Z","body":"The thing is that I usually don't want to include the code of a external framework in my internal codebase, because this makes updating way more complicated. \r\n\r\nSo in my case I want to use only the Foundation category in my iOS App. Obviously it would be inefficient to include all categories and with that link all necessary system frameworks. "}}