---
title: Building Swift packages and Swift Playgrounds app projects with Xcode Cloud
framework: xcode
role: article
role_heading: Article
path: xcode/building-swift-packages-or-swift-playground-app-projects-with-xcode-cloud
---

# Building Swift packages and Swift Playgrounds app projects with Xcode Cloud

Add your Swift package or Swift Playgrounds app project to an Xcode project to build it in Xcode Cloud.

## Overview

Overview Xcode Cloud comes with support for the Swift Package Manager, and using Swift package dependencies in your app project requires little to no configuration. However, Xcode Cloud can’t build standalone Swift packages. To build your Swift package with Xcode Cloud: Create an app project or workspace in Xcode. Add your Swift package as a local package as described in Organizing your code with local packages. Commit your Package.resolved file. Create your first workflow as described in Configuring your first Xcode Cloud workflow. When Xcode Cloud starts a build, it builds your Swift package as part of the app project. Similarly, Xcode Cloud can’t build standalone apps you create with Swift Playgrounds. To build an app you created with Swift Playgrounds, save the Swift Playground app project to your Mac, add it to an Xcode project as described above, then configure your first workflow for the Xcode project. note: To learn more about building projects with Xcode Cloud that require Swift package dependencies, see Use Swift package dependencies and Git submodules.

## See Also

### Setup and maintenance

- [Making dependencies available to Xcode Cloud](xcode/making-dependencies-available-to-xcode-cloud.md)
- [Configuring Xcode Cloud for your team](xcode/configuring-xcode-cloud-for-your-team.md)
- [Sharing macOS and Xcode versions across Xcode Cloud workflows](xcode/sharing-custom-aliases-across-xcode-cloud-workflows.md)
- [Sharing environment variables across Xcode Cloud workflows](xcode/sharing-environment-variables-across-xcode-cloud-workflows.md)
- [Setting the next build number for Xcode Cloud builds](xcode/setting-the-next-build-number-for-xcode-cloud-builds.md)
- [Including notes for testers with a beta release of your app](xcode/including-notes-for-testers-with-a-beta-release-of-your-app.md)
- [Removing your project from Xcode Cloud](xcode/removing-your-project-from-xcode-cloud.md)
- [Changing the bundle identifier](xcode/changing-the-bundle-identifier.md)
