dotnet / dotnet/macios

Unused frameworks linked into a fully managed linked macOS app

Open
#6,542 1 comment 0 reactions 0 assignees View on GitHub
app-size enhancement good first issue macOS performance
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

### 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:

* QuartzCore (CoreAnimation)
* CoreLocation
* Security
* SceneKit
* MapKit
* BusinessChat
* UserNotifications

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/dotnet/macios/blob/58a8d227858bca4c2ace4ed6e2658a8183dac6b1/tests/dotnet/UnitTests/ProjectTest.cs#L3412-L3443

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.