An iPhone app written in Swift needs a Mac to build and run. An app written with Expo (React Native) does not: its development server runs on Linux, and a free app on your phone, Expo Go, loads the app from that server. So a discussion on your Cloud Computer can build a phone app, and you can hold it in your hand a minute later.
What you need
- A discussion that runs on your Cloud Computer. The web alone edits no files; the Cloud Computer is where the project lives and the development server runs. Pick it with the place chip under the message box.
- Expo Go on your phone, from the App Store. No Apple Developer membership is needed for this step.
- Nothing on a Mac, and no cable.
Ask the room for the app
Say what you want in a new discussion: "Make an iPhone app with Expo that tracks my reading list, and start it so I can try it on my phone." The room creates the project, installs its packages and starts the development server, which listens on port 8081 unless you ask for another.
If the discussion is not on a computer yet, asking for an app starts one. By default your request uses your Cloud Computer, or makes one at its default size if you have none and your plan allows it, and a notification in the top right corner says so. Your words appear in the discussion at once with a line saying the computer is being made, and are sent to it as soon as it is up, usually within a minute. They are kept on the server, so you can leave the page meanwhile; held for no more than two hours. Making one is charged only while it is awake. It sleeps when it has been idle for the time set in Settings, Cloud Computer, and a phone using a Try on Phone code counts as use, so it does not sleep while you test. You can delete it at any time from the same page; your files are kept for a few days if you change your mind. The notification's Answer Here Instead drops the wait.
If you have a computer of your own online and no Cloud Computer, a card asks which to use instead, because a Cloud Computer is charged. To be asked before one is made, with the price, set When I Ask for Something to Be Built in Settings to Ask me first; the card then shows Create a Cloud Computer… and Answer Here, which sends your words as they are so the room can only describe the app.
An existing Expo project works the same way: point the discussion at its repository and ask the room to start it.
Which phone you build for and where it is built are two settings, described in "Choose the phone and where it is built" (linked below).
Try on Phone
Where to find it. Inside the discussion: the Cloud Computer button beside the Run chip opens a panel in the right column, where kept apps also open. Try on Phone is its Phone tab, beside Preview, Terminal and Background Tasks. The Mac app has the same button in the message box's row and opens the panel in the workbench; the iPhone app has it beside the place chip, as a sheet. There is no separate page for it.
What happens. In the panel, choose the port and how long the code should work (5, 15, 30 or 60 minutes), then press Show Code. Scan the code with your iPhone's camera and the app opens in Expo Go. Leave it open: when the room changes a screen, the app reloads by itself.
If the card says nothing is listening on the port yet, the development server is not running. Ask the room to start it, then scan.
Stop ends the code at once. Showing a new code for the same port also ends the old one. Closing the panel does not: the chip keeps a green dot while a code is live, and opens the panel again.
Who can open it
Open Preview is for a browser and works only for you, signed in. A phone app is not a browser and cannot sign in that way, so the address inside the code is the pass: anyone who has the code can open the app until it ends. That is why it lasts minutes, reaches one port and nothing else on your Cloud Computer, and is never stored by us or written to the audit trail. The audit trail records that a code was made, for which port and for how long.
Treat the code like a link to an unlisted page. Do not post a screenshot of it while it is live.
When not to use it. For showing the app to a customer or a tester over days. That needs a build installed on their phone, which is a separate step.
What it costs
The Cloud Computer's hours count as they always do while it is awake; a code adds nothing. Expo Go is free.
What this step does not do
Expo Go runs your app inside its own shell. It is the fastest way to see and change an app, and it is not the app on your home screen: it has no icon of its own, and some native features need a real build. Installing a build on your phone, TestFlight and the App Store need an Apple Developer membership and a build service account. The panel's Build view does that, and has its own page.
An app that already exists in Swift stays on its path: a Mac, or Xcode Cloud from a cloud run.