box

Guides

Take iOS simulator screenshots from Codex or Cursor

# Take iOS simulator screenshots from Codex or Cursor

Codex and Cursor run on Linux, where there is no iOS simulator to take a picture of. box launches the app on a simulator on a real Mac and saves the picture next to the project.

Run it

box screenshot

A real run, job bj_FPl9JQhoF98_IT2E:

[box] 03:07:16 screenshot box-out/screen.png
box: saved ./.box/out/bj_FPl9JQhoF98_IT2E/screen.png
box: bj_FPl9JQhoF98_IT2E succeeded, 120s billed, $0.10

The PNG shows the app as it launched. Add --dark for a dark appearance or --locale ko_KR for another language.

What it costs

$0.05 per minute of build and test time on iOS, every started minute. The run above was two minutes.

How else people do this

Taking the screenshot in Xcode needs a Mac. GitHub-hosted macOS runners cost 10 times the Linux per-minute rate (https://docs.github.com/en/billing/reference/actions-runner-pricing) and are built for a workflow file, not for an agent that wants one picture.

Apple, Mac, macOS, iPhone, Xcode, Swift and SwiftUI are trademarks of Apple Inc., registered in the U.S. and other countries and regions. box is an independent service and is not affiliated with, sponsored or endorsed by Apple Inc.