Failed to launch: could not launch process: can not run under Rosetta, check that the installed build of Go is right for your CPU architecture

更新于 阅读 23

M1电脑vscode调试go时报错:

Failed to launch: could not launch process: can not run under Rosetta, check that the installed build of Go is right for your CPU architecture

这是由于dlvRosetta不起作用,在M1电脑上安装goarm64版本后,按住shift + command + p 执行 Go: Install/Update Tools命令重新编译所有工具即可。