Skip to content

publish an app which reference a trim safe library but warning with il2026 #34381

@jingliancui

Description

@jingliancui

Apple platform

iOS

Framework version

net10.0-*

Affected platform version

.net 10 latest version

Description

Background please see here
stef-k/MauiControlsExtras#283

MauiControlsExtras is config with safe trimming, but the sampleapp reference the nuget, then publish it using command, will shown 200+ warning about il2026.

Steps to Reproduce

  1. cloned the source code from https://github.com/jingliancui/ExtrasComboBoxReleaseIssue
  2. When you use command to publish the app
    dotnet publish -f net10.0-ios -p:ArchiveOnBuild=true -p:ApplicationTitle="SampleAppUAT" -p:ApplicationId="yourappid" -p:CodesignKey="yourcodesignkey" -p:CodesignProvision="yourcodesignprovision"
    Then 200+ warning about ILC : Trim analysis warning IL2026 shows

Did you find any workaround?

no

Build logs

please see the log from stef-k/MauiControlsExtras#283 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-publishingIssues with the app packaging/publishing process (ipk/apk/msix/trimming)platform/iost/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions