The First App Playbook

Everything you need to know to build and sell your first app, in one document.

Get the playbook

The ten steps

Get the playbook

Free, no email. Open it directly.

How to build and ship your first iPhone app with AI

This is everything you need to know to build and sell your first app. You need a coding agent, a plan written down before any code, and the right few services around it.

I made a reel with the ten steps. A reel has no room for the prices, the rules or the order to do it in, so this is the long version.

What I used myself. I built mine with Claude and Supabase. I used Next.js instead of Swift, so the same app works on both Android and iPhone. I did not use RevenueCat, Sentry or PostHog; they are here because I recommend them in the reel. This playbook takes the reel's path: iPhone first, in Swift.

Prices and rules here were checked on 26 November 2026. They change, so check the link before you pay.

Your tech stack, a coding agent

A coding agent writes the code with you, in your project folder. Claude Code comes with Claude Pro, and Codex comes with ChatGPT plans.

Start on the $20 plan. Claude Pro is $20 a month billed monthly; ChatGPT Plus is $20 a month. As the app grows, you may hit that plan's usage limits. Then move up: Claude Max is $100 a month for "5x Pro usage", and ChatGPT Pro starts at $100 a month. In my view that is enough to build your first app.

Write a PRD before any code

"Before writing any code with these agents you need a ... product requirement doc."

A PRD (product requirements document) outlines exactly what the app is, who it is for, the features that come with it, and what it means when the app is done. With one, you and your agent do not build in circles, and you have a solid foundation to start on.

Prompt 1 in the playbook has your agent interview you, one question at a time, and write PRD.md into your folder. If you prefer a ready-made skill, the prd skill in GitHub's awesome-copilot collection does the same job in its own format.

Supabase for your backend

"Use Supabase for your back end which is very user friendly and it plugs straight into your coding agent."

Supabase holds your database, user logins and file storage.

Its free plan is $0, with two active projects; a free project is paused after 1 week with no activity, so check it is running before testers or Apple's reviewers use your app.

The plug is an MCP server: a connection that lets your agent see and work on your Supabase project (Supabase's guide). Supabase's guide warns that connecting an AI agent to your projects carries security risks. So connect one project, not your whole account, and once real users' data is in it, switch the connection to read-only (read_only=true) or remove it. The command is in the playbook, Build order, step 5.

RevenueCat, Sentry and PostHog

"Use RevenueCat for all of your subscriptions so you make sure that you get paid. Use Sentry to see when your app crashes and use PostHog to see and monitor what your users are actually doing."

Prompt 3 in the playbook adds them one at a time, once your first features work.

Build it in Swift, for iOS first

Swift is Apple's own programming language "for all Apple platforms", and SwiftUI is Apple's way to build the screens. You write and run it in Xcode, which is free and needs a Mac with an Apple M1 chip or later, on macOS 26.6 or later.

Why iOS first: go where the money is. In 2024, iOS made up about a quarter of App Store and Google Play downloads (28.3 of 110 billion, 26%), but about 72% of the money people spent in apps on the two stores was spent on the App Store ($91.6 of $127 billion), according to Appfigures, via TechCrunch.

Prompt 2 in the playbook builds version 1 from your PRD, one feature at a time, and keeps a PROGRESS.md so you can stop and come back.

Get an Apple developer account

Join the Apple Developer Program for $99 a year (prices may vary by region). It is what lets you test with TestFlight and publish on the App Store.

Test with real users on TestFlight

"Nothing will replace feedback that you can get from a real user."

TestFlight lets you send your app to testers before it is public:

  • up to 100 people on your own team, and up to 10,000 external testers by email or a public link (Apple);
  • your first build for external testers goes through Apple's review first (Apple);
  • each build can be tested for up to 90 days (App Store Connect Help).

Give it to a handful of people who match the "who it is for" in your PRD. Watch Sentry and PostHog while they use it, and ask them what confused them.

Join the Small Business Program

Apple's App Store Small Business Program gives "a reduced commission rate of 15% on paid apps and Apple In-App Purchases". Without it, on a subscription you keep 70% in a subscriber's first year, so Apple takes 30%; in the program you keep 85% from the start. After a subscriber's first year you keep 85% either way.

  • Who qualifies: developers new to the App Store, and developers who "made up to 1 million USD in proceeds in the prior calendar year for all their apps" (Apple).
  • It is not automatic: you enrol. You need to be the Account Holder, accept the latest Paid Apps agreement in App Store Connect, and list any associated developer accounts (Apple).

Apply as soon as you have joined the developer program: Apple adjusts your proceeds 15 days after the end of the fiscal calendar month in which your enrolment is approved (Apple).

Before you submit, run the review skill

app-store-review is a free, open-source (MIT) skill that checks your app's code against Apple's App Store Review Guidelines. Its README says it is current through Apple's update of October 16, 2026, which was still the latest update on 26 November 2026 (Apple). It supports Swift, Objective-C, React Native and Expo apps, and works with Claude Code, Codex and other agents.

It flags the potential rejection issues it finds, with code references, such as private API use, secrets in the code, an account you can create but not delete, or purchases with no "restore" button (README).

Prompt 4 in the playbook has the install lines and the prompt. Run it twice: before your first build goes to external testers on TestFlight, and again right before you submit.

Know its limit: it reads your code, so it cannot see everything App Review looks at, and a clean result is not an approval.

Submit, and your first app is live

Apple also needs a privacy policy, linked in App Store Connect and inside the app (guideline 5.1.1(i)); the playbook, Build order, step 8, has how. Fix what the review found, run it again, then submit in App Store Connect with clear review notes for Apple, including a test login if your app has one. If Apple asks for a change, fix it, run the review skill again and resubmit.

What it costs

So the least it costs to reach the App Store is $20 a month plus Apple's $99 a year (more if you move to a $100 plan), if you already have a Mac that runs Xcode.

The four prompts

Prompt 1: Write your PRD before any code

What it does: your coding agent interviews you about the app, then writes a product requirements document (PRD) into your project folder as PRD.md. The PRD says what the app is, who it is for, the features in the first version, and what "done" means. Prompts 2, 3 and 4 tell the agent to read this file first, so you and your agent build toward the same thing.

When to use it: first, in your project folder, before the agent writes any code.

Fill in: the one line in [BRACKETS]. Leave the rest as it is.

I want to build my first app, for iPhone first, in Swift. Before you write any code, interview me and write a product requirements document (PRD).

My idea in one line: [WHAT THE APP DOES AND FOR WHOM]

How to interview me:
- Ask one question at a time, in plain words, with two or three example answers when a question is abstract.
- Cover these, in this order: the problem it solves; who it is for (one person, described); what they do today instead; the three to five features of the first version; what is out of scope for now; how it makes money (free, one-time price, or subscription); whether users log in and what data the app stores; what "done" means for version 1 (a short list I can check).
- We are building for iPhone first. If I want Android too, note it under out of scope for later.
- If I am unsure, suggest the simplest option and say why in one line.
- Never invent facts about me, my users or my market. If I do not know, write it as an open question.

When the interview is finished, write PRD.md in this folder with these sections:
1. One-line summary
2. The problem, and what they do today instead
3. Who it is for
4. Version 1 features, each with a one-line user story ("As a ..., I want ..., so that ...")
5. Out of scope for version 1
6. How it makes money
7. Logins and data stored
8. Done means (a checklist)
9. Open questions

Show me the PRD and ask "anything to change?" before we start building. From then on, read PRD.md before each new feature, and tell me if a request would go outside it.

Prefer a ready-made skill? The prd skill in GitHub's awesome-copilot collection does the same job in its own format. With the GitHub CLI (version 2.90.0 or later): gh skills install github/awesome-copilot prd.

Prompt 2: Start building from your PRD

What it does: your coding agent sets up git, reads PRD.md and builds version 1 one feature at a time, checking each one before the next, and keeps a PROGRESS.md so you can stop and come back.

When to use it: after Prompt 1 and after you have made the Xcode project (Build order, step 3). Open your agent in the project folder, the one that holds PRD.md.

Fill in: nothing.

Read PRD.md in this folder. We are building version 1 of this app for iPhone, in Swift and SwiftUI. The Xcode project is in a subfolder of this folder.

Before any feature:
- Write the working rules below into a file in this folder that you read at the start of every session (CLAUDE.md for Claude Code, AGENTS.md for Codex), so they still hold if I close you and come back.
- If this folder is not a git repository yet, set one up here (the folder with PRD.md). If the Xcode subfolder already has its own .git folder, tell me and ask before changing it. Add a .gitignore for Xcode projects (xcuserdata, build folders, .DS_Store) plus Secrets.xcconfig, .env, *.p8 and .sentryclirc. Make a first commit, and check that the Xcode project files are in it.
- Keys: a key that a service makes for apps (for example Supabase's publishable key, RevenueCat's public SDK key) can ship inside the app, but put it in Secrets.xcconfig, not in the code. A secret or admin key (for example Supabase's secret key) never goes into the app or into git at all: tell me if a feature seems to need one: that call belongs on a server (for example a Supabase Edge Function), never in the app, not even as an environment variable. Key files I download (for example .p8 files) stay outside this folder.

How to work:
- Version 1 keeps its data on the phone for now. No accounts, backend, payments or analytics yet: we add those later, one at a time.
- List the version 1 features from PRD.md in the order you suggest building them, and wait for my yes.
- Build one feature at a time. Before each one, say in one or two plain sentences what you will change. After each one, build the project and run the tests, fix what fails, commit, and tell me how to try it in the simulator.
- Stay inside PRD.md. If I ask for something outside it, say so and ask whether to add it to the PRD first.
- Keep PROGRESS.md in this folder: the feature we are on, what is done, what is next, decisions we made. Update it after every feature. If I come back later and say "read PROGRESS.md and carry on", pick up from there.
- Never delete or overwrite a file I made without asking.
- If you are not sure how an Apple framework works, say so and check Apple's documentation rather than guessing.

Prompt 3: Add the services (backend, payments, crashes, analytics)

What it does: your coding agent adds each service the playbook recommends, one at a time, using that service's own setup guide, and tells you which accounts and keys you need to create yourself.

When to use it: once the first features work (Prompt 2), after you have connected Supabase to your agent and restarted it (Build order, step 5), and after the Paid Apps Agreement, banking, tax and the app record are done in App Store Connect (Build order, step 6). RevenueCat purchases do not work before that.

Fill in: delete the lines for any service you do not need yet.

Read PRD.md and PROGRESS.md. Now add these services to the app, one at a time, in this order. For each one: tell me what it is for in one line, tell me exactly which account or key I need to create myself (I do the sign-ups and payments, never you), then follow the service's own current setup guide for iOS and Swift Package Manager, build, test, commit, and update PROGRESS.md.

1. Supabase, as the backend: the tables, logins and storage the PRD needs. Use the Supabase connection you have in this session; if you do not see it, stop and tell me. Turn on row level security for every table and explain each policy in one line. If the app has accounts, add a way to delete the account from inside the app. If I want Google or another social login, tell me what Apple's guideline 4.8 asks for first.
2. RevenueCat, for subscriptions and in-app purchases: the products from the PRD, a paywall screen, and a "restore purchases" button.
3. Sentry, to see when the app crashes.
4. PostHog, to see what users do: only the few events that tell me whether the PRD's features are used. Nothing personal in event names or properties.

Keys follow the rule in CLAUDE.md or AGENTS.md: app keys go in Secrets.xcconfig, secret keys never go into the app or git. If a step needs something only I can do in App Store Connect or a service's dashboard, stop and tell me what to click.

Prompt 4: Check your app against Apple's review guidelines

What it does: with the free app-store-review skill installed, your coding agent reads your app's code against Apple's App Store Review Guidelines and lists the potential rejection issues it finds, with code references, so you can fix them before Apple's review does.

When to use it: twice. Before you send your first build to external testers on TestFlight (Apple reviews that build too), and again right before you submit. Run it again after you fix anything.

Install the skill first (pick the line for your agent, adapted from the skill's README):

  • Claude Code, typed inside Claude Code: /plugin marketplace add safaiyeh/app-store-review-skill, then /plugin install app-store-review@app-store-review

    /plugin marketplace add safaiyeh/app-store-review-skill
    /plugin install app-store-review@app-store-review
  • Codex, in your terminal: codex plugin marketplace add safaiyeh/app-store-review-skill, then in Codex run /plugins and install app-store-review

    codex plugin marketplace add safaiyeh/app-store-review-skill
  • Other agents that support skills, in a terminal in your project folder: DO_NOT_TRACK=1 npx skills@latest add safaiyeh/app-store-review-skill. It needs Node.js 22.20 or later. It asks which agents to install for; pick yours. DO_NOT_TRACK=1 turns off the installer's anonymous usage data. It adds a .agents folder and a skills-lock.json file to your project (and a .claude/skills link if you pick Claude Code); that is expected.

    DO_NOT_TRACK=1 npx skills@latest add safaiyeh/app-store-review-skill

Then start a new session in your project folder, so the agent sees the skill, and paste this.

Fill in: nothing.

Read PRD.md. Then review this app for App Store compliance, using the app-store-review skill.

Then:
- List the findings from most to least serious, each with the guideline number, the file and line, and one plain sentence on why Apple could reject it.
- For each finding, suggest the smallest fix, and wait for my yes before you change any code. A fix never puts a secret key into the app, not even as an environment variable: a call that needs one moves to a server (for example a Supabase Edge Function).
- After I approve fixes and you make them, build the app, run the tests, commit, and run the review again.
- Tell me which checks you could not do from the code alone (for example App Store Connect metadata, the privacy policy link, screenshots, or the review notes), so I can check those myself.

Good to know: it reads your code, so it cannot see everything App Review looks at, and a clean result is not an approval. Apple's App Store Review Guidelines are the final word. If the skill misses something, it may offer to draft a feedback issue for its GitHub page; its README says it asks first and shows you the text, so you can say no.

Sources

  1. Claude pricing (checked 2026-11-26)
  2. Codex pricing (checked 2026-11-26)
  3. Xcode on the Mac App Store (checked 2026-11-26)
  4. Apple Developer Program (checked 2026-11-26)
  5. Apple Developer Program enrollment (checked 2026-11-26)
  6. Supabase pricing (checked 2026-11-26)
  7. Supabase MCP guide (checked 2026-11-26)
  8. The prd skill, github/awesome-copilot (checked 2026-11-26)
  9. RevenueCat (checked 2026-11-26)
  10. RevenueCat pricing (checked 2026-11-26)
  11. RevenueCat iOS guide (checked 2026-11-26)
  12. Sentry for iOS (checked 2026-11-26)
  13. Sentry pricing (checked 2026-11-26)
  14. PostHog iOS docs (checked 2026-11-26)
  15. PostHog pricing (checked 2026-11-26)
  16. Swift (checked 2026-11-26)
  17. Appfigures 2024, via TechCrunch (checked 2026-11-26)
  18. TestFlight (checked 2026-11-26)
  19. TestFlight overview, App Store Connect Help (checked 2026-11-26)
  20. App Store Small Business Program (checked 2026-11-26)
  21. Auto-renewable subscriptions (checked 2026-11-26)
  22. App Store Review Guidelines (checked 2026-11-26)
  23. The app-store-review skill, README at commit 7197cff (checked 2026-11-26)

Want help building your first app? Book a call with Velorum.

Book a call