How to develop custom VPN app client

Recently, I found the latest ios and xcode can't get the socket.fileDescriptor by let tunFd = self?.packetFlow.value(forKeyPath: "socket.fileDescriptor") as! Int32

I want to know there is another way to implement the custom vpn client for ios or mac os. thanks !

How to develop custom VPN app client
 
 
Q