Thanks to you guidance I changed my extension target name to com.mycompany.app.ext.systemextension and now the sysextd is able to trace it, but this exposed another issue with wrong package formatting :
sysextd: system extension does not appear to belong to any extension categories
myapp: com.mycompany.app.ext: Activation request failed: Invalid extension configuration in Info.plist and/or entitlements
I saw that on another 3rd party network extension that works, the Info.plist has
<key>CFBundlePackageType</key>
<string>SYSX</string>
and in my extension it's defined as :
<key>CFBundlePackageType</key>
<string>XPC!</string>
Any idea how to change the variable that set this plist field (PRODUCT_BUNDLE_PACKAGE_TYPE)?
Also, here's the entitlements but I don't think there's any problem here :
M-C02F71G2MD6R:VPN zkabeli$ codesign -d --entitlements :- /Applications/myapp.app/Contents/Library/SystemExtensions/com.mycompany.app.ext.systemextension
Executable=/Applications/myapp.app/Contents/Library/SystemExtensions/com.mycompany.app.ext.systemextension/Contents/MacOS/com.mycompany.app.ext
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.application-identifier</key>
<string>TEAM_ID.com.mycomapny.app.ext</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>app-proxy-provider</string>
<string>content-filter-provider</string>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.developer.team-identifier</key>
<string>TEAM_ID</string>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.mycompany.vpn</string>
</array>
<key>com.apple.security.get-task-allow</key>
<true/>
</dict>
</plist>
And here's the entitlement of the containing app :
M-C02F71G2MD6R:VPN zkabeli$ codesign -d --entitlements :- /Applications/myapp.app
Executable=/Applications/myapp.app/Contents/MacOS/myapp
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.application-identifier</key>
<string>TEAM_ID.com.mycompany.app</string>
<key>com.apple.developer.networking.networkextension</key>
<array>
<string>packet-tunnel-provider</string>
</array>
<key>com.apple.developer.system-extension.install</key>
<true/>
<key>com.apple.developer.team-identifier</key>
<string>TEAM_ID</string>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.mycompany.vpn</string>
</array>
<key>com.apple.security.get-task-allow</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
<array>
<string>com.apple.sysextd</string>
</array>
</dict>
</plist>