stdlib.h' file not found

I am using a MacBook M1 Pro and just upgraded to macOS Ventura. When I run "go build" for cross-compiling, it keeps prompting me to install the command-line tools. After using "sudo xcode-select -switch /Library/Developer/CommandLineTools", it still shows an error message while compiling: "_cgo_export.c:3:10: fatal error: 'stdlib.h' file not found". Do you have any solutions?

Post not yet marked as solved Up vote post of Lemongm Down vote post of Lemongm
786 views