Getting started with Xcode Cloud
Use Xcode Cloud to build and test your app in the cloud during development.
Overview
Xcode Cloud is a continuous integration and delivery (CI/CD) system built into Xcode to create apps and frameworks for Apple platforms.
Xcode Cloud builds and tests your app in the cloud in parallel across multiple devices and operating system versions as you write code and iterate quickly on new features during development, and later during distribution. Xcode Cloud helps catch regressions, bugs, and performance issues as you commit your changes.
To add your project to Xcode Cloud, you:
Select your app or framework.
Connect your remote repository to Xcode Cloud.
Start your first build.
View the status in the Report navigator.
After adding your project to Xcode Cloud, you can customize your configuration as needed for your specific development and distribution needs. For more information, see Setting up your project to use Xcode Cloud and Configuring your first Xcode Cloud workflow.
Later, to start collecting feedback from people on your beta builds, see Distributing your Xcode Cloud builds through TestFlight.
Before you begin
Before you start using Xcode Cloud, you need to:
Join the Apple Developer Program.
Add your account to Xcode in Apple Accounts settings.
Assign your project to a team to create your provisioning profile.
Have admin access to a remote source code repository.
Push your latest project changes to the remote repository.
For information on the Apple Developer Program, see Become a member.
Configure Xcode Cloud for your project
To use Xcode Cloud with your project:
Open your project in Xcode.
In the Report navigator, click the Cloud tab.
Click the Get Started button that appears below.
[Image]
Select a product in your project
In the Select Product sheet that appears, find your app or framework:
Select your app or framework from the list of products that Xcode detects.
If necessary, select the team for the app or framework.
Click Next.
[Image]
Connect your source code repository
In the Connect Source Code Repository sheet, click Connect next to your repository to grant Xcode Cloud access.
In the browser window that appears, sign in to your App Store Connect account if necessary.
Follow the instructions that appear to authorize Xcode Cloud access to your remote repository.
Click Continue in Xcode when you’re done.
In Xcode, click Next to add your project’s remote repository to Xcode Cloud.
Review the workflow and start your first build
In the Setup Complete sheet, Xcode shows you a default workflow that:
Starts a build on every change to your
mainbranch.Uses the latest macOS and Xcode versions.
Archives your app or framework.
[Image]
Use this basic workflow at first and customize it later. To edit the workflow, click Details in the Workflow row under Start First Build and make your changes in the sheet that appears. For more information on choosing start conditions, see Configuring start conditions.
To begin using Xcode Cloud, click Start First Build.
View the progress of your build
In the Report navigator, you can watch the build run. In the Cloud pane, expand the product and click the workflow. Xcode shows the workflow details on the right.
[Image]
If you encounter build issues, see Resolving common configuration and build issues.
Build another target in the same workspace
In the Cloud pane of the Report navigator, choose Create Workflow from the More pop-up menu in the lower-left corner of the navigator (Integrate > Create Workflow). In the Select Product sheet, choose the target and click Next. In the Setup Complete sheet, choose the target branch from the Branch pop-up menu and click Start First Build. Xcode adds a workflow to build the target to the Cloud pane.