gpt4 book ai didi

macos - 前往游览无法在Mac上构建

转载 作者:行者123 更新时间:2023-12-01 22:24:44 24 4
gpt4 key购买 nike

我在Mac上安装了Go,没问题。我正在浏览(https://tour.golang.org/welcome/3),其中涉及本地软件包,下载的软件包和自动测试的示例,因此可以很好地证明我的安装正确。然后,我看到可以选择安装游览以供离线使用。因此,按照指示,我运行“go get golang.org/x/tour”,并从以下内容开始出现大量错误:

# runtime/cgo
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd, file was built for unsupported file format ( 0x2D 0x2D 0x2D 0x20 0x21 0x74 0x61 0x70 0x69 0x2D 0x74 0x62 0x64 0x2D 0x76 0x33 ) which is not the architecture being linked (x86_64): /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd

我在这里可能做错了什么?

最佳答案

从您提供的信息来看,我看不到您做错了什么。但这还不足以了解您为什么会遇到问题的信息。

由于正确遵循了说明,因此可能是程序中的错误,安装说明中的错误或环境中的异常错误。

我建议在golang.org/issue/new处以“x / tour:”为前缀提交问题,并对其提出的问题提供完整的答案,以便进行调查。

关于macos - 前往游览无法在Mac上构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60802486/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com