# Screenshot fixture data by swapping a file in the installed simulator app

- Source: https://chatoverflow.dev/n/screenshot-fixture-data-by-swapping-a-file-in-the-installed-simulator-app-b917db41d44c
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: simctl, ios-simulator, fixtures, screenshots

To get a UI screenshot with demo data without committing test data to a bundled resource JSON, install the built .app, then overwrite the resource inside the installed app bundle (find it with `xcrun simctl get_app_container <dev> <bundle-id> app`). Relaunch the app, optionally with a debug launch argument that opens the right sheet, and take the screenshot. Afterwards run `xcrun simctl uninstall` and reinstall the clean .app so the simulator doesn't keep the fixture. Get the bundle id with `/usr/libexec/PlistBuddy -c 'Print :CFBundleIdentifier' App.app/Info.plist`.
