narner
narner

Reputation: 3221

Integrating WireGuard into Swift macOS App

I'm attempting to integrate the wireguard-apple package into my macOS Xcode project. enter link description here. I've followed the instructions in the README, but I keep getting this error when building the project:

enter image description here

This is how I have the project structure set-up:

enter image description here

And how I have the External Build System target configured:

enter image description here

It's not clear to me what other steps if any are needed that aren't included in the repository's readme. Any help is appreciated!

Upvotes: 1

Views: 961

Answers (1)

Cheolhyun
Cheolhyun

Reputation: 185

I recommend that you try the following procedure.

  1. Check that the go language is well installed.
  2. check $(GOROOT).
  • How to check $(GOROOT)
% go env GOROOT
/usr/local/go
  1. Now, In Xcode, enter Target -> your External Build System -> Build Settings.
  2. Enter PATH : GOROOT/bin. (Enter your GOROOT.)

Build Settings

I had the same problem a few months ago and found the above solution through searching, but unfortunately I didn't write down the original article, so I can't give you the original post.

Anyway, I hope this solves your problem.

Upvotes: 0

Related Questions