如图所示,运行任何代码都是这样的报错,有大神遇到过这种问题吗?要怎么解决啊?
Mac上从Go1.18.2升级到1.20.1版本之后运行任何Go程序都报错# command-line-arguments flag provided but not defined: -G
staryjie · 2023-03-04 01:14:24 · 4155 次点击更多评论
你的macOS 版本是多少? Go 1.20 is the last release that will run on macOS 10.13 High Sierra or 10.14 Mojave. Go 1.21 will require macOS 10.15 Catalina or later.