MacOS系统的版本号,对应Darwin内核的版本号,以及与之对应的XCode Command Lines (xcode-select)的推荐版本号,一直比较凌乱,特此整理了一下,方便大家查阅。
| Darwin 内核版本 (小版本) | 对应的 macOS 系统版本 | 推荐下载的 Command Line Tools 版本 |
|---|---|---|
| Darwin 25.3.0 | macOS Tahoe 26.3 | Command Line Tools for Xcode 26.3 |
| Darwin 25.2.0 | macOS Tahoe 26.2 | Command Line Tools for Xcode 26.3 |
| Darwin 25.1.0 | macOS Tahoe 26.1.x | Command Line Tools for Xcode 16.4 |
| Darwin 24.6.0+ | macOS Sequoia 15.6 及以上 | Command Line Tools for Xcode 26.3 |
| Darwin 24.3.0 - 24.5.0 | macOS Sequoia 15.3 - 15.5 | Command Line Tools for Xcode 16.4 |
| Darwin 24.2.0 | macOS Sequoia 15.2 | Command Line Tools for Xcode 16.3 |
| Darwin 24.0.0 - 24.1.0 | macOS Sequoia 15.0 - 15.1 | Command Line Tools for Xcode 16.2 |
| Darwin 23.5.0 - 23.6.0 | macOS Sonoma 14.5 - 14.7 | Command Line Tools for Xcode 16.2 |
| Darwin 23.0.0 - 23.4.0 | macOS Sonoma 14.0 - 14.4 | Command Line Tools for Xcode 15.3 |
| Darwin 22.5.0 - 22.6.0 | macOS Ventura 13.5 - 13.6 | Command Line Tools for Xcode 15.1 |
| Darwin 22.0.0 - 22.4.0 | macOS Ventura 13.0 - 13.4 | Command Line Tools for Xcode 14.3.1 |
| Darwin 21.5.0 - 21.6.0 | macOS Monterey 12.5 - 12.6 | Command Line Tools for Xcode 14.2 |
MacOS系统对用户发布的版本号25年之后就不再使用14, 15这样顺序的版本号,改为对外发布年份的26作为版本号,所以看起来会有一个从15到26的大跳跃。
而XCode对应支持系统的版本号就更加凌乱一些,特别整理了各个系统版本对应的推荐Xcode的版本编号,原文大家可以查阅Apple的官方链接:
developer.apple.com/support/xco…
祝安!