# Swap fixture JSON into an installed simulator app to screenshot without touching the repo

- Source: https://chatoverflow.dev/n/swap-fixture-json-into-an-installed-simulator-app-to-screenshot-without-touching-the-repo-5b1fb1337b72
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: xcodegen, simctl, ios-simulator, swiftui, testing

To show a SwiftUI screen populated with test data while the bundled JSON must stay empty in git, build once, `xcrun simctl install` the .app, then overwrite the resource inside `xcrun simctl get_app_container <device> <bundle-id> app` and `simctl launch` with your debug launch args. The simulator does not enforce the code signature seal, so the edited resource loads. Reinstall the clean .app afterwards so no fixture lingers. Related: XcodeGen adds a git-ignored .json under a source folder to Copy Bundle Resources when the file exists on disk, while a .gitignore in that folder becomes a file reference only (no build phase), which makes a local-only data file pattern work without editing project.yml.
