After you open the project in Vcode, please right click in the iOS folder then open in Xcode.
download and Change the WireGuardKitGo
directory with the directory you have.
If build fails with the following error
Add a user defined variable to both runner and VPNExtension targets' build settings with key PATH
and value ${PATH}/path/to/bin/folder/with/go/executable
, e.g. ${PATH}:/usr/local/go/bin
.
if above error still persists on you M1 Mac, then most probably you need to install arch based cmake
Build might fail with "source files not found" error the first time you try it, because modern XCode build system compiles dependencies in parallel, and some dependencies end up being built after the ones that require them. In this case simply restart the build.