macOS: Enable create-dmg/AppleScript permissions for CI (e.g. TeamCity)
kafeg opened this issue · comments
Vitaly commented
Hello all. This is just for keep note about how to give all required permissions to the create-dmg to be executed on macOS on CI devices.
What we need to do is disable SIP and then manually add the permissions to the macOS DB.
Here what the permissions must be added: https://support.circleci.com/hc/en-us/articles/360057033612-Enabling-AppleScript-Support-on-macOS
And here the source code sample: https://circleci.com/developer/orbs/orb/circleci/macos#commands-add-permission
alien2108 commented
You can fix that by giving osascript System Events permission!
System Preferences/Privacy & Security/Automation/osascript -> Enable "System Events"