Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Action Extension Won't Launch Outside Mac App Store: Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing

I have an outside Mac App Store app. It has an action extension. I can't get it to run from Xcode. I try to debug it from Safari. It shows up in the menu when I click the 'rollover' button but it doesn't show up in the UI at all. Xcode doesn't give me any indication as to what the problem is. I see this logs out in console when I try to open the action extension:

Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing for accessing={TCCDProcess: identifier=BundleIdForActionExtHere, pid=6650, auid=501, euid=501, binary_path=/Applications/AppNamehere.app/Contents/PlugIns/ActionExtension.appex/Contents/MacOS/ActionExtension}, requesting={TCCDProcess: identifier=com.apple.appleeventsd, pid=550, auid=55, euid=55, binary_path=/System/Library/CoreServices/appleeventsd},

I don't see why the Action extension needs Apple events but I added it to the entitlements anyway but it doesn't seem to matter. The action extension fails to open.

Accepted Answer

Appears to have been some sort of code signing issue. No useful errors from Xcode. The action extension would show up in the list and just wouldn't work when you tried to use it.

So I tried toggling various code signing settings ...from automatic to manual etc and back again. For whatever reason when I set code signing back to automatic Xcode didn't complain but the extension didn't work. Would be great if the code signing issues were caught at compile time and displayed instead of letting me sign and notarize a nonworking extension.

I ended up just deleting the entire Action Extension target and making a new one, adding all the same compile sources and it works.

Butt... NSTextView shows action extensions via the rollover button but the menu items are disabled (FB17449863)! Seems action extension with NSExtensionActivationSupportsText set to yes only work in Safari.... any workarounds to that?

Action Extension Won't Launch Outside Mac App Store: Prompting policy for hardened runtime; service: kTCCServiceAppleEvents requires entitlement com.apple.security.automation.apple-events but it is missing
 
 
Q