當按照macOS 的 TinyGo 快速安裝指南進行操作時,我遇到了以下錯誤:Error: The contents of the SDKs in your Command Line Tools (CLT) installation do not match the SDK folder names.% brew install tinygo==> Installing tinygo from tinygo-org/toolsError: The contents of the SDKs in your Command Line Tools (CLT) installation do not match the SDK folder names.A clean reinstall of Command Line Tools (CLT) should fix this.完整的安裝說明只是兩個命令:% brew tap tinygo-org/tools% brew install tinygoCLT 當前安裝在/Library/Developer/CommandLineTools如下所示xcode-select --print-path:% xcode-select --print-path/Library/Developer/CommandLineToolspkgutil顯示我有最新的安裝:% pkgutil --pkg-info=com.apple.pkg.CLTools_Executablespackage-id: com.apple.pkg.CLTools_Executablesversion: 13.4.0.0.1.1651278267volume: /location: /install-time: 1654474872groups: com.apple.FindSystemFiles.pkg-group 重新安裝命令行工具導致路徑相同并在本文“如何在 Mac OS X 中安裝命令行工具(無 Xcode) ”中得到確認。TinyGo 想要將命令行工具安裝在哪里,如何安裝在那里?
1 回答

揚帆大魚
TA貢獻1799條經驗 獲得超9個贊
TinyGo 的 macOS 安裝程序需要在完全安裝 Xcode 時使用的備用位置安裝命令行工具(不僅僅是命令行工具)/Applications/Xcode.app/Contents/Developer
:.
安裝 Xcode(比 CLT 大得多的包)后,xcode-select
將顯示啟用 TinyGo 的備用位置:
% xcode-select --print-path /Applications/Xcode.app/Contents/Developer
- 1 回答
- 0 關注
- 380 瀏覽
添加回答
舉報
0/150
提交
取消