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
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.resolvedfile.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.
See Also
Setup and maintenance
Making dependencies available to Xcode CloudConfiguring Xcode Cloud for your teamSharing macOS and Xcode versions across Xcode Cloud workflowsSharing environment variables across Xcode Cloud workflowsSetting the next build number for Xcode Cloud buildsIncluding notes for testers with a beta release of your appRemoving your project from Xcode CloudChanging the bundle identifier