Build - Sample Swift (iOS) App and Tutorials
Important
Visual Studio App Center is scheduled for retirement on March 31, 2025. While you can continue to use Visual Studio App Center until it is fully retired, there are several recommended alternatives that you may consider migrating to.
In this tutorial, you'll learn to build a sample Swift app in App Center.
First, follow the getting started tutorial to set up the sample app.
Prerequisites
- GitHub account
- Optional: Provisioning Profile and Certificate. Go to the Apple Developer Documentation to learn about creating an App ID to codesign the sample iOS app with.
Set up the repository
Go to the Build service in App Center.
Choose GitHub as the service to Build with.
Sign in to GitHub, and click Authorize AppCenter.
Choose sampleapp-ios-swift.
Configure the build
Choose the main branch.
Click Configure build. The Build configuration panel will show up.
If the code is signed, turn Sign build on. Upload your Provisioning Profile and Certificate, which can be found in the Apple Developer Center. This lets you distribute the app later.
If your build fails because of a codesigning error: double check that all your changes have been pushed to the remote repository.
Click Save at the bottom of the page, and the build will begin.
The build can take a couple minutes, but you can click on it to view real-time output logs. After, if the build is successful, you can download the build, symbols, or logs by clicking Download.
Every time you push code to a configured branch, a build will automatically begin. This helps you continuously deliver apps by making sure the latest changes to your app can build.
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 skal vi fase ut GitHub-problemer som tilbakemeldingsmekanisme for innhold og erstatte det med et nytt tilbakemeldingssystem. Hvis du vil ha mer informasjon, kan du seSend inn og vis tilbakemelding for