Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You should document CustomEntitlements in csproj for different release and debug entitlements #2580

Open
NGumby opened this issue Oct 24, 2024 · 2 comments

Comments

@NGumby
Copy link

NGumby commented Oct 24, 2024

Type of issue

Missing information

Description

It's nowhere to be found how to make different entitlements for release and debug

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/ios/entitlements?view=net-maui-8.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/ios/entitlements.md

Document Version Independent Id

3305d4a0-d05c-84db-0388-2dc01fbbcfc3

Article author

@davidbritch

Metadata

  • ID: 3305d4a0-d05c-84db-0388-2dc01fbbcfc3
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui

Related Issues

@dotnetrepoman dotnetrepoman bot added the ⌚ Not Triaged Not triaged label Oct 24, 2024
@davidbritch davidbritch added the doc-enhancement Improve the current content [org] label Oct 24, 2024
@dotnetrepoman dotnetrepoman bot removed the ⌚ Not Triaged Not triaged label Oct 24, 2024
@davidbritch
Copy link
Contributor

davidbritch commented Oct 24, 2024

Hi @NGumby

You'd commonly name your files Entitlements.Debug.plist and Entitlements.Release.plist. Then set $(CodesignEntitlements) in a PropertyGroup that has a condition based on the TFM and the build configuration:

<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Debug'">
    <CodesignEntitlements>Entitlements.Debug.plist/</CodesignEntitlements>
</PropertyGroup>

<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Release'">
    <CodesignEntitlements>Entitlements.Release.plist/</CodesignEntitlements>
</PropertyGroup>

@NGumby
Copy link
Author

NGumby commented Oct 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants