Skip to content

Add support for mergeable libraries #20262

Closed

Description

@rolfbjarne

Ref: https://developer.apple.com/videos/play/wwdc2023/10268/

We should investigate what we need to do in order to support mergeable libraries.

A few points after watching the WWDC video:

  • Mergeable libraries are basically dylibs/frameworks that contain enough information to act as static libraries as well, which about doubles their size.
  • The consumer of mergeable libraries decide if they want the dynamic or the static version of it.
  • Only the new linker can consume the static version of mergeable libraries.

I suspect mergeable libraries will work without any changes on our side, because we'll see them and treat them as standard dynamic libraries / frameworks.

However, we won't remove the static bits from them when putting them into the app bundle, so app size will be increased unless we add support for removing static bits from mergeable libraries.

So first task would be:

  • Investigate how Xcode removes static bits from mergeable libraries.
  • Implement what Xcode does in our own code.

Then additionally:

  • Investigate what we need to do in order to support linking statically with mergable libraries.
  • Implement it, if we so desire.

Activity

  1. added
    feature
    on Mar 6, 2024
  2. added this to the Future milestone on Mar 6, 2024
  3. dotMorten commented on Feb 11, 2026

    @dotMorten
    Contributor

    Esri has a need for supporting mergeable libraries in our SDK to help reduce deployment sizes.

  4. modified the milestones: Future, .NET 12 on Sep 2, 2026
  5. added a commit that references this issue on Sep 10, 2026
    482d490
  6. dotMorten commented on Sep 10, 2026

    @dotMorten
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions