Skip to main content

xcshot

Real iOS simulator screenshots from Linux (or Windows, or anything). No Mac, no Xcode, no xcresulttool.

xcshot drives Xcode Cloud through the App Store Connect API: it triggers a UI-test workflow on an Apple-hosted simulator, waits, downloads the .xcresult artifact, and extracts labeled PNG screenshots — entirely with portable Python.

xcshot shoot demo

Why this exists

Every existing .xcresult tool (xcparse, XCResultKit, xcresultparser, …) is Swift and shells out to Apple's xcresulttool, so they only run on macOS. But an xcresult's Data/ directory is just a content-addressed store of raw or zstd-compressed blobs — and a PNG can carry its own name in a tEXt chunk. So xcshot's extractor byte-scans the store for PNG magic, reads the embedded names, and writes labeled files. Any OS, no Apple tooling.

Pair that with Xcode Cloud (25 free compute hours/month with an Apple Developer membership) and a $200 laptop can see a real iOS app running on a real simulator.

Install

pipx install xcshot        # or: pip install xcshot

Commands

command what it does
xcshot extract <bundle.xcresult> -o dir extract labeled PNGs from any xcresult — fully offline
xcshot products -w list your Xcode Cloud products and workflows
xcshot runs <workflow> list recent build runs
xcshot pull --latest -w <workflow> download + extract an existing run's screenshots
xcshot shoot -w <workflow> -b <branch> trigger → wait → download → extract, one command
xcshot workflow-create --product <id> --scheme <s> --container <p> create the manual-start simulator TEST workflow via API

Auth: three env vars (ASC_API_KEY_ID, ASC_API_ISSUER_ID, ASC_API_KEY_P8). See docs/SETUP.md for the full walkthrough, including the one-time Xcode Cloud onboarding (the only step that ever needs Xcode) and the templates/Screenshots.swift UI-test capture template. Running from CI instead of a laptop? There's a copy-pasteable GitHub Actions recipe. Agents: there's a ready-made Agent Skill.

MCP server

Agents can use xcshot as MCP tools: pip install "xcshot[mcp]" and point your client at the xcshot-mcp command. See docs/mcp.md for client config and the tool list.

What it is / isn't

  • Is: a way to get real simulator pixels from a machine that can't run a simulator — for visual review, App Store listing shots, agents, docs.
  • Isn't: an interactive dev loop. Each shot is a ~10-minute Xcode Cloud round trip; you can't tap on things between frames. Unsigned builds, hot reload, and on-device installs are a different problem (see ios-builder).

Requirements

  • Apple Developer Program membership (Xcode Cloud requires it; the free tier is 25 compute hours/month ≈ ~150 screenshot runs).
  • A native Xcode project with a UI-test target (generated projects work via a ci_scripts/ci_post_clone.sh hook — see SETUP.md).
  • One-time product onboarding in Xcode: the ASC API can create workflows but not products (no POST /v1/ciProducts), so the very first link between app and Xcode Cloud needs Xcode once. Mac-free forever after.

License

MIT

Metadata

Release files for xcshot 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xcshot 0.2.0
File Size Uploaded Provenance Actions
xcshot-0.2.0.tar.gz 74.7 kB Without provenance Details for xcshot-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xcshot 0.2.0
File Interpreter ABI Platform Actions
xcshot-0.2.0-py3-none-any.whl Python 3 none any Details for xcshot-0.2.0-py3-none-any.whl

Total release size: 92.3 kB

Release files / xcshot-0.2.0.tar.gz

Download URL xcshot-0.2.0.tar.gz
Size 74.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0bf6d6e8754f8e03e4f2dc77756e8c89f98fe6ace5e56c138b36b59b718f999f
BLAKE2b-256 checksum
How to use checksums
cf84f89a4b5503b9145bfb0292c8d0bb606dccca217b7626fa4476d18ab840c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / xcshot-0.2.0-py3-none-any.whl

Download URL xcshot-0.2.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9282f90aca4d2bac11038d87495de99f8babe2da4a213c04162d5a53b565c32
BLAKE2b-256 checksum
How to use checksums
70097883d21ff4821f964361517e08e850d710b7698da1ead861e81a009ee908
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for xcshot 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page