Building Lanyard, part 1: from an empty repo to TestFlight in four days
How we went from a product doc to a beta on real iPhones in four days, and the day-one decisions we were glad of by day twelve.
Dan Fernández
· 4 min read
This is the first post in a series about building Lanyard, the iPhone app that turns a conference’s talks, slides, badge scans and quick notes into a trip report, without sending any of it to a server. (Why it works that way.)
The series:
- From an empty repo to TestFlight in four days (this post)
- Running a dozen AI coding sessions on one app
- Why our CI is a Mac mini on a shelf
- iOS vs Android: one app, two very different phones
- Security decisions you can enforce
- Things to watch out for: bugs the Simulator never showed us
The first commit landed on November 4 and the first TestFlight build went up on November 7. It passed Beta App Review on the 9th, and the public beta link opened on the 11th. By day twelve the main branch had 460 commits, with more than 1,100 across all branches, and the test script had grown from 153 checks to almost 900.
AI coding agents wrote most of that code, several at once, while I wrote the plan, made the calls and reviewed the parts that matter most (part 2 covers how). At that pace the risk was never going too slowly. It was ending up with a mess, and most of what kept it together was set up on the first day.
One document before any code
Before the repo existed there was a single document with four tabs: a business case, a product spec with the MVP’s acceptance criteria, an engineering spec and a project plan. When two pieces of work disagreed, the document settled it, or we changed the document. That can look like process for its own sake, but when the people or agents doing the building don’t share a memory, a written spec is the one thing they all read the same way.
Packages that can’t see each other
The app is a thin shell around eight local Swift packages: capture, storage, the processing pipeline, the model providers, reports, delivery, telemetry, and Core for shared types. Each depends on Core and nothing else, and a script in the build fails if that changes. If two packages seem to need each other, the shared type or protocol goes in Core.
Because of that rule, two sessions could work on reports and delivery at the same time without touching the same files. Each package builds and tests on the Mac with swift test in seconds, with no simulator. And privacy became something you can check: only one file in the codebase is allowed to open a network connection, and a build script enforces that (part 5 goes into it).
Tests written from the spec
Every P0 acceptance criterion in the spec became a failing test before the feature was written, so each piece of work had a clear finish line: that test passes and the rest of the suite still does.
They also caught a bug that would have been easy to ship: lines a user had removed from a report came back after a relaunch, because each line’s ID came from Swift’s hashValue, which is randomized on every launch. A test that saved, relaunched and compared found it, and a stable hash fixed it.
The few decisions you can’t undo
A few choices are permanent, and it’s worth finding them on day one.
The bundle ID is one. The first upload to App Store Connect ties it to the app for good, so we picked it on day one and put a “stop and confirm” step in the upload checklist before that first upload.
The storage format is another. Every saved payload carries a schema version and the decoders accept every older one. Database migrations only ever add, a shipped migration is never edited, and the test suite has golden fixtures for each version.
The third is the line between raw and derived data. Recordings, photos and notes never change after capture. Transcripts, summaries and reports carry the pipeline and model version that made them, and they get rebuilt rather than migrated, so when the model or the prompts improve, old events improve too.
What we cut to ship in four days
The first TestFlight build sent reports by email, the share sheet, Files and Reminders. The Slack, Notion and Google Docs integrations exist in the code but show “Coming soon”, because each needs its own review and shipping them later costs less than shipping them wrong.
I also gave every decision I owed a written default, so work never stopped while it waited for me. One day I went through 49 of them in a row, and most came out as “the default is fine”.
The first real iPhone
The day after the first build, a real iPhone showed that every recording failed. The audio session used a mode meant only for playback. The Simulator accepted it, and UI tests don’t use a microphone. Part 6 is a list of bugs like that one.
Where the time went
Agents can write code all night, but they can’t approve their own encryption code, the consent screens or anything that sends. I review those line by line, and that review turned out to be what set our speed. We started tracking it like any other budget: how many reviews are open, and roughly how many hours each will take. If you build this way, plan for your own review time, because that’s where the hours go.
Next: running a dozen AI coding sessions on one app without chaos.