macOS Network Extension deactivation fails with authorizationRequired

Hello,

I have a .app that runs as LaunchDaemon and configured to be an Agent (LSUIElement) that is stored in /Applications.

Installing network extensions works, but deactivation fails with OSSystemExtensionErrorDomain error 13 (authorization required).

requestNeedsUserApproval is not called for deactivation, but it's called when being activated.

Any ideas? Thank you!

P.S. It works on Debug, just not on Release...

I have a .app that runs as LaunchDaemon and configured to be an Agent (LSUIElement) that is stored in /Applications.

Wow, that’s quite a combo. Lemme see if I understand this correctly:

  • You have a launchd daemon.
  • That’s embedded in an app-like wrapper.
  • Its Info.plist contains LSUIElement.
  • Presumably because the daemon displays UI.
  • And the daemon is run via a launchd property list in /Library/LaunchDaemons.

Is that right?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

macOS Network Extension deactivation fails with authorizationRequired
 
 
Q