Skip to content

Flutter iOS Deployment

This guide walks through setting up automatic iOS deployment from FlightStack to TestFlight and the App Store.

  • macOS build agent with Xcode
  • Apple Developer account ($99/year)
  • App registered in App Store Connect
  • App Store Connect API key
  1. Go to App Store Connect and create your app with the correct bundle ID.

    1. Go to Users and Access > Keys
    2. Click Generate API Key
    3. Name it “FlightStack” with App Manager role
    4. Download the .p8 file
    5. Note the Key ID and Issuer ID
  2. Add these secrets at repository or org level:

    • APP_STORE_CONNECT_KEY_ID: Your Key ID
    • APP_STORE_CONNECT_ISSUER_ID: Your Issuer ID
    • APP_STORE_CONNECT_API_KEY: Contents of .p8 file
  3. Create a pipeline with:

    • Build iOS job
    • Deploy iOS job
  4. Push code to trigger the pipeline. Your build will upload to TestFlight.

Ensure your Mac has:

  • Distribution certificate in Keychain
  • Provisioning profile installed
  • ExportOptions.plist configured

See Code Signing Guide for details.