I use DropDMG to automate DMG creation in developer workflow. After upgrading to 10.14, I found that DropDMG does not get run in a Xcode post-action in our archive scheme. I call it like this:
dropdmg --layout-name Salute --APP_VERSION ${version} --APP_SHORT_VERSION_STRING ${buildNumber} $tmpdir/"Salute${buildNumber}/Salute.app"
I did find that it works fine if I run the build with xcrun on the command line (I also get the security/privacy prompts when run from the command line):
xcodebuild archive -scheme 'Salute'
I added dropdmg and xcode to Full Disk Access and Accessibility, but it still fails if called within Xcode. The console shows this error when I run within Xcode:
Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for ACC:{ID: com.twocanoes.salute, PID[73988], auid: 501, euid: 501, binary path: '/Users/tperfitt/Library/Developer/Xcode/DerivedData/salute-bxnmtaqgwbdmpndyrpddlgtchapm/Build/Products/Development/Salute.app/Contents/MacOS/Salute'}, REQ:{ID: com.apple.appleeventsd, PID[56], auid: 55, euid: 55, binary path: '/System/Library/CoreServices/appleeventsd'}
It looks to me like this is a bug in Xcode that doesn’t allow AppleEvents (“kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events”) as part of the new macOS 10.14 Hardening
Have you found a workaround for this issue? I have been planning to move to an automated workflow so this will probably push me to a command line workfllow, so my workaround might be fine. I thought I would let you know and also see if it has been figured out.
Also, I have been using DropDMG for years and it is a great app. thanks for being awesome.
tim