Phone simulators
Solanum shows iOS Simulators and Android Emulators live beside a thread, to watch and to touch, and agents can open and drive them. This page covers what they need, what you can do with one, and how an agent uses it.
What you need
- iOS Simulators
A Mac with Xcode. They don't run on Windows or Linux.
- Android Emulators
The Android SDK, where Android Studio puts it or where
ANDROID_HOMEsays, and anffmpegwith libx264 for their screens.- Node and npm
Solanum installs Expo's device hub with npm, once, the first time you turn devices on.
On Windows and Linux, the list has emulators only.
Turn devices on
Press ⌥⌘7 (Ctrl+Alt+7 on Windows and Linux) to open Device in the side panel. The first time, the panel takes you through the setup: turning on the device hub, checking that the simulators or emulators run here, and whether agents may use them.
The same switches are on the Devices page in Settings:
- Simulators and emulators
Shows them beside threads. Devices keep running when it's off.
- Agents use devices
Gives agents tools to open simulators and emulators beside the thread and drive them.
- Machines over SSH
Shows another machine's devices here too.
The page also says what's missing when a device can't be shown.
Open a device
The Device tab lists your devices in groups: what's running, iPhone and iPad, Android, and plugged in. Choose one. Solanum boots it if it isn't running and shows its screen.
Then use it as you would on the desk:
- Click and drag to touch.
- Type while the device has focus.
- Use the buttons in its bar: Home and Rotate on a simulator, and Back, Home and Recents on an emulator.
- Attach a screenshot puts a picture of the screen in your next message.
Use its tools
Tools, the sliders button in the device's bar, opens a column beside the screen:
- Display
Switches the device between light and dark, and changes its text size.
- App
Opens or stops the app in front, or one you type, and allows or denies it a permission such as the camera.
- Open a link
Opens an address on the device.
- Location
Sets where the device says it is.
- Push notification
Sends one to an iOS Simulator.
Record the screen
Record the screen, in the device's bar, records it into a video. The bar shows the time so far while it records. Choose it again to stop and save. A recording stops by itself after a while.
Let the agent use it
With Agents use devices on, agents started from then on get tools to list the devices, open one beside the thread, look at its screen, and record it. They drive it, tapping, typing and reading the screen, with agent-device, a command Solanum installs for them.
You see the device the agent opened, and can touch it too. A video the agent records shows in the conversation, and can be added to the thread's pull request as a browser recording can.
Use an iPhone on a cable
An iPhone or iPad plugged into your Mac shows in the list under Plugged in. It appears beside the thread at its full resolution, to touch, type to, record and screenshot, and agents can drive it.
Until the phone is ready, its row says what it still needs, such as turning on Developer Mode. The first time, Register with your Apple team registers the phone with the developer team Xcode is signed in to. macOS asks once to let Solanum use the camera, which an iPhone's screen counts as. Keep the phone unlocked while you use it.
Use another machine's devices
A thread on a Mac you reach from another computer shows that Mac's simulators, live and touchable, so a PC can work on an iOS app.
For devices on a machine a thread doesn't run on, add the machine under Machines over SSH on the Devices page. Solanum reaches it with ssh and your keys and runs the device hub there, which needs Node and npm on it. A Mac's simulators show, and the emulators of any machine with the Android SDK and ffmpeg.