Frank Ding
Frank Ding

Reputation: 61

wireguard Invalid manifest

I try to build a vpn with wireguard as open server. and then I try to inject the dependency of wireguard, the error is raised as showed in image below:

Screenshot
enter image description here

I don't know how to solve it.

Upvotes: 3

Views: 1340

Answers (2)

Sneha
Sneha

Reputation: 41

I got the same issue. It was because of the swift tools version compatibility issue. Try to add lower version of WiregGurdKit through SPM. Verion "1.0.15-26" worked for me. To get list of older versions check https://git.zx2c4.com/wireguard-apple.

Upvotes: 4

meiraxx
meiraxx

Reputation: 64

I also had this error. To solve it, you should:

  1. Clone the repository (https://git.zx2c4.com/wireguard-apple) to a local "wireguard-apple" directory
  2. Edit your local package's "Package.Swift" first line from "// swift-tools-version:5.3" to "// swift-tools-version:5.5"
  3. Perform the WireGuardKit integration as per the guide in "README.md"

You will likely encounter other errors afterwards related to "/usr/bin/make". In step 2, specifically in the instruction 'In the appeared "Info" tab of a newly created target, type in the "Directory" path under the "External Build Tool Configuration"', make sure to browse to the folder where you have your MAKE file. Furthermore, you also need to download [email protected] and add a user-defined variable in XCode called "PATH", with value "${PATH}:/path/to/[email protected]/bin".

Hope this helps!

Upvotes: 2

Related Questions