Skip to content

Development

Terminal window
swift build # debug build
swift test # unit tests; no simulator needed
tools/e2e.sh # end-to-end suites against a throwaway simulator

tools/e2e.sh creates a new iPhone simulator, runs four suites, and deletes the simulator afterwards. The suites run simpane under tools/fake_terminal.py, a stand-in for Ghostty that answers simpane’s queries, reads its images out of shared memory and sends it mouse and key input. They send real touches and keys, so never point them at a simulator you are using.

Suite Checks
interact.py Taps, drags, scrolling, the Home gesture and button, panels, resize, zoom
features.py Screenshots, recording, the tools, the log panel, focus mode
e2e.py Cell-coordinate mice, typing in bursts, reconnecting after the simulator reboots
scroll.py That a scroll moves the content as far as the finger and stops when the wheel stops

The fake terminal can also render what Ghostty would show, text and images, to a PNG with FakeTerminal.screenshot(). The screenshots in these docs were made that way.

Module Contents
SimpaneCore Terminal input parsing, layout, the touch state machine, flow control, statistics. Touches neither the simulator nor the terminal, and has the unit tests.
SimBridge Every call into CoreSimulator and SimulatorKit: screen capture, input, the device list.
simpane The render thread, the viewer and its UI, recording, logs and the commands.
CShim C functions Swift cannot call directly: shm_open, which is variadic, and work intervals.

This site is in site/, built with Astro and Starlight as static files.

Terminal window
cd site
npm install
npm run dev # http://localhost:4321
npm run build # static files in site/dist
  1. Set version in Sources/simpane/main.swift, for example to 0.2.0, and commit.

  2. Push a matching tag:

    Terminal window
    git tag v0.2.0
    git push origin v0.2.0

The release workflow (.github/workflows/release.yml) stops if the tag and the version differ. Otherwise it builds and tests on macOS, publishes the release with the binary and its checksum, and updates the formula in Garume/homebrew-tap, so brew upgrade simpane picks it up.