Skip to content

Latest .NET 11 NativeAOT packs missing some static libraries #123253

Description

@rolfbjarne

The 11.0.0-alpha.1.26065.101 version of the microsoft.netcore.app.runtime.nativeaot.ios-arm64 pack (and probably other packs for other RIDs as well, I haven't checked) are missing the following files:

  • libSystem.Globalization.Native.a
  • libSystem.IO.Compression.Native.a
  • libSystem.Native.a
  • libbrotlicommon.a
  • libbrotlidec.a
  • libbrotlienc.a

They were present in 11.0.0-alpha.1.26062.101

Complete file list: https://gist.github.com/rolfbjarne/7f42f3cf3ed3a815e2e9fe2b28c580fb#file-gistfile1-txt-L76-L82

This started happening in this maestro PR: dotnet/macios#24508

specifically this commit: dotnet/macios@ee15359

I tried looking through the relevant dotnet/runtime commits, but I didn't see anything obvious causing this.

Activity

  1. dotnet-policy-service commented on Jan 16, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
    See info in area-owners.md if you want to be subscribed.

  2. MichalStrehovsky commented on Jan 16, 2026

    @MichalStrehovsky
    Member

    and probably other packs for other RIDs as well, I haven't checked

    I checked Microsoft.NETCore.App.Runtime.NativeAOT.linux-arm64.11.0.0-preview.1.26065.113 and that one has these. Microsoft.NETCore.App.Runtime.NativeAOT.ios-arm64.11.0.0-preview.1.26065.113 doesn't have these.

    So looks to be iDevice specific. I can't build these things locally as I don't have a mac.

  3. dotnet-policy-service commented on Jan 16, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  4. self-assigned this
    on Jan 16, 2026
  5. removed
    untriagedNew issue has not been triaged by the area owner
    on Jan 16, 2026
  6. steveisok commented on Jan 16, 2026

    @steveisok
    Member

    In the local build, it looks like coreclr and nativeaot are supposed to look back to artifacts/bin/coreclr/ios.<arch>.<config>/sharedFramework for the native lib artifacts. NativeAOT does not appear to be doing that, hence the reason the static libs aren't included.

  7. steveisok commented on Jan 16, 2026

    @steveisok
    Member

    ResolveLibrariesRuntimeFilesFromLocalBuild typically copies all the libraries and native lib bits. There's a step to exclude some native bits if the runtime is coreclr or nativeaot because they are supposed to be accounted for in ResolveRuntimeFilesFromLocalBuild. That's not happening for nativeaot due to BuildNativeAOTRuntimePack=true.

  8. steveisok commented on Jan 16, 2026

    @steveisok
    Member

    @kotlarmilos if you want, I can fix it. It's no problem, so let me know.

  9. added a commit that references this issue on Jan 16, 2026
    14a9c69
  10. added a commit that references this issue on Jan 19, 2026
    0bb8d77
  11. locked and limited conversation to collaborators on Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

  • Status
    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions