【发布时间】:2020-12-01 03:37:02
【问题描述】:
在全新升级到 macOS Catalina 时,我需要为 Xcode 12.2 安装命令行开发人员工具。
获取时是否点击Install安装命令行开发者工具:
在终端窗口中输入swift 后,或者我安装
downloadingCommand_Line_Tools_for_Xcode_12.2.dmg来自
developer.apple.com
我仍然得到:
:~/ > swift
xcodebuild: error: SDK "macosx10.14" cannot be located.
swift: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk macosx10.14 -find swift 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'swift', requesting installation of command line developer tools.
建议?
【问题讨论】:
-
SO 发生了什么?诚然,这个问题缺乏深度。但是这里关于工具的问题不是很好吗?
标签: swift xcode macos-catalina