Hi All,
Starting from the SimpleFirewall Apple Network Extension example I managed to create an app with an Endpoint Security extension.
From the console I can see that the app is starting correctly and the System Extension is registered and loaded correctly by Sysextd:
attempting to realize extension with identifier com.***.***.endpoint
But then the system extensions fails with:
System extension request failed: Invalid extension configuration in Info.plist and/or entitlements
That is the same error I can see settings a breakpoint in:
func request(_ request: OSSystemExtensionRequest, didFailWithError error: Error)
Note 1: My provisioning profile doesn't contain yet a com.apple.developer.endpoint-security.client (requested but not yet approved) but I removed it from the .entitlements file and added to the system extension info.plist, for development "should" be ok right?
Note 2: Keeping the entitlement in the .entitlements file but not having it in the Provisioning Profile obviously causes an error:
com.***.zuul: Unsatisfied entitlements: com.apple.developer.endpoint-security.client
What am I missing?
I noticed that the SimpleFirewall has a special configuration in the info.plist
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>content-filter-provider</string>
</array>
do I need to add something similar to the Endpoint Security?