Reputation: 61
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
I don't know how to solve it.
Upvotes: 3
Views: 1340
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
Reputation: 64
I also had this error. To solve it, you should:
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