Posts

Post marked as solved
2 Replies
186 Views
Hi,I have an existing macOs application for remote-access use-case that uses NKEs.The application consists of two processes, a user facing part and a (daemon) background process (maintained as two different Xcode projects).The daemon has the logic of my tunnelling protocol, configures the virtual interface created using NKEs and is responsible for handling the packets.As the NKEs are getting deprecated, I plan on modifying my app to use PacketTunnelProvider NetworkExtension.My containing app is the daemon.I tried adding PacketTunnelProvider target to the project and made sure the right entitlements are in place, configured the TunnelProviderManager and tried to bringup the PacketTunnelProvider.But it looks like my NETunnelProviderManager is failing to initialise without any sort of error reported on console.I had tried bringing up PacketTunnelProvider using a single-view application as the containing app and it worked flawlessly with that.When I use a command-line-tool as the containing application, the extension is not brought up. (Not able to embed the extension with the app target)Is there an exception on adding a NetworkExtension to a command-line-tool? Can we not embed a NetworkExtension within a command-line-tool?It also came to my notice that I cannot add a provisioning profile to my command-line-tool app target but it can be added to the single-view application.Can someone please let me know if I am missing something here?Thank You.
Posted
by ypurohit.
Last updated
.