# App Package (iPhone build)

> The iPhone page that follows a package build you started from App Packages: its four steps, what went wrong if it failed, and the packages kept on this iPhone.

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

> [!NOTE]
> iPhone only. On iPad and Mac the same build shows in the [App Package](https://air.build/docs/screens/home/app-package/) sheet. Not in the App Store version of AirBuild.

This page follows a package build you started on this iPhone from [App Packages](https://air.build/docs/screens/app-packages/packages-tab/). It's titled **App Package** and shows the build's steps while it runs, what went wrong if it fails, and afterwards the packages kept on this iPhone, each with its files to share.

## Open it

- In **App Packages**, tap **Build New Package**. The row turns into your build, with its step and the time so far. Tap that row to open this page.
- From [Install on Device](https://air.build/docs/screens/home/install-on-device/) opened by **Add to Device** › **Sign with Developer Account**, tap **Download App Package**: when that sheet closes, this page opens. If no build is running, it opens on **Build Package**; tap it to start one.

Neither way starts a second build while one is running. Going back to the list doesn't stop the build.

## What's on it

It holds the same parts as the [App Package](https://air.build/docs/screens/home/app-package/#while-it-builds) sheet, top to bottom:

| Item | What it shows or does | When it shows |
| --- | --- | --- |
| **Build Package** | Starts a build. Reads **Build New Package** once this iPhone has packages. Under it: "This device keeps the latest three packages." | Before a build starts on this page. |
| **Build Steps** | **Preparing Build**, **Building App**, **Downloading Package**, **Saving Package**. Each has a ring that turns while the step runs, fills while it can count and becomes a check when done; the running step shows its percentage or how long it has taken. Steps not yet started are in secondary text. | While the build runs, and after it ends. |
| "The build keeps going if you close this page. The package appears here when it’s ready." | Under the steps. | While the build runs. |
| Packages | One section per package kept on this iPhone, newest first. Its header is the app's name and when it was made, plus **Imported** for an `.ipa` you brought in. Rows: **IPA** and, when there is one, **Xcode Archive**, each with its size and **Share…**, which opens the share sheet (Save to Files, AirDrop, other apps). While they load, placeholder rows stand in. | When no build is running. |

When the build succeeds, every step shows a check and the packages come back with the new one first. When it fails, the steps before the failure show a check, the failed one an exclamation mark, and the message shows under them (see [Messages](https://air.build/docs/screens/app-packages/package-build/#messages)).

What's different on iPhone:

- It's a page with **Back**, not a sheet.
- **Ask Agents to Fix** posts the error in the project's chat and switches to the chat (see [Messages](https://air.build/docs/screens/app-packages/package-build/#messages)).
- When the build succeeds and the App Packages list is on screen, the new package's [App Package](https://air.build/docs/screens/app-packages/package-details/) page opens by itself.

## Messages

| Message | What it means | What to do |
| --- | --- | --- |
| **The package couldn’t be built.**, with the build's error | The project didn't compile for iPhone. | Tap **Ask Agents to Fix**: it posts "The app package couldn’t be built: “_error_”. Please fix the project so it builds for iPhone, then build the package again." in the project's chat as your message and takes you there. Or tap **Try Again**. |
| "The build didn’t finish. Try again." | The build stopped. | Tap **Try Again**. |
| "The workspace stopped responding. Try again." | AirBuild lost track of the build. | Tap **Try Again**. |
| "This workspace’s environment needs an update before it can build a package. Try again after it updates." | The place the project runs needs a newer AirBuild. | Try again after it updates. |
| "This package was built on the host Mac. Open AirBuild on that Mac to save it." | In a local Team, the package stays on the Mac that runs the Team. | Open AirBuild on that Mac. |
| Another reason | The build couldn't start or be followed; the reason is shown. | Tap **Try Again**. |

Every failure shows **Try Again**, which starts a new build; **Ask Agents to Fix** is only there for **The package couldn’t be built.**

The failed step's ring turns into an exclamation mark. **Ask Agents to Fix** is dimmed when there's no chat to post to.

Step by step: [Build and download an app package](https://air.build/docs/build/app-packages/)
