Setup: Eleven Questions, Answered Once
Install three command-line tools, run /start, answer eleven setup questions, and paste one server address into Secrets.xcconfig — done once, at the start of a new project.
Eleven questions, answered once
Setup runs once, at the start of a new project. "Use the recommended defaults" is a legitimate answer to all eleven questions below — a guessed one spreads into every command that reads the config afterward.
- Install three command-line tools via Homebrew:
xcodegen,jq,swiftlint. - Run
/start ~/Code/MyNewApp— give it the folder your app should live in. /startalways shows you the whole eleven-question list, whatever you said when you ran it — answer them in the table below.- Paste the server address into
Secrets.xcconfig.
Give /start the folder your app should live in — that's the form to reach for. /start ~/Code/MyNewApp creates and fills that folder for you. The alternative — git clone <template-repo-url> MyNewApp && cd MyNewApp then bare /start — works too, but the two don't end up in the same place: given no folder, /start builds the app where you're standing. That's right if you cloned the kit to be this one project, and wrong if you cloned it to keep around and start several projects from — that clone then becomes the app and carries the kit's own history with it. When /start can't tell which you meant, it asks you to confirm the folder before writing anything.
| Question | Default | Why it matters |
|---|---|---|
| Project topology | T2 | How many pieces the code is split into (T1 — one target · T2 — plus local packages · T3 — a workspace over several projects) — see the Project Shape page |
| UI framework | SwiftUI | Apple's modern declarative toolkit; UIKit is still fully supported for teams who already know it or need older iOS support |
| Persistence | SwiftData | Needs iOS 17+; answering None means every screen re-fetches from the server every time |
| Architecture pattern | MVVM | The agreed split of "which file does what" — the most complete ready-made templates, so the most predictable output |
| Navigation | NavigationStack | SwiftUI's built-in screen-to-screen mechanism; UIKit gets a Coordinator object instead |
| Networking | URLSession + async/await | Built into iOS, no third-party library to audit; answering None removes the networking layer entirely rather than generating one nobody uses |
| Deployment target | iOS 17 | Unlocks SwiftData and @Observable; a lower target means older-device support but fewer tools available |
| Name & bundle ID | you answer | Nobody can guess these, and the bundle ID is hard to change once the app has shipped |
| Dependency injection | Initializer injection | Plain Swift, nothing to install, and easy to follow because you can see who handed what to whom. A DI container hands things out automatically instead — useful eventually on large projects, but it hides the wiring, so this kit waits until the manual way actually hurts |
| Test framework | XCTest | Apple's long-standing option, works everywhere and every example online assumes it. Swift Testing is the newer, easier-to-read alternative, and is available here if your team prefers it |
| Project generation tool | XcodeGen | Regenerates the .xcodeproj from a short text file, so pbxproj merge conflicts stop happening |
Your eleven answers are checked together as a set, not one at a time — some combinations don't make sense. Answering None to persistence on its own is fine — every screen just re-fetches from the server each time. Answering None to both networking and persistence together is refused outright, with an explanation, rather than scaffolded: there'd be no data layer left at all.
If you're not sure on any of these, say "use the recommended defaults" to accept all eleven in one reply — you'll still have seen every question first, since /start never skips showing you the list. That's not a cop-out, it's exactly what the defaults are for.
/start leaves two files at the top of the repo. Secrets.xcconfig.example is committed to git and records which settings exist. Secrets.xcconfig itself is ignored by git and holds the real values — never typed into Swift code, so a public repo can't leak it and each person can point at a different server. Put your server address in API_BASE_URL there. It's not just the one address either: any other per-environment value (a staging URL, a third-party SDK key) belongs there too, added with /add-secret and documented in the checked-in Secrets.xcconfig.example so a new teammate copies it and fills in real values instead of guessing. Leave the real file empty and the app deliberately crashes at launch, naming the file to fix. That's on purpose: a quiet fallback address is how a test build ends up talking to the live server without anyone noticing.
// `//` starts a comment in this file, so a URL's `//` needs the $() escape
API_BASE_URL = https:/$()/api.staging.example.com
In this kind of file, // means "ignore the rest of the line" — and a URL has // in it. So https://host silently becomes just https:: a broken address, with no error message. The $() sits between the two slashes so they're never next to each other while the file is read, then disappears afterward. Odd-looking, but it's a one-time copy-paste, and the check below catches you if you forget. Quoting is not a way around it either — this file format has no string literals and no escape character, so "https://host" truncates the exact same way.
The launch check tests that the value has both a scheme and a host — not merely that some text is present — which is exactly what catches the mistake above. Scripts/check_secrets.sh applies the same rule when you commit. API_BASE_URL is the one name the kit itself reads; the address shown above is a placeholder, and the commented-out API_KEY line in the example file shows the shape a second setting takes, not a setting your project needs — call your own settings whatever your project calls them.
If you answered None to the networking question, this step doesn't exist for you: an offline app gets no RequestBuilder, no APIBaseURL key and nothing to read it with, so there's nothing to fill in and nothing to crash about. The rule is don't generate the reader at all — never make the check lenient.
The Xcode project file is generated, so don't edit it directly: don't add, rename or move files in Xcode's file list on the left — the next time the project regenerates, that change is gone. Edit project.yml instead, or use one of the commands.
Unfamiliar term on this page? Check the glossary.
RequestBuilder and no APIBaseURL key at all — the rule is "don't generate the reader," never "make the check lenient."