Xcode Cloud
Getting Started
Setting up Xcode Cloud for your SwiftStruct project.
Create an Xcode Cloud workflow
- Open your project in Xcode
- Go to Product → Xcode Cloud → Create Workflow
- Select your repository and branch
- Choose the scheme you want to build
- 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:
- Go to App Store Connect
- Navigate to your app
- Go to Xcode Cloud → Environment Variables
- Click Add Variable for each variable
- Enter the variable name and value
- Save the changes
Build configuration
Ensure your Xcode project is properly configured:
- All dependencies are resolved
- Code signing is set up correctly
- Build schemes are configured
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