User Entitlements

I’m trying to add additional user entitlements to a Mac OS app - but when I click the … next to User Entitltements in the MacOS Sign settings the file picker is not allowing the file to be added. I have tried different extensions .plist, .xml, .txt - but none seem to work. Ideas?

More specifically - I am trying to add these entitlements:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

    <!-- Allow PhotoKit / Photos library access -->

    <key>com.apple.security.personal-information.photos-library</key>

    <true/>



    <!-- Allow adding/importing items into the Photos library -->

    <key>com.apple.security.personal-information.photos-add</key>

    <true/>

</dict>

</plist>

The file needs to be a plist file with the .entitlements extension.

Thank you. That would have been good to have been in the manual.