Build, run & install

When Xcode takes over a Preview device's input, tap Restore Input to get it back, or ask an Agent to heal the device.

Sometimes a Preview device keeps showing its screen, but taps, clicks, typing and the device’s buttons do nothing. The simulator help names one cause: with Xcode 27 open, Xcode’s Device Hub can take over an iOS 27 device’s input. The device then ignores every touch and key. AirBuild tells you when this happens, and one button gets the input back.

Restore the input

When the device reports that Xcode has its input, AirBuild shows a notice at the bottom of the device’s screen: “Xcode has taken over this preview’s input. Restoring it closes open apps.”

  1. Tap Restore Input (on the Mac, click it).
  2. While it works, the notice says “Restoring input”. It takes a few seconds.
  3. When the device has its input back, the notice goes away. Every app that was open on the device has closed, yours too.
  4. Open your app again: tap Reinstall (on iPhone, the app’s icon, Restart App), or tap the app on the device’s Home Screen.

Restoring restarts the device’s Home Screen (SpringBoard), and that is what closes the apps. The device is shared by the Team, so the apps close for everyone using it, an Agent testing on it included.

When there’s no notice

If taps still do nothing and AirBuild shows no notice, ask an Agent in the project’s chat. Name the device:

The iPad in Preview doesn't respond to my taps. Heal it.

The Agent runs simulator heal on that device (see heal in simulator):

What the Agent reports What it means
It took the device’s input back The device had the problem. Every open app closed; open yours again.
Nothing to heal ("reclaimed":false) The device had its input. Nothing changed and no app closed. The cause is something else: see the questions below.

Agents meet the same problem when they test your app. Their taps then fail with input_shadowed, and the message tells them to run simulator heal and open the app again afterwards. So an Agent may restore the device before you notice, and your app closes while you watch.

Questions

The notice is still there after I tapped Restore Input.
If restoring fails, AirBuild shows no error: the notice just stays. Tap Restore Input again, or ask an Agent to heal the device.
Will it happen again?
The app doesn’t say whether Xcode can take the input again while it stays open. If the notice comes back, restore the input again.
What in Xcode causes it?
The simulator help says only that it can happen with Xcode 27 open and an iOS 27 device, and that it’s Xcode’s Device Hub that takes the input. In a local Team, opening the project in Xcode opens Xcode on the Mac that runs the devices: see Open a project in Xcode, Cursor or another editor.
When I tap, “Another user is controlling Preview.” shows for a moment.
Someone else in the Team is using the same device, so your taps don’t reach it. Wait, or pick another device in the device menu. See Run your app in Preview.
My app closed while I was using it.
If someone restored the device’s input, every open app closed: open yours again. If it closes by itself, see Find out why your app closes or crashes in Preview.
An Android phone doesn't respond.
This fix is for Apple devices only. Tell an Agent in the project’s chat what you see.