# Connect to a Mac

> The iPhone and iPad sheet that hands work to AirBuild on a Mac over a cable: telling AirBuild which device this is, or signing an app package with your Apple Account and installing it.

Source: https://air.build/docs/screens/add-to-device/connect-to-a-mac/

> [!NOTE]
> iPhone and iPad only. Not in the App Store version of AirBuild.

**Connect to a Mac** is the sheet an iPhone or iPad shows while AirBuild on a Mac, plugged into it with a cable, does what the device can't do itself. It's used for two things: telling AirBuild which device this is, or putting an app package on it: the Mac installs it as it is when it's already signed for this device, otherwise it signs it with your Apple Account first. The sheet shows one step at a time; the rest happens on the Mac.

## Open it

| From | What it's for |
| --- | --- |
| A package's **Add to Device** in [App Package](https://air.build/docs/screens/app-packages/package-details/#add-to-device), when your Team can't sign the package for this device, or when you choose **Connect to a Mac** | Installing that package. |
| **Connect to a Mac Instead** under **Register This Device**, in [Devices](https://air.build/docs/screens/add-to-device/devices-sheet/) or in [Settings › Devices](https://air.build/docs/settings/devices/) | Telling AirBuild which device this is. |
| **Install Using a Mac** at the end of [Install on Device](https://air.build/docs/screens/home/install-on-device/): "If the install page fails, you can use a Mac to replace the app already on this device." | Installing the build that sheet signed for this device. |

## Before you start

- A Mac with AirBuild open, signed in to the same AirBuild account as this device.
- A cable between the Mac and this iPhone or iPad.
- The same version of AirBuild on both.

## What's on it

| Item | What it shows | When |
| --- | --- | --- |
| Picture and instructions | A Mac joined to the device, over what to do now: "Connect this iPhone to a Mac with a cable, then open AirBuild on the Mac." (iPad: "this iPad"), "Tap Trust on this iPhone, then enter your passcode.", "Sign in with your Apple Account on _Mac_ to continue." or "Continue on _Mac_." | While there's something for you to do. |
| Package | The app's icon, name and version. | When installing a package. |
| Step | The current step, with a bar when it can count, otherwise a spinner. See [Steps](https://air.build/docs/screens/add-to-device/connect-to-a-mac/#steps). | Always. |
| **Cancel** | Top left. Closes the sheet and stops. | Until it's finished. |
| **Done** | Top right, in place of **Cancel**. Closes the sheet. | Once the app is installed. |
| **Try Again** | Top right (**Cancel** stays top left). Starts again from **Waiting for a Mac…**. | After a failure. |

Where a step names the Mac, it uses the name the Mac gives itself, or "Mac" until it has said one.

The screen stays on while the sheet is open, so the device doesn't lock mid-way.

## Steps

| Step | What's happening |
| --- | --- |
| **Waiting for a Mac…** | No Mac has answered yet. Footer: "Sign in to the same AirBuild account on the Mac." |
| **Downloading the App Package…** | This device downloads the package, with a bar, while it waits for a Mac, so it's ready to send. It stays on screen after the Mac answers if the download hasn't finished. |
| **Connected to _Mac_** | The Mac answered. If it waits on the device's **Trust** alert, the instructions say so. |
| **Sending to _Mac_…** | The package goes to the Mac. Skipped when the Mac already has it. |
| **Reading the App Package…**, **Preparing Your Apple Account…**, **Signing the App…**, **Installing…** | The Mac at work. Footer: "Keep the cable connected." |
| **Installed** | "_App_ is on _device_. Open it from the Home Screen." Footer, when known: "It works until _date_. Add it again to keep using the app." |

When the sheet was opened to tell AirBuild which device this is, it closes by itself as soon as the Mac has said, and the page that opened it goes on.

What happens on the Mac: [Install with a free Apple ID (Mac)](https://air.build/docs/build/install-with-free-apple-id/#from-your-iphone).

## Messages

Each shows in place of the step. Fix what it says, then tap **Try Again**.

| Message | What to do |
| --- | --- |
| "Couldn’t get ready for a Mac. Close AirBuild, open it again, then try again." | Quit and reopen AirBuild on this device. |
| "The Mac is signed in to a different AirBuild account. Sign in to the same account on both, then try again." | Sign in to the same account on the Mac. |
| "AirBuild on the Mac isn’t signed in. Sign in there, then try again." | Sign in on the Mac. |
| "AirBuild here and on the Mac are different versions. Update both, then try again." | Update AirBuild on both. |
| "The Mac is adding an app to another device. Try again when it finishes." | Wait for the Mac. |
| "This device didn’t trust the Mac. Reconnect the cable, tap Trust, then try again." | Reconnect and tap **Trust**. |
| "This package has expired. Build a new one to install it." | Build a new package in [App Packages](https://air.build/docs/screens/app-packages/packages-tab/). |
| "The package couldn’t be downloaded. Try again." | Check this device's connection. |
| "The app package didn’t reach the Mac. Check the cable and try again." | Check the cable. |
| "The Mac stopped before the app was added. Try again, and finish the steps on the Mac." | Answer the questions on the Mac this time. |
| "Couldn’t sign the app. Try again." | Try again. |
| "Developer Mode is off. Turn it on in Settings ▸ Privacy & Security." | Turn on Developer Mode on this device. |
| "This device is locked. Unlock it, then try again." | Unlock the device. |
| "Couldn’t add the app to this device. Check the cable and try again." | Check the cable. |
| "The Mac disconnected. Check the cable and try again." | Reconnect the cable. |
