{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/buck/issues/1969","repository_url":"https://api.github.com/repos/facebook/buck","labels_url":"https://api.github.com/repos/facebook/buck/issues/1969/labels{/name}","comments_url":"https://api.github.com/repos/facebook/buck/issues/1969/comments","events_url":"https://api.github.com/repos/facebook/buck/issues/1969/events","html_url":"https://github.com/facebook/buck/issues/1969","id":341901740,"node_id":"MDU6SXNzdWUzNDE5MDE3NDA=","number":1969,"title":"What is the best way to produce fat static lib binary?","user":{"login":"ildarsharafutdinov","id":1442901,"node_id":"MDQ6VXNlcjE0NDI5MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/1442901?v=4","gravatar_id":"","url":"https://api.github.com/users/ildarsharafutdinov","html_url":"https://github.com/ildarsharafutdinov","followers_url":"https://api.github.com/users/ildarsharafutdinov/followers","following_url":"https://api.github.com/users/ildarsharafutdinov/following{/other_user}","gists_url":"https://api.github.com/users/ildarsharafutdinov/gists{/gist_id}","starred_url":"https://api.github.com/users/ildarsharafutdinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ildarsharafutdinov/subscriptions","organizations_url":"https://api.github.com/users/ildarsharafutdinov/orgs","repos_url":"https://api.github.com/users/ildarsharafutdinov/repos","events_url":"https://api.github.com/users/ildarsharafutdinov/events{/privacy}","received_events_url":"https://api.github.com/users/ildarsharafutdinov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-17T12:40:20Z","updated_at":"2018-07-24T20:50:34Z","closed_at":null,"author_association":"NONE","body":"Let's say I have a number of libs which are build from source with buck. \r\nE.g.\r\n```\r\napple_binary(\r\n   name = 'LibA',\r\n   ...\r\n)\r\n\r\napple_binary(\r\n   name = 'LibB',\r\n   ...\r\n)\r\n```\r\n\r\nWhen I build them, they produce `libLibA.a` and `libLibB.a` in `buck-out/gen/<platform>/...`  as expected.\r\n\r\nBut what I want to is to produce a single `libFatBinary.a` with contents of both `LibA` and `LibB`, where each of them is built for arm64 and simulator.\r\n\r\nI can probably achieve that with a custom build rule which builds both libs for each platform and then `lipo`s them in a single static library.\r\n\r\nHowever, I guess there is a better way to achieve that.\r\n\r\nI tried `prebuilt_apple_framework` which has both `deps = [':LibA', ':LibB']`.\r\n`buck build FatBinary` finished without errors, but didn't produce any output.\r\n\r\nAny hint is greatly appreciated."},"comment":{"url":"https://api.github.com/repos/facebook/buck/issues/comments/407547548","html_url":"https://github.com/facebook/buck/issues/1969#issuecomment-407547548","issue_url":"https://api.github.com/repos/facebook/buck/issues/1969","id":407547548,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzU0NzU0OA==","user":{"login":"ttsugriy","id":172294,"node_id":"MDQ6VXNlcjE3MjI5NA==","avatar_url":"https://avatars0.githubusercontent.com/u/172294?v=4","gravatar_id":"","url":"https://api.github.com/users/ttsugriy","html_url":"https://github.com/ttsugriy","followers_url":"https://api.github.com/users/ttsugriy/followers","following_url":"https://api.github.com/users/ttsugriy/following{/other_user}","gists_url":"https://api.github.com/users/ttsugriy/gists{/gist_id}","starred_url":"https://api.github.com/users/ttsugriy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttsugriy/subscriptions","organizations_url":"https://api.github.com/users/ttsugriy/orgs","repos_url":"https://api.github.com/users/ttsugriy/repos","events_url":"https://api.github.com/users/ttsugriy/events{/privacy}","received_events_url":"https://api.github.com/users/ttsugriy/received_events","type":"User","site_admin":false},"created_at":"2018-07-24T20:50:34Z","updated_at":"2018-07-24T20:50:34Z","author_association":"CONTRIBUTOR","body":"Please try adding platform flavors you'd like to have binaries for when adding dependencies. For example, `:LibA#iphoneos-arm64,iphonesimulator-x86_64`."}}
{"actor":{"display_login":"ttsugriy"}}