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:.box/out/<job>/. Add the command to your own workflow when you want to refresh screenshots alongside a build.
Choose a simulator and appearance
Usebox devices to see available simulators. Pass a device name, and optionally choose dark appearance or a locale:
box screenshot options. See Screenshot for the available settings.
Run tests across devices
For a test job that exercises several simulators, usebox 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 usingbox 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.