Open hanxuanliang opened 4 years ago
it works well without any option in macOS 10.15.5, maybe you can try to set $GOOS=darwin .
I use
GOOS=darwin GOARCH=amd64 go build example.go
And modify the GOOS
to darwin
, but the problem still arises.
go version: go version go1.14.2 darwin/amd64
@ macOS 10.15.6
error:
I see there is support for Darwin in issue, but why does it recognize Unix? What do I need to configure?