Building an app with AI from scratch is not one prompt. It is the same sequence a careful developer follows (idea, spec, project setup, build, test, release), with an AI agent writing most of the code. The agent is fast. The order of the steps is still your job, and skipping one is what produces the half-finished apps that stall at store review.
This guide walks through that sequence for a cross-platform mobile app built with Flutter and Claude Code. It is the practical companion to our pillar on vibe coding a mobile app.
Step 1: Choose an idea you can finish
Before any code, decide what the app is and who it is for. A good first app does one job for one kind of person. “A habit tracker” is a category. “A habit tracker for night-shift nurses that resets at the end of a shift, not at midnight” is a product.
Check two things early:
- Is anyone asking for it? Read reviews of competing apps and look for repeated complaints. See mining App Store reviews.
- Will the stores accept it? Apple’s guideline 4.3(b) says some categories, such as “dating, flashlight, sound effects, wallpaper, simple timers, and fortune telling,” are well established and Apple “will not accept new submissions unless they offer a meaningfully different or improved experience.”
A simple way to decide is the app idea scorecard. Score it before you build, not after.
Step 2: Write a one-page spec
AI agents fill gaps with guesses. A short spec removes the guesses. Keep it to one page:
- Who it is for and the single problem it solves.
- The core loop: what the user does every time they open the app.
- Screens: a list, with one line each.
- Data: what you store, where, and whether it leaves the phone.
- Money: free, paid, or subscription, and what is behind the paywall.
- Out of scope: what version 1 will not do.
The last item matters most. An agent will happily add a social feed if you let it. Our MVP spec template has a fuller version.
Step 3: Set up the tools
You need a machine, a framework, an agent and store accounts.
The machine. For iOS you need a Mac. Flutter’s iOS setup guide tells you to “install and set up the latest version of Xcode” and to attach your device “to the USB port on your Mac.” Apple’s upcoming requirements page says “Apps uploaded to App Store Connect must be built with Xcode 26 or later using an SDK for iOS 26.”
The framework. Flutter describes itself as “an open-source framework” for building natively compiled apps. One codebase gives you iOS and Android.
The agent. Claude Code is, in Anthropic’s words, “an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.” Install it from a terminal:
curl -fsSL https://claude.ai/install.sh | bash
cd your-project
claude
Anthropic notes that “Most surfaces require a Claude subscription or Anthropic Console account.”
The project rules. Add a CLAUDE.md file at the root. Claude Code reads it “at the start of every session.” Put your architecture, state management choice and naming rules there so every session starts with the same conventions. See writing a CLAUDE.md for Flutter.
Store accounts. Apple says “The Apple Developer Program is 99 USD per membership year.” Google Play charges “a US$25 one-time registration fee.” You can test on your own iPhone without paying: Apple’s membership comparison says a free account works as a “Personal Team,” but provisioning profiles “will expire 7 days from issuance.”
Step 4: Build in thin slices
Do not ask for the whole app. Ask for one working slice at a time, and run the app after each one.
A slice order that works for most apps:
- App shell, navigation and theme tokens.
- The core loop with fake data.
- Real storage for that data.
- Sign-in, only if the app truly needs accounts.
- Settings, including account deletion if you have accounts.
- Paywall and purchases.
- Notifications, widgets and polish.
For each slice, give the agent a target it can check: “the list screen shows saved items after a restart” is testable, “make it better” is not. Anthropic’s cost guide makes the same point: “Specific requests like ‘add input validation to the login function in auth.ts’ let Claude work efficiently with minimal file reads.”
Use plan mode for anything that touches more than a few files. Claude Code docs say plan mode lets Claude explore and propose “an approach for your approval, preventing expensive re-work when the initial direction is wrong.”
Step 5: Test like a reviewer
Apple’s guideline 2.1 says submissions “should be final versions with all necessary metadata and fully functional URLs included” and asks you to “include demo account info (and turn on your back-end service!) if your app includes a login.”
Before you submit, check on a real device:
- every screen with no data, slow network and no network,
- large text sizes,
- purchase, restore and cancel flows,
- sign out, sign back in, delete account,
- the first launch, with permissions denied.
Ask the agent to write widget and integration tests for the core loop, then read the tests. A test that checks nothing is worse than no test. Our mobile app QA checklist lists the rest.
Step 6: Prepare the store listings
Each store needs a name, description, screenshots, privacy details and a privacy policy URL. Two rules to plan around:
- Account deletion. Apple’s 5.1.1(v) says “If your app supports account creation, you must also offer account deletion within the app.”
- Google Play testing. Personal Play accounts created after November 13, 2023 “must run a closed test for their app with a minimum of 12 testers who have been opted in continuously for at least 14 days.” Start this as soon as you have a stable build. See the 12 testers rule.
Step 7: Submit and respond
Apple says App Review typically reviews “at least 50% of submissions in less than 24 hours and 90% in less than 48 hours.” If you are rejected, read the guideline number, fix the cause, and reply in App Store Connect. The most common causes are in App Store rejection reasons and fixes, and the full pre-flight list is in the App Store submission checklist.
Where AI helps most, and least
AI agents are strongest at the middle steps: scaffolding, screens, data layers, tests, and fixing build errors from a pasted log. They are weakest at the steps that need judgment about people: whether the idea is worth building, what to leave out, and whether a reviewer will read your paywall as misleading.
Keep those decisions with you. Write them down in the spec and in CLAUDE.md so the agent follows them instead of inventing its own. MobileKit’s skills package this sequence as gated stages inside Claude Code, but the order works the same if you run it by hand.
Sources read on the day this post was written: Claude Code overview, Claude Code: manage costs, Flutter iOS setup, Flutter, Apple: upcoming requirements, Apple: compare memberships, Apple Developer Program enrollment, App Review Guidelines, Apple: App Review, Google Play: registration fee and Google Play: testing requirements for new personal accounts.