unoplatform / uno

Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
https://platform.uno
Apache License 2.0
9.05k stars 735 forks source link

[maccatalyst] warning MT0182: Not linking with the framework OpenGLES #10528

Open spouliot opened 2 years ago

spouliot commented 2 years ago

Current behavior

Since 4.6 this appears while building an Uno app for Mac Catalyst.

ILLINK : warning MT0182: Not linking with the framework OpenGLES (referenced by a module reference in SkiaSharp.Views.Windows.dll) because it's not available on the current platform (MacCatalyst).

It's unclear (to me) why SkiaSharp.Views.Windows.dll would be present/referenced for a MacCatalyst build. It likely impact the app build time (more to load, analyze/link...)

Expected behavior

The condition for this warning should not exist.

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

4.6.x

Affected platforms

Mac Catalyst

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

spouliot commented 2 years ago

c.c. @MartinZikmund

MartinZikmund commented 1 year ago

SkiaSharp is not needed for SVG on Windows, I am not sure whether it is for Lottie @jeromelaban ? Otherwise it should be safe to remove

Wait, Catalyst? In that case it should definitely not be there 😆 !

jeromelaban commented 1 year ago

It may be related to an invalid transitive dependency, we'll need to look out for which one.

MartinZikmund commented 1 year ago

image

The namespace SkiaSharp.Views.Windows is used, but the .dll should have different name, right? (being the Uno Views dll)