Hi all,
It’s a long time ago that I created an app for mac, but now I’m on it again. My problem is that I do not get Entitlements to work.
I created a .entitlements file with this content :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.automation.apple-events</key>
<true/>
</dict>
</plist>
and added it to user entitlements in the MacOs built section. As well as my signature. The access rights dialogue appears on every launch. If I agree it works. As far as I remember, in the past after giving the rights once it never asked again. In the Mac security settings for automation my app is not listed.
I tried then to do the entitlements in the terminal with this command :
- codesign --deep --force --verify --verbose --sign “XXXXXXX” --entitlements /Users/myidentifier/Library/Mobile\ Documents/com~apple~CloudDocs/Development/02\ In\ Progress/myApp/myApp.entitlements /Applications/myApp.app
No luck.
When I try to check the entitlements with this terminal command :
codesign -d --entitlements - --xml /Applications/myApplication.app
the terminal returns my entire entitlements file content, not only key/value pairs.
Has someone an idea what turns wrong and how to fix it ? Thanks in advance for your help.
13 posts - 3 participants