首页 / <p>苹果公司宣布 Swift 构建工具开源;Swift Playgrounds 轻微更名。</p>

<p>苹果公司宣布 Swift 构建工具开源;Swift Playgrounds 轻微更名。</p>

2025/2/3 19:54:56
苹果公司开源了Swift Build,该构建引擎用于Xcode和内部项目。此举旨在消除因使用两个不同构建系统而造成的混乱,并为所有Swift用户提供更好的构建体验。同时,Swift Playgrounds应用程序名称也从“Swift Playgrounds”更改为“Playground”。开源的Swift Build将为新的功能和改进奠定基础,并在所有平台和工具中解锁新的性能优化和面向开发人员的功能。
<p>苹果公司宣布 Swift 构建工具开源;Swift Playgrounds 轻微更名。</p>

Apple last weekend announced the open-sourcing of Swift Build. The build engine is used by Xcode and internal projects at the company.

Apple also made a minor name change to Swift Playgrounds, the app that helps people learn to code in Swift on iPad and Mac...

Apple Open-Sources Swift Build

The company announced the news on Saturday.

As Swift expands, investing in matching cross-platform build tools has value. These tools can provide a powerful, consistent, and flexible experience across the entire ecosystem.

As the foundation for a new chapter in Swift Build technology, Apple today open-sourced Swift Build, a powerful and scalable build engine that provides a set of build rules for building Swift projects. Swift Build is the engine used by Xcode, supporting millions of apps on the App Store as well as the internal build processes for Apple's own operating systems.

The company said this will eliminate confusion caused by having two different build systems and pave the way for new features.

Compared to the build engine in Xcode, the build engine in Swift Package Manager is relatively simple. Having two different build system approaches on Apple platforms also led to user confusion when behaviors were inconsistent across the two implementations. Contributing Xcode's build engine to the Swift project and developing it alongside the Swift compiler in an open-source environment provides the necessary tools to address these issues and deliver an exceptional build experience for all Swift users.

This lays the foundation for new features and improvements across all platforms and tools, and unlocks new performance optimizations and developer-facing capabilities.

Swift Build is now available on GitHub.

Swift Playground Becomes Swift Playground

John Gruber discovered that Apple also updated Swift Playground, changing it from plural to singular in the process.

One interesting change in Apple's latest update to the learning and exploring Swift language app: It's been renamed Playground, singular form, instead of Playgrounds, plural form. I wouldn't say this name change should cause too much attention, but I like the change. The app is "Playground," a place to play with Swift—not a factory for making "Playgrounds."

Image: Apple