Flutter iOS Deployment
Flutter iOS Deployment
Section titled “Flutter iOS Deployment”This guide walks through setting up automatic iOS deployment from FlightStack to TestFlight and the App Store.
Prerequisites
Section titled “Prerequisites”- macOS build agent with Xcode
- Apple Developer account ($99/year)
- App registered in App Store Connect
- App Store Connect API key
Setup Steps
Section titled “Setup Steps”-
Create App in App Store Connect
Section titled “Create App in App Store Connect”Go to App Store Connect and create your app with the correct bundle ID.
-
Generate API Key
Section titled “Generate API Key”- Go to Users and Access > Keys
- Click Generate API Key
- Name it “FlightStack” with App Manager role
- Download the .p8 file
- Note the Key ID and Issuer ID
-
Add Secrets in FlightStack
Section titled “Add Secrets in FlightStack”Add these secrets at repository or org level:
APP_STORE_CONNECT_KEY_ID: Your Key IDAPP_STORE_CONNECT_ISSUER_ID: Your Issuer IDAPP_STORE_CONNECT_API_KEY: Contents of .p8 file
-
Configure Pipeline
Section titled “Configure Pipeline”Create a pipeline with:
- Build iOS job
- Deploy iOS job
-
Push and Deploy
Section titled “Push and Deploy”Push code to trigger the pipeline. Your build will upload to TestFlight.
Code Signing
Section titled “Code Signing”Ensure your Mac has:
- Distribution certificate in Keychain
- Provisioning profile installed
- ExportOptions.plist configured
See Code Signing Guide for details.