xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.49k stars 515 forks source link

Unused frameworks linked into a fully managed linked macOS app #6542

Open rolfbjarne opened 5 years ago

rolfbjarne commented 5 years ago

Steps to Reproduce

  1. Create new XM app.
  2. Enable the linker if it's not already linked.
  3. Build.
  4. Examine which native frameworks the app links with.

Expected Behavior

A limited set of frameworks required by all apps (Foundation, AppKit).

Actual Behavior

Quite a few frameworks:

It's probable that one of more of these frameworks have a valid reason for being used; each would need investigation to see if really needed or not.

We have a test for this: https://github.com/xamarin/xamarin-macios/pull/6543

Environment

xcode11 branch

spouliot commented 5 years ago

was the protocol/attributes/registrar optimization applied to map (by default, since it's not AOT'ed) ?