fastlane: ship your iPhone and Android app with one command
The short version
fastlane is a free, open-source tool (MIT licence, over 42,000 stars on GitHub) that automates building and releasing iOS and Android apps. You write your release steps once in a file called a Fastfile. After that, one command builds your app, signs it and uploads it: fastlane beta sends a build to your TestFlight testers, and the Android lane sends one to Google Play.
It runs on your own machine, so there is no service to sign up for. The tool is free. Apple's developer programme and a Google Play developer account are the stores' own fees, and fastlane does not change those.
Links: github.com/fastlane/fastlane and docs.fastlane.tools.
| What you want | The fastlane piece | Example |
|---|---|---|
| Put a build in front of testers (iOS) | upload_to_testflight |
fastlane beta |
| Put a build in front of testers (Android) | upload_to_play_store |
fastlane android beta |
| Ship to the App Store | upload_to_app_store |
fastlane release |
| Make store screenshots in many languages | capture_screenshots |
fastlane screenshots |
| Upload the store text with the build | fastlane/metadata/ files |
name.txt, description.txt |
Copy these prompts
Paste them into Claude Code (or any AI that can see your project). None of them need your passwords or keys.
1. Set fastlane up in my project
Look at my mobile project (Flutter, React Native, Swift or Kotlin) and set up fastlane. Tell me the exact install command for my machine, where to run `fastlane init` (for Flutter that is inside ios/ and inside android/), and write a Fastfile with one beta lane per platform. The iOS lane should bump the build number, build the app and upload to TestFlight. The Android lane should build the bundle and upload to the internal testing track. Do not put any key, password or token in a file; tell me which values I have to set as environment variables and where to get them.
2. Review my release steps
Read my Fastfile and my release notes or checklist. List every manual step I still do by hand to ship a build (version bump, signing, upload, release notes, screenshots). For each one say whether a fastlane action already does it, and write the lane that would replace it. Flag anything in the Fastfile that looks like a secret.
3. Automate my store screenshots
My app should have store screenshots in these languages: [list]. Set up fastlane screenshots (capture_screenshots / snapshot) so one command takes them on the simulator sizes the App Store needs. Show me the UI test I need to add, the Snapfile, and how the images end up in fastlane/screenshots/<language>/ ready for upload_to_app_store.
Why it matters
Shipping a build by hand is a dozen clicks in Xcode, App Store Connect, Android Studio and the Play Console, and any of them can go wrong. Written once as lanes, the same steps run the same way every time, on your laptop or on a CI server. That is why a one-person app can release as often as a team.
The beta lane
This is the iOS beta lane from the fastlane docs. Three actions in order:
lane :beta do
increment_build_number
build_app
upload_to_testflight
end
You run it with fastlane beta. It bumps the build number, builds the app and uploads it to TestFlight so your testers get it.
Setup checklist
- Install it:
brew install fastlane(orgem install fastlane) on a Mac with Xcode installed. - In your project folder run
fastlane init. For a Flutter app, run it insideios/and again insideandroid/. - Add one beta lane per platform to the Fastfile (prompt 1 above writes it for you).
- iOS: create an App Store Connect API key in App Store Connect and let fastlane use it through the
app_store_connect_api_keyaction, so uploads do not ask for your Apple password. - Android: create a Google Play service account, give it release access in the Play Console, and point fastlane at its JSON key.
- Keep every key file out of git. Add it to
.gitignorebefore the first commit. - Run
fastlane betaonce by hand and watch the build appear in TestFlight or on the Play internal track.
If you are building
- Flutter: the Flutter docs have a continuous delivery guide that uses fastlane: docs.flutter.dev/deployment/cd. Build with
flutter build ipaorflutter build appbundleinside the lane, then upload. - Store screenshots:
capture_screenshotstakes the screenshots on all the simulators you list, in all the languages you list. The docs describe it as capturing hundreds of screenshots in multiple languages on all simulators. Frame them withframeitif you want device frames. - Store text: put
name.txt,subtitle.txt,description.txtandkeywords.txtinfastlane/metadata/<language>/.upload_to_app_storeuploads the text and the screenshots with the build. Android metadata lives infastlane/metadata/android. - Use it with CI: the same lanes run on a CI server, so you can move from "I run it on my laptop" to "it runs on every merge" without rewriting anything.
- Want the checklist for the store listing itself? App Store checklist.
Run this on your codebase
Review my mobile project as a release pipeline. Tell me every step it takes today from "code merged" to "build in testers' hands" and to "live in the store", which of them are manual, and which fastlane lanes would replace them. Write the Fastfile for the first two. List the keys and accounts I must create myself, and where each one goes (environment variable, not a file in git). Finish with the one step worth automating first and how I will know it worked.