wireguard 清单无效 swift

问题描述 投票:0回答:2

我尝试建立一个带有wireguard的VPN作为开放服务器。然后我尝试注入wireguard的依赖,出现错误,如下图所示:

截图
enter image description here

我不知道如何解决。

swift manifest wireguard
2个回答
0
投票

我也有这个错误。要解决这个问题,您应该:

  1. 将存储库 (https://git.zx2c4.com/wireguard-apple) 克隆到本地“wireguard-apple”目录
  2. 将本地包的“Package.Swift”第一行从“// swift-tools-version:5.3”编辑为“// swift-tools-version:5.5”
  3. 按照“README.md”中的指南执行 WireGuardKit 集成

之后您可能会遇到与“/usr/bin/make”相关的其他错误。在步骤 2 中,特别是在说明

'In the appeared "Info" tab of a newly created target, type in the "Directory" path under the "External Build Tool Configuration"'
中,请确保浏览到包含 MAKE 文件的文件夹。此外,您还需要下载 [email protected] 并在 XCode 中添加一个名为“PATH”的用户定义变量,其值为“${PATH}:/path/to/[email protected]/bin”。

希望这有帮助!


0
投票

@Kuldeep J 我也面临着同样的问题。找到解决办法了吗?enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.