Skip to content

Improve the entitlements debug/release experience #18344

@Redth

Description

@Redth

Looking at recent changes to our MAUI templates:

https://github.com/dotnet/maui/blob/main/src/Templates/src/templates/maui-mobile/MauiApp.1.csproj#L64-L73

This is a bit verbose and would be preferable to not include in the templates by default.

How can we improve the implicit behaviour here?

Entitlements.Debug.plist

  • com.apple.security.get-task-allow

I'm not sure exactly why this one was added... perhaps for debugging the webview, or maybe for secure storage API's in debug mode

Entitlements.Release.plist

  • com.apple.security.app-sandbox
  • com.apple.security.network.client

These are required for publishing catalyst apps to the store.

Proposal

  1. Seems like a good time to introduce an item group of something like PartialEntitlementsPlist that allows multiple entitlements files to be added to the build to be merged together.
  2. Is there a good reason not to implicitly merge the release plist items into a release maccatalyst build? It could always be conditioned on a flag that someone could override if they needed to.
  3. Same goes for debug mode - can we implicitly merge the debug plist item, add a condition to not include them if it is explicitly set.

Metadata

Metadata

Labels

featureA feature to be implemented

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions