Development
Build and test
Section titled “Build and test”swift build # debug buildswift test # unit tests; no simulator neededtools/e2e.sh # end-to-end suites against a throwaway simulatortools/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. |
The docs site
Section titled “The docs site”This site is in site/, built with Astro and Starlight as static files.
cd sitenpm installnpm run dev # http://localhost:4321npm run build # static files in site/distReleasing
Section titled “Releasing”-
Set
versioninSources/simpane/main.swift, for example to0.2.0, and commit. -
Push a matching tag:
Terminal window git tag v0.2.0git 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.