-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
perf/linkerissues with objects being trimmed inappropriately (sub: perf)issues with objects being trimmed inappropriately (sub: perf)platform/ioss/triagedIssue has been reviewedIssue has been reviewedt/bugSomething isn't workingSomething isn't workingtesting-reenable
Milestone
Description
Description
With latest update of sdk #29046 our tests for NativeAOT and Full trimming mino had to be ignored to merge the PR in this commit and this .
We need to fix the issue on iOS and then reenable the test.
Version with bug
10.0.0-preview.4
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
10.0.0-preview.3
Affected platforms
iOS
Relevant log output
/Users/builder/azdo/_work/8/s/macios/src/ObjCRuntime/Blocks.cs(481,5): Trim analysis error IL2072: ObjCRuntime.BlockLiteral.GetDelegateProxyType(MethodInfo, UInt32, MethodInfo&): 'interfaceType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetInterfaceMap(Type)'. The return value of method 'System.Type.GetInterfaces()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. [/Users/builder/azdo/_work/_temp/test-dir/RunOniOSmauiRel1765006094/RunOniOSmauiRel1765006094.csproj::TargetFramework=net10.0-ios]
/Users/builder/azdo/_work/8/s/macios/src/ObjCRuntime/Runtime.cs(1122,5): Trim analysis error IL2072: ObjCRuntime.Runtime.GetBlockWrapperCreator(MethodInfo, Int32): 'interfaceType' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicMethods', 'DynamicallyAccessedMemberTypes.NonPublicMethods' in call to 'System.Type.GetInterfaceMap(Type)'. The return value of method 'System.Type.GetInterfaces()' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to. [/Users/builder/azdo/_work/_temp/test-dir/RunOniOSmauiRel1765006094/RunOniOSmauiRel1765006094.csproj::TargetFramework=net10.0-ios]
/Users/builder/azdo/_work/8/s/macios/src/ObjCRuntime/Blocks.cs(465,4): Trim analysis error IL2121: ObjCRuntime.BlockLiteral.GetDelegateProxyType(MethodInfo, UInt32, MethodInfo&): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2062'. Consider removing the unused warning suppression. [/Users/builder/azdo/_work/_temp/test-dir/RunOniOSmauiRel1765006094/RunOniOSmauiRel1765006094.csproj::TargetFramework=net10.0-ios]
/Users/builder/azdo/_work/8/s/macios/src/ObjCRuntime/Runtime.cs(1102,4): Trim analysis error IL2121: ObjCRuntime.Runtime.GetBlockWrapperCreator(MethodInfo, Int32): Unused 'UnconditionalSuppressMessageAttribute' for warning 'IL2062'. Consider removing the unused warning suppression. [/Users/builder/azdo/_work/_temp/test-dir/RunOniOSmauiRel1765006094/RunOniOSmauiRel1765006094.csproj::TargetFramework=net10.0-ios]
/Users/builder/azdo/_work/_temp/test-dir/packages/microsoft.net.illink.tasks/10.0.0-preview.4.25215.12/build/Microsoft.NET.ILLink.targets(98,5): error NETSDK1144: Optimizing assemblies for size failed. [/Users/builder/azdo/_work/_temp/test-dir/RunOniOSmauiRel1765006094/RunOniOSmauiRel1765006094.csproj::TargetFramework=net10.0-ios]
Build FAILED.Metadata
Metadata
Assignees
Labels
perf/linkerissues with objects being trimmed inappropriately (sub: perf)issues with objects being trimmed inappropriately (sub: perf)platform/ioss/triagedIssue has been reviewedIssue has been reviewedt/bugSomething isn't workingSomething isn't workingtesting-reenable
Type
Projects
Status
Done