You can also restrict the workflow if you like. Here you can set some default settings for the workflow, like name and description. The first one selected is the general flow. In the left you’ll find a menu with the different steps for the workflow. The next view will show you the different steps that will be preformed. So lets select that “Edit workflow” button and edit the workflow. We’re going to edit the suggested workflow … after which it will show you a predefined selection of what to do. A modal view will popup which will let you select the team: Select the Create workflow option of your choice and start adding a workflow. In the picture below you’ll see both options.įor this article, we’re going to focus on adding a workflow which will archive and upload to AppStore Connect so the app will be available in TestFlight. If you don’t have any workflows yet, it’ll instruct you to create a workflow after analyzing your project. There are two ways of doing this, either by going via the menu Product > Xcode Cloud > Create Workflow, or via the Report Navigator ( CMD + 9) and select the cloud tab. Lets create the first workflow for the project. For instance, when a push is done towards a branch you might want the tests to be run but when a push is done towards the main branch, you want the tests to be run as well as the app to be uploaded to TestFlight Workflows are sets of actions for Xcode Cloud to perform when running your app. Now you should be ready to add your first workflow. Open AppStore Connect and go to your apps, select the (+) in the top left corner just next to “Apps” and add your app. When this is done, you can add the app to AppStore Connect too. Of course you can use automated signing in Xcode too, but I like to be explicit here. You will have to change this to something that suits you, and needs to be added to the developer console as well. In the example app mentioned above, I’ve setup the bundleId. Being an admin for the repository does help here. You will also have to be able to grand Xcode Cloud access to your GitHub (or GitLab, or bitbucket cloud) repository. The latest agreement needs to be accepted by the team agent as well, which is done in the developer console. In order to get going, you need to have the appropriate access in the Apple Developer Console, preferably admin or Team Agent. The project is located on GitHub and can be found here. It is a simple app with a Hello, world! view and a manager with some tests. For this article, I’ve setup a quick app which you can fork on GitHub.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |