About using an Agent as Extension Manager Delegate.
I tried using an Agent (XPC Service) hosted in the System Extension’s host app.
Then I have something like:
Container.app
- /Contents/Resources
- /Contents/Library/SystemExtensions/Extension.sysext
- /Contents/XPCServices/Agent.xpc
The agent cannot load the system extension (error ‘extension not found’).
This seems coherent with documentation stating that extensions are searched at /Contents/Library/SystemExtensions from main bundle. XPC Service’s main bundle is the Agent.xpc above.
However I noticed that the OSSystemExtensionRequest has a nil attribute named _containingApplication this looks like container app support is somehow planned.
Also there’s an error OSSystemExtensionErrorUnsupportedParentBundleLocation in the Framework which hint again at nested bundle support.
Did I missed something. Is there a way to say to SystemExtension Manager that it need to look at the XPC’s container app bundle instead of own bundle ?