Build, run & install

Choose the tools under the device, type text the keyboard can't, turn the device, use Preview full screen, and add a device on the Mac that runs your Team.

This page covers the Preview tools that take more than one tap. To open Preview, pick a device and learn the basic controls, see Run your app in Preview.

Choose the tools under the device (iPhone and iPad)

On iPhone, a row of tools stands under the device. On iPad you get the same row when AirBuild’s window is narrow. In a wide iPad window the controls are in the bar under the device instead, and there’s no row to choose.

The row starts with Home, App Switcher, Mute, Rotate, Draw and Apple Watch. On an Android phone, Back comes first.

  1. Tap ⋯ (More) at the left end of the bar at the bottom of the screen.
  2. Tap Customize Frequent Tools… at the end of the menu.
  3. In Frequent Tools, tap the red − to take a tool out of the row, or the green + under More Tools to put one in. Drag a tool to change its place in the row.
Tool What it does
Back Android’s Back. Shown on Android phones only.
Home Goes to the Home Screen.
App Switcher Opens the app switcher (Recents on Android).
Mute Turns the device’s sound in AirBuild off, or back on.
Rotate Turns the device.
Restart App Installs the project’s latest build again and opens it. Dimmed when the project has no app for this kind of device; tapping it then offers Ask an Agent to Build. See Make an Android or PocketJS version (beta).
Lock Presses the lock button (Power on Android).
Volume Up, Volume Down Presses the volume buttons.
Draw Lets you draw on the screen and ask about it. Tap it again to stop.
Apple Watch Opens the iPhone’s Apple Watch, or closes it.

Taking a tool out of the row doesn’t remove it: the ⋯ menu always has every control. AirBuild keeps your row on this device.

A tool the device doesn’t have is dimmed. While you’re drawing, every tool except Draw is dimmed.

Turn the device

Tap Rotate: in the row under the device or the ⋯ menu on iPhone, in the bar on iPad and on the Mac. If the device can’t turn, Rotate is dimmed or not there.

Type text on the device (Mac)

Click the device’s screen and type on your Mac’s keyboard. The keys go to the device; shortcuts with ⌘ stay with AirBuild.

Some text can’t be typed key by key, for example text you write with an input method such as Chinese or Japanese. To send it whole:

  1. Click the field on the device where the text should go.
  2. Click ⋯ in Preview’s bar and choose Type Text….
  3. Type or paste the text into “Type on device”.
  4. Press Return or click Send.

In full screen, use the Type Text button (a keyboard) in the controls under the device.

On iPhone and iPad, tap the field and use the device’s own keyboard.

Use Preview full screen

Tap ⋯ and choose Enter Full Screen. On iPad in a wide window, Enter Full Screen is in the bar; if the bar is short of room, it’s under the bar’s ⋯.

The device’s screen fills the display, and a round button with your app’s icon floats at the edge. Drag it to either side. Left alone, it slides half off the edge and fades; touch it to bring it back.

Tap the button to open the controls:

  • At the top, the device menu, to switch to another device, and Exit Full Screen.
  • Home, Restart App, App Switcher, Lock, Rotate and More, which has the rest of the device’s controls.

Tap outside the controls to close them. A tile the device doesn’t have is dimmed. Drawing isn’t available in full screen; a drawing in progress ends when you enter it.

Add a device (Mac)

When your Team runs on this Mac (a local Team), you can add another iPhone, iPad or Apple Watch to Preview. The devices come from Xcode on this Mac. Add Preview… is only on the Mac that runs the Team; you don’t see it in a cloud Team or on another device. See Choose where your Agents run.

  1. Click the device name over the device to open the device menu.
  2. Choose Add Preview… at the bottom of the menu.
  3. If Xcode on this Mac has a watchOS Simulator runtime, choose iPhone & iPad or Apple Watch.
  4. Choose the iOS Version (for a watch, the watchOS Version). The newest is chosen for you.
  5. Choose the Device Model. The list holds the models that version runs.
  6. Click Add.

Preview switches to the new device once it’s made. The device is named after its model.

Android devices can’t be added here: a local Team has no Android devices.

Questions

What you see What to do
“No iOS Simulator Runtime Installed” Open Xcode ▸ Settings ▸ Components on this Mac and install an iOS Simulator runtime, then try again.
“This model is not available for that iOS version.” Choose another model, or another version.
“This Mac already has the maximum number of AirBuild previews. Delete one in Preview first.” You can’t add more devices. The app doesn’t say how to delete one: Preview in AirBuild has no command for it.
“That preview is no longer on this Mac.” The device was removed. Open the device menu again.
“Update AirBuild on the host Mac to manage its previews.” Update AirBuild on the Mac that runs the Team.
I don't see the row of tools under the device.
On iPad, make AirBuild’s window narrower, or use the bar under the device. If you took every tool out of the row, the row is gone; add tools back with Customize Frequent Tools….
I don't see Add Preview….
It’s only on a Mac, in a Team that runs on that Mac. Open Preview on the Mac that runs the Team.