From zero to the App Store: the story of Onekept, chapter 2 of 7
From zero to the App Store, chapter 2: building with AI agents, the simulator that lied and the backup that didn't exist
Updated
In this chapter (5)
In chapter 1 I told the first commit and the name change. Now comes the obvious question: what is it like to build a whole app with AI agents? I can answer with what is in the project history. It moved fast: 234 commits in 113 days. And it had errors that passed the tests and failed on the device.
What the numbers say, and what they don’t
The numbers below come from the git history, checked on November 22, 2026:
- 234 commits between Jul 22 and Nov 12, on 40 different days. By month: 14 in July, 32 in August, 29 in September, 143 in October and 16 in November.
- 169 carry the AI agent identity, 64 my name (63 in one spelling, 1 in another) and 1 the assistant’s name.
- About 41,000 lines of Swift, in 125 files, counting the app, the widgets and the debug and test code.
- Interface in 23 languages. The README warns that they are still subject to visual and linguistic review.
- In the Nov 4 check, the automated tests passed: 596 of 596 in the main suite and 83 of 83 in the privacy ones, in 33 suites.
These numbers don’t prove who wrote what. A commit author’s name is just the identity configured in the environment. That’s why I don’t turn 169 into an authorship percentage. I say what I can support: an AI appears as co-author in the very first commit, and agents and other AI models remain in the history afterwards, including in reviews.
August 5: the simulator lied
The first problem was the kind that doesn’t show up on any screen. The language model from Apple that generates the reflections showed up as “ready” in the simulator. But every structured generation failed. The simulator said it was available and failed at everything.
There was a second error, hidden inside the first. The code didn’t recognize the model’s refusals: a real refusal arrived with a different text from what the code expected, and became an “error”, with the message “trying again usually works”. In other words, a refusal was presented as a passing failure.
The project record draws the conclusion: the real behavior of the model is only measured on a physical iPhone. The same record corrects a sentence in the project’s own instructions, which claimed that the simulator’s reflections were really written by the AI. That was wrong.
On the same day, another bug, which also went unnoticed in normal use: a phone call in the middle of a recording ruined the entry. iOS stopped the audio without warning, the screen kept showing the timer and everything said after the call was silently lost.
August 6: the app that closed without warning and the backup that didn’t exist
Two errors in which, in the words of the commit, the app was wrong about itself.
Face ID. The project was missing the Face ID usage key (the NSFaceIDUsageDescription). Without it, iOS doesn’t show a permission-denied notice: it terminates the app on the first unlock. The simulator never reaches that point, so no test done there would catch the error.
iCloud backup. The button never worked. The app asked iCloud for sync without having the necessary permission, the call failed and the data stayed only on the device. Meanwhile, the Settings screen said the entries synced with my private iCloud database, and the published privacy policy described the feature.
The commit explains why this weighs more in an app like this one: for an app whose whole promise is that your words stay on your device, being wrong about where they are is the worst possible error.
Fixing the feature wasn’t possible at that moment. The developer account was free, and free accounts cannot use iCloud. So the button and the promise were removed. The privacy policy came to say that there is no sync or backup service, and the home page, the FAQ, the support page and the two store descriptions stopped mentioning backup. The commit also added an automatic check that fails if the iCloud permission comes back without the screen and the privacy policy following.
In place of the backup stayed what was already true: the app writes a folder with the entries in readable JSON and the original audio, and can restore it. That needs no account and no permission.
Practical lesson: write down what your test can’t see
If you are building an app with AI, three habits would have saved me work:
- List what your test tool doesn’t measure. The simulator doesn’t measure the device’s AI model or the Face ID path. Write that in the project, for the agent and for you. When a tool says “ok”, ask what it was in a position to see. The guide The AI says it fixed it, but the error is still there deals with a similar case.
- Take out the promise before fixing the feature. If a screen, a policy or the store page claims something the code doesn’t do, fix the text first. In a privacy app, that error costs more than the feature that was missing.
- Ask for an automatic check that prevents the error from coming back. In my case, it was a test that fails if the iCloud permission reappears by itself.
If your agent changes more than you asked, this guide helps limit the scope of your requests.
Want to see the result?
The app that went through those tests is Onekept: an app of mine, built with AI agents. Its page is onekept.app, it is on the App Store, and the links are not affiliate links. Reflections and summaries depend on Apple Intelligence (iPhone 15 Pro or newer), and it is not available in the European Union or mainland China.
Previous chapter: Origin. Next: Decisions you can’t undo. Series index: From zero to the App Store: the story of Onekept.
New guides by email. An email when we publish a new guide, error fix or chapter, in plain English. Subscribe