WireGuardKit iOS - Import package and usage of 'Shared' classes

Alexey Ponkin alexey.ponkin at gmail.com
Sun Mar 20 15:24:38 UTC 2022


Hi guys,
I'm trying to use WiregurdKit in my iOS app. I imported the package as
described here - https://github.com/WireGuard/wireguard-apple. Now I
can use `PacketTunnelProvider` inside `WireGuardNetworkExtension`. But
unfortunately , I can't use any classes and extensions from the
`Shared` folder
(https://github.com/WireGuard/wireguard-apple/tree/master/Sources/Shared).
Is there any way to make them 'visible' for my project? I'm fairly new
to Swift and iOS development. I would like, for instance, to reuse
this extension (https://github.com/WireGuard/wireguard-apple/blob/master/Sources/Shared/Model/NETunnelProviderProtocol%2BExtension.swift)
and may be, `Keychan` wrapper class.
Thanks in advance for your help.


More information about the WireGuard mailing list