List of entitlements and correct way to integrate it

Hello everyone.

I have found for using defaults write commands inside my xcode app, it seems I need a "com.apple.security.temporary-exception.shared-preference.read-write" entitlement.


Am I supposed to add this somewhere in a submenu in the capabilities selection screen, with App Sandbox, Hardened runtime, etc?

Or do I need to edit a plist manually?

What is the correct way?


How does one becomes aware of all possible entitlements and what is the one you need dependingon what you want to do?


Thanks for your clues

Accepted Answer

In the Entitlement Key Reference: from the section App Sandbox Temporary Exception Entitlements:


"To request a temporary exception entitlement for a target in an macOS Xcode project, add it to the target’s

.entitlements
property list file using the Xcode property list editor."


If you scroll to the bottom of that link, it mentions your entitlement.

Great, added to bookmarks, thank you.

List of entitlements and correct way to integrate it
 
 
Q