iOS App Store: Build and Upload Script

Did you know?

With this simple script, you can build and upload your iOS app to App Store Connect.

The best thing? You can run it from your local machine (no CI/CD needed!)

Read below for instructions on how to get it working. 🧵

iOS App Store: Build and Upload Script

The script uses the xcrun command line tool to upload the IPA to App Store Connect.

You’ll need to authenticate with one of these methods:

  • Username and Password
  • App Store Connect API Key (recommended)

This guide explains how to obtain an API key:


Once you have obtained your Key ID and Issuer ID, set them as environment variables in your system (I like to store mine in ~/.zshrc for convenience.)

Then, simply download the script from here and use it:


My latest course, Flutter in Production, covers the entire iOS app release process in detail—from joining the Apple Developer Program to submitting your app for review.

Here’s a free lesson to get started:

Happy coding!

Want More?

Invest in yourself with my high-quality Flutter courses.

Flutter Foundations Course

Flutter Foundations Course

Learn about State Management, App Architecture, Navigation, Testing, and much more by building a Flutter eCommerce app on iOS, Android, and web.

Flutter & Firebase Masterclass

Flutter & Firebase Masterclass

Learn about Firebase Auth, Cloud Firestore, Cloud Functions, Stripe payments, and much more by building a full-stack eCommerce app with Flutter & Firebase.

The Complete Dart Developer Guide

The Complete Dart Developer Guide

Learn Dart Programming in depth. Includes: basic to advanced topics, exercises, and projects. Last updated to Dart 2.15.

Flutter Animations Masterclass

Flutter Animations Masterclass

Master Flutter animations and build a completely custom habit tracking application.