Preview
The Preview tab: your project's latest build running on one of your Team's devices, the device menu, every device control, screenshots and drawings for your Agents, and every status line and message it shows.
Preview is the tab where your project’s latest build runs on one of your Team’s devices: an iPhone or iPad, the Apple Watch that goes with each iPhone, and, in beta, Android phones and PocketJS handhelds. The device’s name sits over it and opens the device menu; the device controls sit in the tab’s bar, and the screen itself takes your taps and clicks.
Step by step: Run your app in Preview
The devices are the Team’s, shared with everyone in it and with your Agents. Picking a device changes only what you are looking at, not what anyone else sees.
Open it
- In the project’s chat, tap ⋯ (More) in the toolbar, then Preview.
- Or tap the tabs button (four squares) and tap Preview.
- Or touch and hold the project in a list and choose Preview, or tap Preview on its Project profile.
On iPhone, Preview opens as a page over the chat, with the tab row at its foot (tap the tab’s name there to see every tab, see Tab overview). Tap ‹ to go back to the chat. On iPad, Preview opens as the Preview tab in the pane beside the chat.
- Open the project’s chat and choose Project › Preview in the menu bar.
- Or click ⋯ (More) in the chat’s toolbar and choose Preview.
- Or right-click the project in the sidebar and choose Preview.
- Or choose View › Go To › Preview, or open a New Tab and pick Preview.
- Or click Preview on the project’s Project profile.
Preview opens as the Preview tab in the Inspector beside the chat. ⌘W closes the tab; View › Hide Inspector (⌥⌘I) puts the pane away.
With Preview in New Windows turned on, Preview can also open in a window of its own; see Preview windows (Mac).
Preview opens at once and then installs the project’s latest build. An Agent’s DM can show a project’s Preview in its pane too; screenshots and drawings from there go to the project’s chat, which then comes to the front.
What’s on it
From top to bottom: the device menu, the device, and the controls. Before a device is up, the tab shows the outline of a phone and a status line under it (see Messages).
Device menu
The device’s name (for example iPhone 17 Pro, or PSP for a handheld) with a ⌄ opens the device menu. It sits over the device on iPad and Mac, and in the navigation bar on iPhone, beside Enter Full Screen. When the app can’t list the Team’s devices, the name shows without ⌄ and opens nothing.
| Row | What it does |
|---|---|
| A device, for example iPhone 17 Pro | Moves your view to that device. A check marks the one you’re on; Running follows the name of a device that is on. A device that is off starts when you pick it. Each row wears its device’s glyph. |
| “No iOS build yet” or “No Android build yet” under a name | The project has no app for that kind of device. The row can still be picked. |
| Shut Down device | One row per running device: turns it off. A watch’s row reads Shut Down iPhone’s Apple Watch. |
| PocketJS Beta | PSP, PS Vita, Nintendo 3DS: plays the project’s PocketJS build on that handheld. |
| Android Beta | The Team’s Android phones. A Team without Android phones has no Android Beta. |
| iOS, PocketJS Beta, Android Beta submenus | The kinds the project doesn’t build are folded into a submenu each, after a line. The kinds it builds stand open, in the order iOS, PocketJS Beta, Android Beta. |
| “Loading…” | The list is being read. A failure shows its reason in its place. |
| Row | What it does |
|---|---|
| Apple, Android Beta, PocketJS Beta | Headings, only when more than one group shows. Only the kinds the project builds are listed; the others are left out. |
| A device, for example iPhone 17 Pro | Moves your view to that device. A check marks the one you’re on. A device that is off starts when you pick it. |
| Apple Watch | One row at the end of the Apple group. Opens the iPhone’s Apple Watch beside it, or hides it when it shows (checked while it shows). |
| PSP, PS Vita, 3DS | Plays the project’s PocketJS build on that handheld. |
| Running › | Follows a device that is on. Point at the row (or press →) for Shut Down and Restart. |
| Starting, Shutting Down | A device on its way up or down. The row can’t be clicked until it settles. |
| In Another Window | Follows a device that a Preview window is showing (in a Preview window’s own menu, also the device the Inspector is showing). Choosing the row brings that window to the front instead of moving your view. See Preview windows (Mac). |
| Add Preview… | Adds another device to a Team that runs on this Mac. Shown only on the Mac that runs the Team. See Add Preview. |
| “Loading devices…”, “No devices available” | The list is being read, or there is nothing to list. A failure shows its reason instead. |
Use ↑ and ↓ to move, Return to choose, → and ← to open and close a running device’s submenu, and Esc to close the menu. A click outside closes it too.
The device
Click or tap the screen to use it like the real device. On a phone or iPad drawn with its frame, the buttons on the frame press too. When the iPhone’s Apple Watch is open, it slides in beside the iPhone and only one of the two shows at a time.
Controls
The controls show once the device is up. Which ones show depends on the device: an iPhone has Home, App Switcher, Lock, Action Button and the volume buttons; an iPad the same without Action Button; an Apple Watch its own case buttons (Digital Crown and Side Button, plus Action Button on Apple Watch Ultra); an Android phone Back, Home, Recents, Power and the volume buttons.
Navigation bar: ‹ (back to the chat), Enter Full Screen (see Full Screen) and the device menu. The install’s progress shows here too, under the bar’s title.
Under the device: the row of frequent tools. By default: Back (Android phones only), Home, App Switcher, Mute, Rotate, Draw and Apple Watch. A tool the device doesn’t have stands dimmed. Choose them in Frequent Tools.
Tab row at the foot: ⋯ (More) at its leading end holds every control:
| Item | What it does |
|---|---|
| Draw | Freezes the screen so you can draw on it and ask about it. See Screenshot and draw. |
| Home (on a watch, Digital Crown) | Presses the device’s Home. |
| Apple Watch | On an iPhone: shows or hides its Apple Watch beside it. Checked while it shows. |
| Posture | On a foldable device: Folded, Half Open, Unfolded, Laptop, Tent. The check marks the posture the device is in. |
| Enter Full Screen | Shows the device alone. See Full Screen. |
| Rotate | Turns the device a quarter turn clockwise. On iPhones and iPads; a foldable has its own Rotate. Not on Apple Watch or Android. |
| The device’s other buttons | For example App Switcher, Lock, Action Button; Recents and Power on Android. |
| Restart App | Installs the project’s latest build again and opens it. Under it, the app it acts on when the project has both an iOS and an Android app, or “No iOS build yet” / “No Android build yet” (then the row is dimmed and can’t be chosen). |
| Download APK | The project’s latest Android package, handed to the share sheet. Only when the project has an Android build. Reads Downloading APK… while it downloads. |
| Back | On an Android phone. |
| Passwords | Your Team’s saved logins. See Fill a password. |
| Device Color | The frame’s color: Burgundy, Glacier Blue, Silver (default) or Black. On iPhones and iPads. Kept on this device. |
| Sound | Volume Up, Volume Down (not on a watch), and the Device Sound switch (on by default) that plays or mutes the device’s sound in AirBuild. |
| Session Info | A switch (off by default) that shows technical details of the connection over the device’s foot. |
| Customize Frequent Tools… | Opens Frequent Tools. |
On iPad, beside a chat, the controls stand in the pane’s bar instead: Home, Restart App (a circular arrow), Rotate, Apple Watch, the device’s other buttons, Enter Full Screen and a foldable’s Posture, as many as fit, with the rest under its ⋯. Under the device, Draw freezes the screen and opens a message box beside it; sending puts your words in the chat with the drawing, or the screen as it is. The button turns into ✕ to stop. In a narrow iPad window, Preview works as on iPhone.
The controls stand in the Inspector’s bar, left to right:
| Control | What it does |
|---|---|
| Home (on a watch, Digital Crown) | Presses the device’s Home. |
| Screenshot | Puts a picture of the screen in the chat’s message box. Dimmed while you draw. |
| Draw, then Send Drawing | Freezes the screen so you can draw on it. Once something is drawn the button becomes a check, Send Drawing. See Screenshot and draw. |
| Rotate | Turns an iPhone or iPad a quarter turn clockwise. |
| Enter Full Screen | Shows the device alone, with the window full screen. See Full Screen. |
| Posture | On a foldable device. Its tooltip names the posture it’s in, for example “Posture: Unfolded”. |
| ⋯ | The rest; see below. |
| Reinstall App, wearing the app’s icon | Installs the project’s latest build again and opens it, even if the app is already open. Its tooltip reads Reinstall App (iOS) or (Android) when the project has both apps. Dimmed when the project has no app for this device; clicking it then offers to ask an Agent to build that app. Off when there is no project. |
The bar’s ⋯ holds Download APK (when the project has an Android build), the device’s other buttons, Type Text… (see Type Text), Passwords, a foldable’s Rotate, Device Color (iPhone and iPad), Sound and Session Info, as described in the iPhone tab.
The Mac has no row of frequent tools. To open the iPhone’s Apple Watch, use the Apple Watch row in the device menu.
Preview windows (Mac)
A Preview window shows one device on its own, outside the main window. You can open several, each on a different device.
Open a Preview window
Open in New Window is in three places:
| Where | What it opens |
|---|---|
| Right-click the Preview tab in the Inspector’s tab strip | The device the tab is showing. |
| The button at the right end of the row with the device’s name, over the device | The device the tab is showing. Not shown in Full Screen. |
| Right-click the Preview row or the Preview icon in Favorites on a New Tab | The device the tab is showing, and the project’s latest build is put on it, as picking the row does. |
If the Inspector is showing a device, it moves into the new window without reconnecting. If not, the window starts on a device that the Inspector and other windows aren’t showing. Either way, the Inspector’s Preview tab closes.
Open in New Window is dimmed while the Inspector plays a PocketJS handheld, and when the Inspector shows no device and every device is already showing somewhere else.
In the window
The window shows the same page as the Preview tab: the device menu, the device, and the controls, without the tab strip, Open in New Window and Enter Full Screen. Its title, which shows in the Window menu, is the device’s name (or “Preview”). Before a device is up, the window shows the outline of a phone.
Each window has its own device. Picking another device in its device menu changes only that window. A device that another window is showing reads In Another Window in the device menu; choosing it brings that window to the front. In a window’s menu, the device the Inspector is showing reads In Another Window too, and choosing it brings the main window to the front. While windows are open, the Inspector never shows a device a window is showing: it moves to a free one, and with none left it shows no device.
Close a Preview window
Close the window as any Mac window. Its device comes back to the Inspector without reconnecting, replacing what the Inspector showed, and the Preview tab opens again.
Windows also close when:
- you turn off Preview in New Windows or Experimental Features: each device comes back to the Inspector as above;
- you switch Team or sign out: nothing comes back to the Inspector.
Preview windows aren’t opened again when AirBuild next starts.
Screenshot and draw
A picture goes to the chat you’re in (or the project’s chat when no chat is in front), so you can ask your Agents about it.
- Tap Draw in the row under the device, or ⋯ › Draw. The screen freezes, and the tab row becomes a message box with “Ask about the screen…”.
- Draw on the screen with your finger, and type what you want to ask. You can also dictate, or mention someone with @.
- Tap send. The message goes to the chat with the drawing, and you’re taken back to the chat.
Tap ✕ at the start of the message box, or Draw again, to stop without sending. A drawing alone is enough to send. Sending with nothing drawn sends the screen as it is. While you draw, the other tools under the device are dimmed.
- Screenshot puts a picture of the screen in the chat’s message box. Add your words and send it as usual.
- Draw freezes the screen. Before you draw, pointing at the screen lights the element under the pointer, and a click draws a box around it. Drag to draw freehand. Click Send Drawing (the check) to put the drawing in the message box. Click Draw with nothing drawn, or press Esc, to stop.
Fill a password
Step by step: Save logins for Agents
Passwords lists each saved login by its name. Each opens to Fill Username and Fill Password, whichever the login has. Tap or click the field on the device first, then choose one.
A note over the device says “Filled “Username”” (or the field’s name), or “Unable to fill “field”. Try again.” No Passwords means the Team has none saved; Add Password… adds one.
Start and shut down a device
A device that is off shows “Preview is turned off.” and Start Preview (the power button). Tap it to start the device. To turn a running device off, choose Shut Down device in the device menu (on the Mac, Running › › Shut Down; Restart there restarts the device).
Handhelds (PocketJS, beta)
Pick PSP, PS Vita or 3DS in the device menu to play the project’s PocketJS build. Press the keys on the picture of the handheld, or use the keyboard:
| Key | Handheld button |
|---|---|
| Arrow keys | D-pad |
| X | Cross |
| Z | Circle |
| C | Square |
| V | Triangle |
| Space or Return | Start |
| Tab | Select |
| Q, E | Left and right shoulder |
The bar holds Screenshot, Restart App and Enter Full Screen (on iPhone, Enter Full Screen is in the navigation bar). When a newer build is ready, “A new build is ready.” shows with Reload; the running game isn’t replaced until you tap it.
A project that builds only for PocketJS plays the PSP until you pick another. See Make an Android or PocketJS version (beta).
On iPhone Duo
On iPhone Duo held open, the device’s tools stand right under the device, with the message box that Draw opens under them. Held wide beside a chat, the side bar carries the device menu and Restart App; when the tools aren’t under the device, the side bar also has Home, Screenshot, Draw and ⋯, whose menu starts with Apple Watch. Held upright as the lower half under a chat, the device menu sits at the end of the tab strip.
Messages
Status lines
Shown under the outline of the device, or over the device while it runs.
| Line | What it means | What to do |
|---|---|---|
| “Use Preview right beside the chat.” | Under the outline before Preview has a device. | Wait for the device to come up. |
| “Starting Environment”, “Installing”, “Installing 40%”, “Opening”, “Installed” | The build is being installed and opened. On iPhone these show in the navigation bar. | Wait. A Team that was asleep can take a while to start. |
| “Testing connection…”, “Connecting…”, “Requesting Preview…”, “Waiting for Preview…”, “Starting Preview…” | The device is on its way. | Wait. |
| “Reconnecting (attempt n)…” | The connection dropped and the app is trying again. | Wait. |
| “Unable to reach Preview. Reconnecting (attempt n)…” | The device can’t be reached; the app keeps trying. | Wait. If it goes on, check your connection and open Preview again. |
| “Preview is turned off.” with Start Preview | The device is off. | Tap Start Preview. |
| “Preview did not start. Try again.” | Start Preview didn’t start it. | Tap Start Preview again. |
| “You’ve used all of your Cloud Preview time for this billing period.” with See plans and Start Preview | A cloud Team is out of time for Previews. The first time, the Plans screen opens by itself. | Tap See plans to choose a plan, or see Settings › Plan & Usage. |
| “Mac is offline. Open AirBuild on that Mac and try again.” or “The host Mac is offline. Open AirBuild on it to bring this team back.” | The Mac that runs your local Team is asleep or has AirBuild closed. The device comes back by itself when the Mac does. | Open AirBuild on that Mac. |
| “The local Preview is unavailable. Try again.” | The device on the Team’s Mac can’t be shown. | The app keeps trying; open Preview again if it doesn’t come back. |
| “Preview is not ready yet. Try again.”, “Unable to prepare Preview. Try again.”, “The environment is still starting. Try again in a moment.” | The device couldn’t be set up. | Try again in a moment. |
| “Disconnected.” | The connection was closed. | Open Preview again. |
Notes over the device
| Note | What it means | What to do |
|---|---|---|
| “Another user is controlling Preview.” | Someone else is using this device; your touch didn’t go through. | Wait, or pick another device. |
| “Xcode has taken over this preview’s input. Restoring it closes open apps.” with Restore Input, then “Restoring input” | On a Team’s Mac, the device stopped taking input from AirBuild. | Click Restore Input. Apps open on the device are closed. |
| “Couldn’t download APK. Try again.” | Download APK failed. | Tap the note to try again. |
Alerts
Unable to Run App comes with one of the reasons below. When there is a way forward it has a button for it (Request Build Setup, Add iPad Support or Add iPhone Support, which sends the request to the project’s chat) and Cancel; otherwise OK.
| Message | What to do |
|---|---|
| “No build available. Ask the agent to build the project.” | Ask an Agent to build the app, then reinstall. |
| “This project is not configured for building. Ask the agents to configure it.” | Tap Request Build Setup. |
| “This app is made for iPhone only. Choose an iPhone Preview to run it.” / “This app is made for iPad only. Choose an iPad Preview to run it.” | Pick the other kind in the device menu, or tap Add iPad Support / Add iPhone Support. |
| “This app doesn’t run on this Preview. Choose another Preview to run it.” | Pick another device. |
| “The latest build of App can’t be installed yet. Try again in a moment, or rebuild the app.” | Try again shortly, or ask an Agent to build again. |
| “This build is no longer available. Rebuild the app.” / “The build could not be unpacked. Rebuild the project.” | Ask an Agent to build again. |
| “The build’s preview settings could not be read. Update AirBuild or rebuild the app.” | Update AirBuild, or ask an Agent to build again. |
| “Update AirBuild on the host Mac to install this build.” | Update AirBuild on the Mac that runs your Team. |
| “The host Mac is offline. Open AirBuild on it to bring this team back.” | Open AirBuild on that Mac. |
| “The environment is still starting. Try again in a moment.” | Wait and try again. |
| “Unable to download the build to Preview. Try again.”, “Unable to install the app on Preview. Try again.”, “Installation was interrupted. Try again.”, “No Preview is available. Try again.”, “Preview refused the request. Try again.”, “Unable to read the latest build. Try again.”, “Preview connection timed out. Try again.”, “The app is installed, but its preview could not open. Try again.” | Try again. |
| “The app is installed, but its preview app is unavailable on this Preview. Choose another preview app and rebuild.” | Pick another device and ask an Agent to build again. |
The same failure doesn’t ask twice; a different one does.
Other alerts:
| Alert | What it means | What to do |
|---|---|---|
| “App” Is Not Ready: “No installable build is available for this app yet.” | The project has never been built. | Tap OK and ask an Agent in the project’s chat to build the app. |
| No iOS build yet / No Android build yet: “Ask an agent to build the iOS app, then you can install it here.” (or the Android app) | You pressed Restart or Reinstall on a device the project has no app for. | Tap Ask an Agent to Build to send the request to the project’s chat, which then comes to the front; or Cancel. On the Mac, Return presses Ask an Agent to Build. |
Handhelds
| Line | What to do |
|---|---|
| “Loading…”, “Starting Environment…” | Wait. |
| “The app appears here after its first build.” | Ask an Agent to build the PocketJS app. |
| “This project has no PocketJS app yet. Ask the Agent to make one.” | Ask an Agent to make one. |
| “This build was not made for the device.” | Pick a handheld the build was made for. |
| “The app could not be loaded.” / “The app stopped with an error.” with Try Again | Tap Try Again, or ask an Agent to fix the build. |