Skip to content

Why are there no dynamic framework targets for React Native? #11337

@LeoNatan

Description

@LeoNatan

Description

React Native has only static library targets. Any reason why there are no dynamic framework targets as well?

screen shot 2016-12-07 at 12 00 28

I 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?

Adding dynamic framework targets will finally allow stopping the HEADER_SEARCH_PATHS hell of sub-projects. Working with Swift projects will also be much simpler.

Solution

There 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.

Additional Information

  • React Native version: Latest git source as of 2016-12-7.
  • Platform: iOS
  • Operating System: MacOS/Xcode

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions