Closed houmie closed 4 years ago
Hi @houmie,
I've never encountered such issue myself and for me it is hard to say why you see this message. As a first step I would recommend to check project configuration (entitlements, bundle ids, etc.) Then debug tunnel provider step by step to ensure that it starts without problems. Also, check log messages, errors, and events provided by OpenVPNAdapterDelegate
. Here you will find a bit outdated project butI think it will be sufficient as a guide
Thanks @ss-abramchuk for your response.
I will dig into that. Looking at the project, do I have to have a second target and move PacketTunnelProvider
in there?
Because I didn't do that in my project. Everything is together inside the same target. I wonder if your approach is mandatory or is it just a pattern for best practices?
I guess it is mandatory. Quote from the Apple Documentation:
When the system starts a VPN configuration that uses your packet tunnel provider, it launches your app extension, instantiates your packet tunnel provider subclass within that app extension, and starts forwarding packets to your provider.
@ss-abramchuk You were right. I introduced an app extension and now it's working. Thank you so much for all your help. Please continue with this project. It's amazing!
Hello,
Amazing project. I really hope it works. I have followed everything from the Readme and get it start the tunnel. But it doesn't connect.
When I went to check on the VPN in Settings, I got a warning message, that I don't understand. (see screenshot) App Must be upgraded by developer it before can be connected
Hi @ss-abramchuk Do you have any advise please? Is there any demo project by any chance? :-) Thanks