Skip to content

Automatically add the Get Task Allow entitlement to Mac Catalyst apps when building for debugging #13080

@mikeparker104

Description

@mikeparker104

Description

Xcode automatically adds the Get Task Allow entitlement to apps that you build for debugging, while removing the entitlement before App Store submission. This is not the case for .NET MAUI Mac Catalyst apps. The requisite entitlements must be added manually, as described in #7706 - MAUI WebView doesn't allow to web session to be inspected in Safari developer tools (Mac Catalyst), to enable use of things like the Safari Web Inspector. It would be great to have the ability to enable or disable this via the csproj and/or Visual Studio project options. The expectation would be that this is enabled by default but could be optionally disabled like in Xcode projects.

This feature would depend on adding support for partial entitlements similar to how partial app manifests / Info.plists work as-per the comments in #7706.

Public API Changes

<ImplicitDebuggingToolEntitlement>enable</ImplicitDebuggingToolEntitlement>

Intended Use-Case

  • Simplify use of debugging tools like Safari Web Inspector
  • Help avoid unintentional use of debug entitlements for App Store builds

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingfixed-in-8.0.0-preview.4.8333Look for this fix in 8.0.0-preview.4.8333!partnerIssue or Request from a partner teampartner/cat 😻this is an issue that impacts one of our partners or a customer our advisory team is engaged withproposal/open

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions