{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/11337","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/11337/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/11337/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/11337/events","html_url":"https://github.com/facebook/react-native/issues/11337","id":194009512,"node_id":"MDU6SXNzdWUxOTQwMDk1MTI=","number":11337,"title":"Why are there no dynamic framework targets for React Native?","user":{"login":"LeoNatan","id":2270433,"node_id":"MDQ6VXNlcjIyNzA0MzM=","avatar_url":"https://avatars3.githubusercontent.com/u/2270433?v=4","gravatar_id":"","url":"https://api.github.com/users/LeoNatan","html_url":"https://github.com/LeoNatan","followers_url":"https://api.github.com/users/LeoNatan/followers","following_url":"https://api.github.com/users/LeoNatan/following{/other_user}","gists_url":"https://api.github.com/users/LeoNatan/gists{/gist_id}","starred_url":"https://api.github.com/users/LeoNatan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeoNatan/subscriptions","organizations_url":"https://api.github.com/users/LeoNatan/orgs","repos_url":"https://api.github.com/users/LeoNatan/repos","events_url":"https://api.github.com/users/LeoNatan/events{/privacy}","received_events_url":"https://api.github.com/users/LeoNatan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-12-07T10:17:20Z","updated_at":"2018-06-29T09:03:19Z","closed_at":"2017-07-20T22:30:53Z","author_association":"CONTRIBUTOR","body":"## Description\r\n\r\nReact Native has only static library targets. Any reason why there are no dynamic framework targets as well? \r\n\r\n![screen shot 2016-12-07 at 12 00 28](https://cloud.githubusercontent.com/assets/2270433/20963129/c9c2495c-bc74-11e6-820d-4f8f170c16e9.png)\r\n\r\nI understand why this was done from the start, as RN supported iOS 7 (and possibly below) at some point, but since the project now has a deployment target of iOS 8, there really is nothing to prevent dynamic frameworks on the surface. Any underlying technical issues in supporting it?\r\n\r\nAdding dynamic framework targets will finally allow stopping the `HEADER_SEARCH_PATHS` hell of sub-projects. Working with Swift projects will also be much simpler.\r\n\r\n### Solution\r\n\r\nThere are two solutions I can think of; add dynamic frameworks targets directly and include all source files there, all headers in the headers phase. Or, create a dynamic framework wrapper that links with the static libs, but still exposes the headers in a headers phase. The former is more elegant, but the latter can be a little bit less work to maintain.\r\n\r\n### Additional Information\r\n\r\n* React Native version: Latest git source as of 2016-12-7.\r\n* Platform: iOS\r\n* Operating System: MacOS/Xcode"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/401295179","html_url":"https://github.com/facebook/react-native/issues/11337#issuecomment-401295179","issue_url":"https://api.github.com/repos/facebook/react-native/issues/11337","id":401295179,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTI5NTE3OQ==","user":{"login":"dehlen","id":680180,"node_id":"MDQ6VXNlcjY4MDE4MA==","avatar_url":"https://avatars1.githubusercontent.com/u/680180?v=4","gravatar_id":"","url":"https://api.github.com/users/dehlen","html_url":"https://github.com/dehlen","followers_url":"https://api.github.com/users/dehlen/followers","following_url":"https://api.github.com/users/dehlen/following{/other_user}","gists_url":"https://api.github.com/users/dehlen/gists{/gist_id}","starred_url":"https://api.github.com/users/dehlen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dehlen/subscriptions","organizations_url":"https://api.github.com/users/dehlen/orgs","repos_url":"https://api.github.com/users/dehlen/repos","events_url":"https://api.github.com/users/dehlen/events{/privacy}","received_events_url":"https://api.github.com/users/dehlen/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T09:03:19Z","updated_at":"2018-06-29T09:03:19Z","author_association":"NONE","body":"I already tried building a dynamic framework wrapper around the static lib but got stack exporting the headers in the correct way aswell as making the dynamic framework usable with swift (not objc) apps."}}
{"actor":{"display_login":"dehlen"}}