From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.zx2c4.com (lists.zx2c4.com [165.227.139.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 50296C4332F for ; Mon, 21 Mar 2022 19:44:07 +0000 (UTC) Received: by lists.zx2c4.com (OpenSMTPD) with ESMTP id 40ae45a1; Mon, 21 Mar 2022 19:34:57 +0000 (UTC) Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [2607:f8b0:4864:20::b32]) by lists.zx2c4.com (OpenSMTPD) with ESMTPS id 54db7fef (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 20 Mar 2022 15:24:50 +0000 (UTC) Received: by mail-yb1-xb32.google.com with SMTP id t33so16512554ybt.12 for ; Sun, 20 Mar 2022 08:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=N6CgI7SoIZ1j/nx4mu/6twZJEjzrqwfYAnKrP1TfbdA=; b=MkyLEC+/JR7+mOl9zCRkxcsjtSC+oc1gzClZW1uxrJFecjYn72m3x/R2xS3LuvVJxv 8DUaQUBUafNg2hh8ZiTQpEtj7WjTGhu358ZR2Fv7Rcl6uKeAjxoh6tZCwqj/7b8+X1kd v0oP4qcoZDwjrXf/lO7AMxxQChpT04GXG3CPRCBzxpOR36/Xk7/dUq/cTI8LAs0x15GH k2ZWReclLuZcoLtupSnq8zl0UJgneVHeyL/ZwLLc8jKrbNy/MGUBdxKqOSAw0Fsqk/3U hdslAfDC5jDqhIxnyp7U04N/c4hwdZL7FXMfrK+0JSa/Zv1dWnQaqWdWvAP5hWcSlaPp 8Pmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=N6CgI7SoIZ1j/nx4mu/6twZJEjzrqwfYAnKrP1TfbdA=; b=yz49u51xNZ1BvEyuIUJxipttdYegOv4Tsk4q4wNAd78CY6w6yCFDkW6yvrPxgUn5Ym CXkXprp/eKahNTaTY50nP+lAXhBx7t+vx4YHBtH1W6MRn5vT/Yaq/Yz+4h1X+EhS6JjT ofAMy7wDZkAywlsrAi7BDZeHW0t5kqLPgEZlbFM2RD9mw5MhHAnMiS8dZgf5JdXEknFU 3d6bffwidjd/popDoKDk+/07msry473eY8c4lBQHBaY5cZCmRs9DnEZwBVW37LfojQUB ChCX1k2oEJg/EJz9pb7TRxgd8URWUwYBeGgDrp34t2XQ0OazIXHhb9rIVf+gYGHawWyM pTgQ== X-Gm-Message-State: AOAM533KsZ0ooD+eywKhDCBaMAkwNfod4ZPnkoaGZyVVrfzD7E67wOpv CLzSZD6hzQ6QmqmWtV8WJdzuJdHSQoj4UeUdFiHESZR5Gz9fYg== X-Google-Smtp-Source: ABdhPJwv9WNsRAj+ElGMEh8l9R5QMWXhzGkPVUR6UOlYJWvtSat67oaZSOHIGtiRTrqhVgKHRU2OxqyWuOvlcKwBsp8= X-Received: by 2002:a25:e54a:0:b0:633:c1d1:e8d with SMTP id c71-20020a25e54a000000b00633c1d10e8dmr10575579ybh.160.1647789889122; Sun, 20 Mar 2022 08:24:49 -0700 (PDT) MIME-Version: 1.0 From: Alexey Ponkin Date: Sun, 20 Mar 2022 16:24:38 +0100 Message-ID: Subject: WireGuardKit iOS - Import package and usage of 'Shared' classes To: WireGuard mailing list Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Mon, 21 Mar 2022 19:34:47 +0000 X-BeenThere: wireguard@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: wireguard-bounces@lists.zx2c4.com Sender: "WireGuard" 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.