ShiftStage

Read your app's SwiftData and Core Data store from your iPhone

For an iOS developer the project's database is the store inside the simulator. Did the save land, did the migration run? Look at it from the phone — booted simulator or not.

SwiftData writes default.store, an NSPersistentContainer writes <Name>.sqlite, both in the app's data container under ~/Library/Developer/CoreSimulator/Devices/<UDID>/… — a folder whose name changes every time the app is reinstalled. ShiftStage's Mac agent finds those stores for you and opens them read-only.

Other ways, and when they are better

  • At the Mac, with simctl and sqlite3. xcrun simctl get_app_container booted <bundle-id> data gives you the container, and sqlite3 does the rest. That is the quickest path while you sit at the Mac with the simulator running. In our tests simctl would not report containers of a simulator that is shut down, which is when stores are usually checked.
  • A desktop store browser. Better for deep work on a model at the desk.
  • From the phone: the same question, answered from the sofa while the Mac keeps building — and the answer comes from the real store, not a copied file.

Turn it on at the Mac

Simulator containers sit outside the folders you share, so reading them is a separate permission: switch on "Read simulator databases from devices" in the agent's Security settings. It is off by default; while it is off the agent does not even walk the simulators, and the phone tells you where to switch it on.

What the phone shows

Databases on the phone gets a section per simulator — "iPhone 17 Pro · iOS 26.0" — with a row per store: the app's name (or the app group's identifier), the path inside the container, size and how recent it is. Newest first. Both booted and shut-down simulators are listed.

The agent reads the device set itself: each device's device.plist, the data and app group containers, the app names from their bundles, and any file in Documents or Library with a database extension and the SQLite header. It skips Caches, Cookies, WebKit and other system stores, Apple's own containers, symbolic links, simulator clones made by test runs (XCTestDevices) and custom simctl --set device sets.

Read it like any database

A store opens with the same screens as a SQLite file: tables with columns and keys, rows in pages, sort, filters, search across columns, list or grid, and read-only queries:

SELECT ZSTATUS, count(*) FROM ZORDER GROUP BY ZSTATUS

Tables keep the names Core Data gave them — ZORDER, Z_PK, Z_ENT. ShiftStage does not translate or hide them; what you see is what is on disk.

The latest save is visible. While the app runs, its last ModelContext save often sits in the -wal file; the agent opens the store live, so that save is included. A store copied without its -wal and -shm files is read as a snapshot and marked so.

The app does not notice. The connection cannot write, makes no checkpoint and does not remove -wal; the store and its -wal are left unchanged to the byte. A query that needs more than the result screen exports as CSV into the Mac's Downloads or through the share sheet.

Read only, on purpose

There is no editing here. Writing to the store behind the back of a running ModelContext would corrupt its caches rather than fix the data. Change data through your app, or in your project's own SQLite files, where editing a single cell is supported.

The Mac's access log records which simulator, container and path were read, and the query text — never row values — and rows are never saved on the phone.

Set it up once

  1. Install the agent on the Mac. A signed, notarised app from our open Homebrew tap. It shares only the folders you name.
    brew install --cask shiftstage/shiftstage/shiftstage-agent
  2. Install the app on the iPhone from the App Store.
  3. Pair them. Scan the code on the Mac's screen and confirm the same symbols on both devices. No account. The first pairing needs both on the same network.

That is the whole setup: no VPN, no port forwarding, no SSH keys. On the same Wi-Fi the phone talks to the Mac directly; away from home the connection goes peer to peer, or through a relay that forwards only end-to-end encrypted bytes. The Mac has to be awake: a sleeping Mac answers nothing, and the app says so instead of timing out.

While a build runs, you can follow it from the Mac terminal on your iPhone.

Get it

The Mac agent: download page — one Homebrew command or a notarised disk image. The iPhone app: App Store. Free forever for one Mac on your own network, no account; $7.99 a month or $69.99 a year to reach it from anywhere.

More guides: all guides.