skip to Main Content

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!

2

Answers


  1. Have you installed the command line tools for XCode?
    https://developer.apple.com/download/all/?q=xcode

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search