Contents

Swift packages

Create reusable code, organize it in a lightweight way, and share it across Xcode projects and with other developers.

Overview

[Image]

Swift packages are reusable components of Swift, Objective-C, Objective-C++, C, or C++ code that developers can use in their projects. They bundle source files, binaries, and resources in a way that’s easy to use in your app’s project.

Xcode supports creating and publishing Swift packages, as well as adding, removing, and managing package dependencies. Its support for Swift packages is built on top of the open source Swift Package Manager project.

To learn more about the API you use in your package manifest, see Package. To learn more about the Swift Package Manager, see Swift.org and the open source Swift Package Manager repository.

Topics

Package dependencies

Package creation

Package distribution

Continuous integration

See Also

Code