> ## Documentation Index
> Fetch the complete documentation index at: https://docs.median.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload an iOS app to TestFlight

> Upload your iOS app to TestFlight from App Studio automatically, or manually with Xcode, and invite internal testers in App Store Connect.

The recommended way to upload your iOS app to TestFlight with Median is directly from **Median App Studio**.

With the App Store Connect API configured and **Upload to App Store Connect** set to **Automatic**, Median builds a signed distribution IPA in the cloud and uploads it directly to App Store Connect. Before uploading, your **App Store Connect app record must already exist** with the same Bundle ID configured in App Studio. After Apple finishes processing the build, you can add it to TestFlight for internal or external testing.

You do not need a Mac, Xcode, or Apple Transporter for this standard workflow.

## Recommended workflow

1. Open your app in App Studio and go to **Build & Deploy**.

2. Click **Configure** in the iOS IPA section.

3. In **Apple Developer API Connection**, enter your **Issuer ID** and **Key ID**, and upload your **Private Key (.p8)** file.

4. In **Bundle ID & App Store Connect App**:
   * Register the **Bundle ID** for your app.
   * Create the **App Store Connect app record** in App Store Connect using that Bundle ID.
   * Verify the **App Store Connect app record** in App Studio.

5. In **Signing & Upload Settings**, select **Distribution Profile** and set **Upload to App Store Connect** to **Automatic**.

6. Build your iOS IPA in App Studio. If **Upload to App Store Connect** isn't set to **Automatic**, you can click **Upload** after the build is complete.

7. Wait for Apple to process the uploaded build in App Store Connect.

8. In App Store Connect, open **TestFlight**, resolve any required prompts, and add testers.

## Manual Xcode upload (optional)

Use this workflow only if you intentionally choose to build your iOS app locally from downloaded source in Xcode.

Most Median self-publishing workflows do **not** require Xcode. For most developers, building in App Studio and uploading automatically to App Store Connect is the recommended approach.

### 1. Register app to App Store Connect

To upload your app for TestFlight, you will first need to register your app in your App Store Connect account by following the steps in the [official documentation ](https://developer.apple.com/help/app-store-connect/create-an-app-record/add-a-new-app). This includes registering your app name and [bundle ID](https://docs.median.co/docs/app-identifiers.md).

### 2. Open app in Xcode

See [Build iOS from source](https://docs.median.co/docs/build-ios-from-source.md) to download and open iOS source code in Xcode.

In Xcode, select YOUR\_APP from the left panel as seen in Figure 1:

![Xcode project navigator with the app project selected in the left panel](https://mintcdn.com/median-co/dZQPJ_0wlG7WNBTy/images/docs/05b22ad-Xcode_SelectApp.png?fit=max\&auto=format\&n=dZQPJ_0wlG7WNBTy\&q=85\&s=098d1f551d2a5a0fcfd836225d6ab023)

Figure 1: Xcode – Select your app

This will open another panel in the middle with various options. Select your target app in the "**TARGETS**" section and select "**Signing & Capabilities**". Now, choose your organization in the "**TEAM**" section and include your Bundle ID that you used to register your app in the previous section as shown in Figure 2:

![Xcode Signing & Capabilities tab with the app target, Team and Bundle Identifier set](https://mintcdn.com/median-co/yvThAkXSLqPa6nzP/images/docs/ead80d3-Xcode_SelectOrganization.png?fit=max\&auto=format\&n=yvThAkXSLqPa6nzP\&q=85\&s=dc9ec1bfbbe3a003810fe2f41bd0d21a)

Figure 2: Xcode – Add signing configuration

### 3. Archive your app

Now, select **Product > Archive** from the top to archive your app.

If there are no build errors, Xcode will open a new window with your newly archived app as seen in Figure 3.

![Xcode Organizer window listing the newly archived app](https://mintcdn.com/median-co/yvThAkXSLqPa6nzP/images/docs/e86d630-Xcode_ArchivedApp.png?fit=max\&auto=format\&n=yvThAkXSLqPa6nzP\&q=85\&s=990007eabfad709b38cc6416c89eb259)

Figure 3: Xcode – Archived app

### 4. Validate your app

As seen in Figure 3, Xcode provides an option named "**Validate App**" to conduct an initial, automated limited assessment of the app and offer feedback. If you're looking to verify your app's readiness for TestFlight or the App Store submission without immediately submitting it, select your archive and then click on "**Validate App**".

![Xcode Organizer with the archive selected and the Validate App button](https://mintcdn.com/median-co/dZQPJ_0wlG7WNBTy/images/docs/0587103-Xcode_ValidateApp.png?fit=max\&auto=format\&n=dZQPJ_0wlG7WNBTy\&q=85\&s=c650f2d36caf720cfef4f18f31c70d17)

Figure 4: Xcode – Validate app

![Xcode dialog confirming the app was validated successfully](https://mintcdn.com/median-co/7LCOHMhgIef7ewYE/images/docs/81b7852-Xcode_ValidatedApp.png?fit=max\&auto=format\&n=7LCOHMhgIef7ewYE\&q=85\&s=96509371d1f1f49e733538bebf8a0fd0)

Figure 5: Xcode – App validated

### 5. Distribute your app

When your app is successfully validated, you can proceed to distributing the app to TestFlight by selecting "**Distribute App**". Select "**TestFlight Internal Only**" to allow testing for internal testers of your organization as seen in Figure 6:

![Xcode distribution options with TestFlight Internal Only selected](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/8fdc71f-Xcode_DistributeApp.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=0e7a390be046857ff71d76541afb6411)

Figure 6: Xcode – App distribution method

![Xcode dialog confirming the app was uploaded to App Store Connect for TestFlight](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/bdd2b1f-Xcode_DistributedAppOnTestFlight.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=d93c1e1cc4c5b602dd6de8b3ef925c60)

Figure 7: Xcode – App upload complete

### 6. App Store Connect

Visit [App Store Connect's Apps page ](https://appstoreconnect.apple.com/apps) and open your registered app from the list. Select "**TestFlight**" from the top bar to see your newly uploaded TestFlight distribution as seen in Figure 8 below.

![App Store Connect TestFlight tab showing the uploaded build with Missing Compliance](https://mintcdn.com/median-co/dZQPJ_0wlG7WNBTy/images/docs/2edf532-AppStoreConnect_TestFlight.png?fit=max\&auto=format\&n=dZQPJ_0wlG7WNBTy\&q=85\&s=d2f3e825aaddc28f106578a3a8a12ecf)

Figure 8: App Store Connect – TestFlight build with Missing Compliance

If you are seeing "**Missing Compliance**" such as above, click "**Manage**", choose "**None of the algorithms mentioned above**" from the options and hit "**Save**" as seen in Figure 9 below:

![App Store Connect export compliance dialog with None of the algorithms mentioned above selected](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/aad6617-AppStoreConnect_ManageCompliance.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=fd84c511326b650c2efc6ffb553df206)

Figure 9: App Store Connect – Resolve Missing Compliance

Now, you'll see that your app is ready to be tested, as seen in Figure 10:

![App Store Connect TestFlight tab showing the build as Ready to Test](https://mintcdn.com/median-co/dZQPJ_0wlG7WNBTy/images/docs/332a967-AppStoreConnect_ReadyToTest.png?fit=max\&auto=format\&n=dZQPJ_0wlG7WNBTy\&q=85\&s=4a5716c1088d4116560c94e406c5d325)

Figure 10: App Store Connect – Build ready to test

### 7. Add internal testers

Now, if you don't already have an internal testers group, click the "**+**" icon beside the "**Internal Testing**" label (see Figure 10) to create a new Internal Testers group as seen below in Figure 11:

![App Store Connect dialog for creating a new Internal Testing group](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/a287926-AppStoreConnect_InternalTesters.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=641a79930a4c5cb19593126bfe165552)

Figure 11: App Store Connect – Create new internal testing group

Once the group is created, it will appear directly below the "**Internal Testers**" label as seen previously. Click the newly created group and you will see the following page with an option named "**Testers (0)**" to add the testers:

![New internal testing group page in App Store Connect with Testers (0)](https://mintcdn.com/median-co/yvThAkXSLqPa6nzP/images/docs/e37ace2-AppStoreConnect_AddInternalTesters.png?fit=max\&auto=format\&n=yvThAkXSLqPa6nzP\&q=85\&s=b4200535c359e2d0bf9fc777c85db48d)

Figure 12: App Store Connect – New internal testing group

Click the "**+**" icon beside the "**Testers (0)**" label and add testers from the list of users in your organization. Once added, you will see the list of invited testers as seen in Figure 13 below:

![Internal testing group in App Store Connect listing the invited testers](https://mintcdn.com/median-co/yvThAkXSLqPa6nzP/images/docs/f67178b-AppStoreConnect_TestersAdded.png?fit=max\&auto=format\&n=yvThAkXSLqPa6nzP\&q=85\&s=34a75c356106dda1f6a949ae409fb35f)

Figure 13: App Store Connect – Added testers

Each tester will receive an email invite that they can use to test the newly uploaded app on the **TestFlight** iOS app.

![TestFlight email invitation to test the app](https://mintcdn.com/median-co/TpSItjrYpkPK-i0N/images/docs/9acf8b9-TestFlightInvite.png?fit=max\&auto=format\&n=TpSItjrYpkPK-i0N\&q=85\&s=a0efc899a8c412b216959e33067932e4)

Figure 14: Email – TestFlight invite

## Frequently asked questions

> [accordion] Do TestFlight builds expire?
>
> Yes. All builds uploaded to TestFlight are active for 90 days before they
> expire. For test access after the 90 days you can upload a new build.


## Related topics

- [Upload iOS to Apple App Store](https://docs.median.co/docs/upload-ios-to-apple-app-store.md)
- [iOS build & deployment](https://docs.median.co/docs/ios-build-deployment.md)
- [Median App Studio](https://docs.median.co/docs/app-studio.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.