Some friends cannot install Apple developer tools command line tools,When installing, it will prompt "The software cannot be installed.,Because it is currently unavailable from the software update server",Let me teach you how to install it manually。
What are command line tools?
Command Line Tools is a small standalone package from Apple,Available for macOS,Expanded the terminal with additional functionality。including but not limited to:svn、git、make、GCC、clang、perl、size、strip、strings、libtool、cpp、what、codesign and many other commands found in Linux。
For ordinary users of macOS,Mainly use its signature function,It is to sign unsigned applications/applications with invalid signatures.。Because Apple’s apps are not signed or have invalid signatures, they will basically crash and fail to run.。
Generally speaking,All you need to do is open the terminal,然后在终端中执行 xcode-select --install 就会打开安装程序,Then follow the prompts to install it。However, some users will report an error if their network cannot connect to the Apple server.:不能安装该软件,因为当前无法从软件更新服务器获得。
解决
一旦提示:The software cannot be installed,Because it is currently unavailable from the software update server,You need to manually go to the Apple Developer Download Center to download the offline installation package of command line tools.。
- Open the Apple Developer Center:https://developer.apple.com(The server of Apple Developer Center is not in China,So it will be very slow to open,wait patiently)
- 点击顶部导航最右边的
Account,然后登录自己的 Apple ID - 打开开发者下载中心:https://developer.apple.com/download/more/
- 搜索 command line tools(在搜索框中输入完要按一下回车键)
- 选择适用于自己 macOS 系统的版本。
- 10.15.x 可以下载 Command Line Tools for Xcode 11.4 及以上版本
- 10.14.x 可以下载 Command Line Tools (macOS 10.14) for xxx,其中包含 macOS 10.14的。
- 10.13.x 可以下载 Command Line Tools (macOS 10.13) for xxx,其中包含 macOS 10.13的。
- xxxxx其它版同以此类推。
- 下载完成后,安装一下,安装完成后就可以使用啦。

Comments (1)