Xcode Cloud

Getting Started

Setting up Xcode Cloud for your SwiftStruct project.


Create an Xcode Cloud workflow

  1. Open your project in Xcode
  2. Go to ProductXcode CloudCreate Workflow
  3. Select your repository and branch
  4. Choose the scheme you want to build
  5. Configure build settings:
    • Select the iOS platform
    • Choose your destination (e.g., "Any iOS Device")
    • Select the configuration (Debug or Release)

Configure environment variables

Environment variables cannot be set up in Xcode. You need to add shared environment variables in App Store Connect for your app.

Sentry configuration

If you're using Sentry, add these environment variables:

  • SENTRY_AUTH_TOKEN: Your Sentry authentication token
  • SENTRY_ORG: Your Sentry organization slug
  • SENTRY_PROJECT: Your Sentry project slug

To add environment variables:

  1. Go to App Store Connect
  2. Navigate to your app
  3. Go to Xcode CloudEnvironment Variables
  4. Click Add Variable for each variable
  5. Enter the variable name and value
  6. Save the changes

Build configuration

  1. Ensure your Xcode project is properly configured:

    • All dependencies are resolved
    • Code signing is set up correctly
    • Build schemes are configured
  2. Test your workflow:

    • Trigger a build manually or push to your configured branch
    • Monitor the build logs in Xcode Cloud
    • Verify that all scripts run successfully
Previous
Getting started