Skip to content

YamamotoDesu/Getting-Started-with-Xcode-Cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with Xcode Cloud

https://www.kodeco.com/36548823-getting-started-with-xcode-cloud

Creating Your First Workflow

Change the app’s Product Name to a unique name

スクリーンショット_2023_01_28_17_07

Double-click the Debug test host value. Then, change the two references to Coffee to your new product name.

WiFi_と_Clock_と_Item-0

Next, open CoffeeViewModelTests.swift and change @testable import Coffee to your new name. Your new import will follow this format:

import XCTest
@testable import YamamotoCoffee

The Report Navigator contains two tabs: Local and Cloud. Local displays all builds your computer runs locally. Cloud contains all builds Xcode Cloud runs in the cloud. スクリーンショット_2023_01_28_17_22

In the Cloud tab, click the Create Workflow button to create your first workflow. スクリーンショット_2023_01_28_17_24

Xcode Cloud works with apps and frameworks. Select your product and click Next. WiFi_と_Clock_と_Item-0

Xcode allows you to review the workflow before continuing. For now, leave all the settings as the defaults and click Next. Xcode Cloud contacts GitHub to check permissions. スクリーンショット_2023_01_28_17_28

Back in Xcode, the grant access button is no longer available, and you’ll see another green check mark. スクリーンショット 2023-01-28 17 33 57

Xcode Cloud requires an app on App Store Connect with your app’s bundle identifier. Lucky for you, Xcode can create the app without even opening a browseXcode Cloud requires an app on App Store Connect with your app’s bundle identifier. Lucky for you, Xcode can create the app without even opening a browser. Click Complete to create your app. スクリーンショット_2023_01_28_17_35

Go ahead and click Start Build to kick off your very first Xcode Cloud build. Xcode Cloud immediately starts the build and switches to the build info in Xcode. Xcode Cloud also sends you an email when the build finishes. スクリーンショット_2023_01_28_17_37

Creating a Workflow to Run Tests

In the previous section, you set up a default workflow that built the project. You can now edit it to run tests instead. Right-click Default and select Edit Workflow.

スクリーンショット_2023_01_29_15_38

Navigate to General, and change the Name to Test.

スクリーンショット_2023_01_29_15_41

The workflow currently has an archive action in the Actions section. The test workflow only runs tests, so you can delete the archive action. Navigate to Archive – iOS and delete the action using the trash icon in the top right. スクリーンショット_2023_01_29_15_47

Next, add a test action using the + next to the Actions section title. スクリーンショット_2023_01_29_15_49

The last section configures which devices the tests run on. Click the + to add iPads to your workflow. スクリーンショット_2023_01_29_15_52

Testing the Test Workflow

Manually run the workflow. スクリーンショット_2023_01_29_15_55

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages