How to Build an iOS Game with Claude: A Practical Playbook
A practical playbook for building an iOS game with Claude Code, from two App Store games: design, a tested core, solvers, skills, automation and App Review.
I've shipped two iPhone games with Claude as my coding partner: Pompa the Chinchompa, a rolling puzzle, and Club Kitten, a cozy cat-hatching game. Every commit in both repositories is co-authored by Claude. Pompa is about 3,100 lines of SwiftUI; Club Kitten is about 10,500 lines plus a Supabase backend.
This is the playbook I'd follow again. It isn't "type a sentence, get a game". Claude writes a great deal of the code, but the decisions, the playtesting and the taste are still yours. What makes the difference is the working setup around it: written design, a tested core, tools that check the numbers, and notes that stop the same mistake twice.



What you need
- A Mac with a recent Xcode and the iOS Simulator, plus one real iPhone for testing.
- An Apple Developer account, which is a paid membership, to use TestFlight and publish. Set it up early; verification can take days.
- Claude Code running in your project folder.
- SwiftUI as the UI framework. Both of my games target iOS 17 and later, and Pompa has no third-party dependencies at all. Fewer dependencies means fewer surprises and a smaller app.
1. Pick a game small enough to finish
Pompa is one mechanic: drag, roll, stop when something blocks you. That's why the repository could go from its first commit to build number 5 in two days. Club Kitten is bigger, but it didn't start big: version 1.0 shipped the core loop, and it grew through 1.1 (cloud save), 1.2 (friends), 1.3 (new places), 1.4 and 1.5 over about a month. Ship the smallest fun version first, and let updates carry the rest.
2. Design first, and write it down
Claude builds what it can see. Before writing code, I put the design in front of it: for Pompa that was a design canvas made with Claude, covering the look, the character and the rules. Then I kept two documents in the repository from day one:
- A README that says what the project is, how it's laid out, and the exact commands to build, test and run it.
- A ROADMAP with checkboxes: done, before submitting, later. It's shared memory between sessions. Claude can read it to see what's next, and you can see at a glance what's left before you submit.
The more concrete the written context, the less you spend correcting guesses.
3. Put the game rules in a pure, testable core
This is the single most valuable architectural habit. Keep the rules in code that knows nothing about the screen. In Pompa, a level is a grid of tiles and rolling is one function:
static func roll(_ level: Level, from: Cell, direction: Direction,
broken: Set<Cell> = [], open: Set<Int> = []) -> RollResult
The SwiftUI views just animate the steps it returns. That has three payoffs when working with Claude:
- Claude can test the rules without a simulator. Pompa has over 60 automated tests covering every tile rule, solvability and saving.
- A rule change shows up immediately as a failing test, instead of as a strange bug three screens later.
- Other tools can reuse the rules. My level-search script mirrors the same logic.
Run the tests from the command line so Claude can run them itself and read the result:
xcodebuild test -project Pompa.xcodeproj -scheme Pompa \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
-derivedDataPath /private/tmp/pompa-dd CODE_SIGNING_ALLOWED=NO
4. Let a solver set the numbers
Anywhere a number decides how the game feels, ask whether code can compute it. In Pompa, par (the fewest rolls to collect every seed and reach the burrow) is never typed by hand: the solver finds it. That guarantees every level is solvable and that three stars is always reachable. Levels came from a search script that generates boards from a spec and keeps only those that pass hard checks: solvable, every mechanic matters, difficulty never drops, no endless loops.
One limit to remember: a search finds valid content, not good content. You still have to play it. Claude can generate and verify a hundred boards in the time it takes you to play three. Budget your own time for the playing.
5. Turn every bug into a written rule: skills
Pompa's level 14 had two arrows facing each other one tile apart. A roll that entered the gap bounced between them for ten seconds, and four levels across the two worlds had the same problem. We fixed the engine, and then I did the part that matters most when working with an AI assistant: I wrote the lesson down as a project skill, a short document Claude reads whenever the task matches its description.
---
name: pompa-levels
description: Use when adding, replacing or checking levels, or when
changing a rule in the engine. Covers how to generate boards and
the checks every level must pass.
---
## Why this skill exists (the level-14 story, in two sentences)
## Hard rules for every level (solvable, no loops, every mechanic matters...)
## Commands (search, scan, test)
## What else to update (expected par in tests, translations, screenshots, build number)
A good skill has the story of the mistake, the hard rules, the exact commands, and the checklist of everything else a change touches. After that, the same mistake can't happen by accident, whether it's me or Claude making the change.
6. Add debug launch arguments
Games are stateful, and testing "level 9 of world two with three hints left" by hand is slow. Ask Claude to add debug-only launch arguments that put the app in any state. Pompa has flags such as -level 9, -screen shop, -seedProgress 12, -demoDrag and -autoSolve (plays the shortest solution); Club Kitten has -demo and -tab lounge. They compile out of Release builds. They make testing fast, and they let a script take your App Store screenshots in every language.
7. Automate release chores
- Screenshots by script. Pompa's script captures five or six shots in 11 languages using those launch arguments.
- Localisation from the start. A String Catalog and a rule, written into the skill, that every new string needs all translations.
- Size and format rules. App Store Connect rejected my first Pompa screenshot set for the medium-display slot (wrong dimensions) and rejects images with an alpha channel. A tiny script flattens PNGs, and the right sizes are now written in the roadmap.
- Build numbers bumped as part of "done" whenever a change touches something players may already have progress in.
8. Ship small versions, and keep a backend only if you need one
Club Kitten's version history reads like a conversation: 1.4 added friend requests and walking cats; 1.4.1 landed a day later to fix an invite stuck on "Waiting…". Small, frequent updates beat one giant release.
Ask early whether you need a server at all. Pompa's app has none: progress is saved on the device and synced through iCloud key-value storage, so the privacy label can say Data Not Collected. Club Kitten needed one for cloud saves and friends, so it uses Supabase with anonymous sign-in (no email or password), and the design leans on safety: friends only, fixed phrases and stickers instead of free text, server-enforced limits, report and block, and in-app account deletion. I wrote all of that up in the Club Kitten story.
9. Treat AI art and animation like any other asset pipeline
Both games use art and animation made with Higgsfield. Generated output usually needs engineering before it feels like part of a game: Pompa's clips needed transparent backgrounds, seamless loops, and a cut into sprite frames for the rolling animation. I also read the tool's terms before shipping, and I told App Review how the assets were made. If you want the workflow, I wrote about connecting Higgsfield to Claude with MCP.
10. Expect App Review to teach you something
- Test on the smallest screen you support, including iPad compatibility mode. Club Kitten was sent back because several screens didn't fit the small window an iPhone app gets on iPad. That lesson went straight into Pompa's pre-submission checklist.
- Write clear answers. When Pompa got an information request, the reply covered what the app is for, who it's for, how to reach the paid content, and exactly which services it uses.
- Keep disclosures accurate: privacy labels, what's collected, and how AI-made assets were produced.
How to work with Claude day to day
- Work in small steps and commit often. It keeps diffs reviewable and rollbacks easy.
- Make it prove it. End tasks with "run the tests and the level scan and show me the result". Don't accept "should work".
- Ask for the test first when fixing a bug, so the fix is pinned in place.
- Describe the player's experience, not the code. "The player felt stuck for ten seconds" gives better fixes than "fix the loop".
- Review what it writes. You're the one who ships it and answers to App Review and to players.
- Update the notes (README, ROADMAP, skills) at the end of every session.
What Claude doesn't do for you
- Decide what's fun. You play, you cut, you tune.
- Own your accounts and legal bits: the developer account, tax and banking, privacy policy accuracy, age ratings.
- Test on your devices and in your hands.
- Replace native speakers. Translations get you in the door; have real speakers review them.
The playbook in one list
- Pick a game small enough to finish; ship updates.
- Write the design, a README and a ROADMAP before you build.
- Keep the rules in a pure core with tests that Claude can run.
- Let solvers and scripts decide the numbers; then play the result.
- Write every hard-won lesson into a project skill.
- Add debug launch arguments for any state.
- Automate screenshots, translations and size checks.
- Decide early whether you need a backend; design for safety if you do.
- Engineer your AI-made assets, read the terms and disclose them.
- Test on the smallest screen, answer App Review clearly, ship small.
See the results
The full build stories, with screenshots, are in How I Built Pompa the Chinchompa and How I Built Club Kitten. If you'd rather build cross-platform with React Native, see the Expo guide. And if you're planning a game or an app and want a second pair of hands, say hello.
Keep reading
-
Building MakeYourHome3D: Turning a Floor Plan into a 3D Home with Claude
How I'm building MakeYourHome3D, a floor-plan-to-3D-home tool, with Claude: the research, the Blender and asset decisions, benchmarks, and what's left before launch.
-
AI-SEO: How to Get Your Site Cited by ChatGPT, Claude and Perplexity
A practical guide to AI-SEO (GEO): how AI assistants find and quote websites, and what to change on your site so you get cited instead of skipped.
-
Create Animated Characters with Claude and the Higgsfield MCP
A practical workflow for consistent animated characters using Claude and Higgsfield's MCP: setup, character bible, keyframes, shots, costs and pitfalls.