dlv version)?go version)?go build -ldflags="-s -X main.Build=v0.11.0" github.com/derekparker/delve/cmd/dlv
# github.com/derekparker/delve/proc
clang: warning: no such sysroot directory: ''
In file included from src/github.com/derekparker/delve/proc/proc_darwin.go:3:
./proc_darwin.h:1:10: fatal error: 'sys/types.h' file not found
#include <sys/types.h>
^
1 error generated.
make: *** [build] Error 2
@zenyue Can you try running xcode-select --install and see if this resolves your issue?
Thank you! the problem is solved.
Run xcode-select --install will update the command line tools for xcode.
After updated run brew install go-delve/delve/delve succeed.