I've upgraded my macOS to Catalina. Then I tried to run via Xcode my macOS VPN app (implemented with Packet Tunnel Provider) -
The VPN fails to connect and I see at the Console a lot of errors, such as:
Current bundle (/Users/myClientPath/Client.app) does not have a SystemExtensions directory
NESMVPNSession[Primary Tunnel:myDetails:(null)]: Received a start command from myClient[2061]
Found 0 (0 active) registrations for com.my.bundle.id.extension (com.apple.networkextension.packet-tunnel) - this msgs repeats several times
NEVPNTunnelPlugin(com.my.bundle.id[794]): Validation of the extension failed
NESMVPNSession in state NESMVPNSessionStateStarting: plugin NEVPNTunnelPlugin started with PID 0 error (null)
Hub connection error: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service on pid 0 named com.my.bundle.id.extension
disposing
Failed to start extension com.my.bundle.id.extension
NSDebugDescription=connection to service on pid 0 named com.my.bundle.id.extension
How can I solve it?
I have not heard of this being a known issue on macOS 10.15.1. It looks like during startup, your extension is failing validation due to a communication failure to the kernel. This is an odd case and I am glad 10.15.2 fixed it, but I would recommend opening a bug that includes a sysdiagnose on 10.15.1 while you are reproducing the error.
Matt Eaton
DTS Engineering, CoreOS
meaton3 at apple.com