Skip to content

Unsupported Dlfcn pattern warning #25670

Description

@kerams

Apple platform

iOS

Framework version

net11.0-*

Affected platform version

.NET 11 Preview 5, VS 2026

Description

warning MT2255: Unknown or unsupported Dlfcn pattern: 'ObjCRuntime.Dlfcn::dlsym(System.IntPtr,System.String)' in method 'Avalonia.iOS.Eagl.EaglPlatformGraphics/<>c__DisplayClass10_0::<.ctor>b__0(System.String)'

Offending code

https://github.com/AvaloniaUI/Avalonia/blob/2913dc59fa526e3a57efd1b07b13bbb988e922f9/src/iOS/Avalonia.iOS/Eagl/EaglDisplay.cs#L26-L35

I am fairly certain Preview 3 or 4 didn't show this warning, but as far as I can see, it doesn't cause any run-time problems since I am using Metal.

Steps to Reproduce

Compile any Avalonia application with full and true, I suppose.

Did you find any workaround?

No response

Build logs

No response

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions