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
Adding package dependencies to your appIdentifying binary dependenciesEditing a package dependency as a local package
Package creation
Creating a standalone Swift package with XcodeBundling resources with a Swift packageLocalizing package resourcesDistributing binary frameworks as Swift packagesDeveloping a Swift package in tandem with an appOrganizing your code with local packagesPackageDescription