Skip to main content
You can capture iOS simulator screens as part of a repeatable build workflow. box screenshot builds the app, opens it on an iPhone simulator and saves a PNG. The same command can run locally or as part of a CI workflow.

Capture a screenshot

From the project folder, run:
The job’s logs and saved image are returned under .box/out/<job>/. Add the command to your own workflow when you want to refresh screenshots alongside a build.

Choose a simulator and appearance

Use box devices to see available simulators. Pass a device name, and optionally choose dark appearance or a locale:
These are documented box screenshot options. See Screenshot for the available settings.

Run tests across devices

For a test job that exercises several simulators, use box test --devices. It builds tests once and runs them on each listed simulator in turn:
--devices is supported by box test, not box screenshot. Each device’s result is listed in the output. See Test on several devices.

Run screenshot jobs in CI

Connect GitHub using box ci connect --personal or box ci connect --org, then set the GitHub Actions job runner to runs-on: xenoci. Keep your screenshot command in the workflow’s steps. Up to 2 CI jobs can run at once per account. Related: GitHub Actions, Screenshot, Test on several devices, Pricing. Start with $10 of credit, good for 1 year.