# Build and download an app package

> Build your project's iPhone and iPad app as an .ipa file, save it or install it, and see how long packages are kept and how many credits each one used.

Source: https://air.build/docs/build/app-packages/

> [!NOTE]
> App Packages is in the TestFlight and direct-download builds of AirBuild. The App Store build doesn't have App Packages, **Build New Package** or **Install**.

An app package is one build of your project's iPhone and iPad app: an `.ipa` file you can keep, send or install. **App Packages** lists every package the project has built, including the ones you build there, the test builds made when someone installs on a device, and the signed builds your Agents make for the App Store. For each one it shows who built it, how long it took and how many credits it used.

## Open App Packages

**iPhone**

In the project's chat, tap the tabs button (four squares) in the top-right corner and tap **App Packages**. On an iPhone or iPad you've registered with your account, the project's profile also has a small **Install on This iPhone** link (**Install on This iPad** on iPad) that opens App Packages.

**Mac**

Select the project in the sidebar and choose **View › Go To › App Packages**. With no project selected, the page says "Select a project in the sidebar to see its app packages."

App Packages is in the **Build** group of the project's tabs, after **Preview**.

## Build a new package

**iPhone**

1. Open **App Packages**.
2. Tap **Build New Package**, the first row of the page. The build starts, and that row turns into the build: its current step and the time so far. Tap the row to see all the build steps.

On iPad, **Build New Package** is in the bar under the page and opens the **App Package** sheet instead, as on the Mac.

**Mac**

1. Open **App Packages**.
2. Click **Build New Package** in the bar under the page. The **App Package** sheet opens with the build under way.

You can also choose **Project › Install › Build New Package**. It opens the same sheet.

Under **Build Steps**, the build goes through **Preparing Build**, **Building App**, **Downloading Package** and **Saving Package**. Each step says **Not Started**, **In Progress**, **Completed** or **Failed**. You don't have to wait: "The build keeps going if you close this page. The package appears here when it’s ready." While it runs, App Packages lists it at the top with the step and the time so far, for example "Building 2 min, 14 sec elapsed".

A package from **Build New Package** isn't signed for any device or Apple team. Whoever installs it signs it then. You get two files:

| File | What it is |
| --- | --- |
| **IPA** | The app, as an unsigned `.ipa`. |
| **Xcode Archive** | The Xcode archive the `.ipa` came out of. |

When the build is done, each file is listed with its size. On the Mac, click **Save to Downloads**, then **Show in Finder** to find it. On iPhone and iPad, tap **Share…** to save it to Files, AirDrop it or send it to another app. The sheet keeps the newest packages on the device you built them on: "This device keeps the latest three packages." An `.ipa` you picked from your own disk is marked **Imported**.

If the app doesn't compile, the sheet says "The package couldn’t be built." with the error. Tap **Try Again**, or tap **Ask Agents to Fix**: it posts the error in the project's chat, as your message, asking your Agents to fix the project so it builds.

## Read the list

Builds under way come first, then packages, newest first. Each row shows when the package was made, its size and who built it, for example "Today at 14:02 86.1 MB Built by _name_", and its state:

| State | Meaning |
| --- | --- |
| **Ready to Install** | Built, and its files are still here. |
| **Cancelled** | Someone stopped the build. |
| **Failed** | The build didn't finish. |
| **Expired** | It was built, but its files are gone. Build a new one to install it. |

A package built on a local Team's Mac stays on that Mac. On your other devices it's listed, but you can't save or install it from there.

Tap or click a row to open the package's page. At the top it shows the app's icon, name, version and bundle ID. Under it:

| Row | What it says |
| --- | --- |
| **Status** | The state from the list. |
| **Signing** | **Unsigned**, **Development** _Apple team_ (signed for that team's registered devices) or **App Store** _Apple team_. |
| **Built** | When it was made. |
| **Built By** | Who started it. |
| **Size** | The size of the `.ipa`. |
| **Duration** | How long the build took. |
| **Credits** | What the build used. See [How long packages are kept, and what they cost](https://air.build/docs/build/app-packages/#how-long-packages-are-kept-and-what-they-cost). |
| **Kept Until** | The day its files are deleted, or **Expired**. |

## Save the .ipa

**iPhone**

On the package's page, tap **Download .ipa**. On iPhone it's the button in the top-right corner, and a ring fills while it downloads. On iPad it's a row on the page, which shows **Downloading** with a percentage. Then it becomes **Share .ipa…**. Tap that to save the file to Files or send it.

**Mac**

On the package's page, click **Save .ipa to Downloads**. When it's saved, click **Show in Finder**. You can also right-click a package in the list and choose **Save .ipa to Downloads**.

## Install a package

**iPhone**

On iPhone, open the package and tap **Add to Device**. AirBuild signs it for this iPhone if your Team can, or asks you to connect the iPhone to a Mac. See [Install your app on your iPhone](https://air.build/docs/build/install-on-your-iphone/#from-app-packages). iPad has the same **Add to Device** button, and a package your Team can't sign goes through a Mac the same way: the app asks you to connect the iPad to a Mac.

**Mac**

Open the package and click **Install on Device…**, or right-click it in the list and choose **Install on Device…**. The **Install on Device** sheet downloads the package and installs it over a cable. See [Install from your Mac](https://air.build/docs/build/install-on-your-iphone/#install-from-your-mac) and [Install with a free Apple ID (Mac)](https://air.build/docs/build/install-with-free-apple-id/).

## Cancel a build or delete a package

- **Cancel Build**: swipe left on a build under way (on the Mac, right-click it), or open it and tap **Cancel Build**. It says **Cancelling…** until the build stops.
- To delete a package, swipe left on it (on the Mac, right-click it) and choose **Delete Package…**, or open it and tap **Delete Package**. AirBuild asks first, under **Delete Package?**: "The package’s files are deleted now. It stays in this list as a record." Confirm with **Delete Package**.

Only the Team's owner or the person who built a package can delete it.

## How long packages are kept, and what they cost

The note under the list says how long packages are kept, for example "Each project keeps its latest 15 packages, each for 7 days." A package that's past its day, or pushed out by newer ones, shows **Expired**. Its row stays in the list as a record.

**Credits** on a package's page is what its build used, for example "64 credits". While the price is being worked out it says **Calculating credits**, and while a build is still running you may see an estimate. A cancelled build is charged for the time it ran, at half price, and says so: "(half price when cancelled)". A build inside your plan's **Cloud Builds and Previews** allowance still shows its credits: that's what it took from the allowance. Builds on a local Team's Mac use no credits and show none.

To see how much of your plan you've used, see [Understand your usage](https://air.build/docs/team/understand-usage/).

## Questions

| What you see | What to do |
| --- | --- |
| "This package has expired. Build a new one to install it." | Its files are gone. Build a new package. |
| "This package was built on the host Mac. Open AirBuild on that Mac to save it." | The package was built in a local Team. Save it from AirBuild on the Mac that runs that Team. |
| "This workspace’s environment needs an update before it can build a package. Try again after it updates." | Wait for the Team's environment to update, then build again. |
| "The workspace stopped responding. Try again." or "The build didn’t finish. Try again." | Build again. If it keeps failing, ask your Agents to check the project. |
| "The package couldn’t be downloaded. Try again." or "The file couldn’t be saved to Downloads. Try again." | Try again. |
| "The build couldn’t be cancelled. Try again." or "The package couldn’t be deleted. Try again." | Try again. |
| "Only the owner of this workspace or the person who built this package can delete it." | Ask the Team's owner or the person who built it. |
| **Unable to Load App Packages** | Tap **Try Again**. |
| **Not Available Yet**: "App packages will be listed here after an AirBuild update. You can still build a package now." | You can still use **Build New Package**. |

**I don't see App Packages.**

You may have the App Store build of AirBuild, which doesn't have it. Install the TestFlight or direct-download build. See [Get AirBuild and sign in](https://air.build/docs/get-started/get-airbuild/).

**Why is my package unsigned?**

**Build New Package** always makes an unsigned package, so anyone can sign it when they install it. Test builds made with **Install** are signed for your devices, and your Agents' App Store builds are signed for the App Store.

**Can I install an unsigned package?**

Yes, from a Mac. Open it in AirBuild for Mac and click **Install on Device…**, then sign with your Apple team or a free Apple ID. See [Install with a free Apple ID (Mac)](https://air.build/docs/build/install-with-free-apple-id/).
