Thanks for the explanation, I have recreated the Packet Tunnel Provider as a system extension.
However I'm having trouble getting the system extension started. After hitting tunnel.connection.startVPNTunnel() on the main app, nothing really happens and no error is caught.
Trying to attach the debugger as root also does not initiate, as it seems the extension is not started at all.
I have followed your advice detailed at: https://developer.apple.com/forums/thread/725805
The app is now copied to /Applications upon build
In the VPNManager, the providerBundleIdentifier is set to the bundleIdentifier of the system extension network extension.
I've added os_log to the main.swift initiation point, but no log shows up in the console app filtered by the subsystem
Any ideas where else to check?