Debugging go app in Jetbrains Goland on m1

First download a proper version of GoLand here — select .dmg (MacOS Apple Silicon) here (direct link —
Then make sure you are using arm version of go (go version go1.16.2 darwin/arm64). If not, download and install arm version of golang (like «go1.16.2.darwin-arm64.pkg») from the list here —

Now it should work.
With amd64 version of either GoLand, golang, or both, it will run as expected, but it will fail to debug in GoLand.

Further reading —

If you see an error like this

You need to reinstall xcode:

Discussed on stackoverflow —

Similar Posts