By Specita
iOS build number vs version number: what each is for
iOS build number vs version number explained: CFBundleVersion and CFBundleShortVersionString, format rules, a CI numbering scheme, and Flutter setup.

On iOS, the version number is what users see on the App Store, such as 2.4.0. The build number identifies one specific upload of that version, such as 317. Apple stores them in CFBundleShortVersionString and CFBundleVersion. You can upload many builds of version 2.4.0 while you test, then ship whichever one passes.
The two numbers answer different questions. "What are we releasing?" is the version. "Which exact binary is this?" is the build.
Build number vs version number at a glance
| Version number | Build number | |
|---|---|---|
| Info.plist key | CFBundleShortVersionString | CFBundleVersion |
| Xcode build setting | MARKETING_VERSION | CURRENT_PROJECT_VERSION |
| Seen by | App Store users | Your team, testers, crash reports |
| Format | Three period-separated integers | One to three period-separated integers |
| Example | 2.4.0 | 317 |
Apple's references for the version and the build both limit the value to digits and periods. So 2.4.0-beta isn't valid as a version, and neither is a commit hash as a build number. Apple reads each integer as major, minor, and patch. For the build number, you can shorten the value: 10 means 10.0.0. To check a version or build number against these rules, use the free App Version Number Helper.
How the numbers behave in App Store Connect
Each upload has to be identifiable, so a version and build pair can't be reused. If CI uploads 2.4.0 (317) and it fails processing, the next attempt needs a new build number. This trips up pipelines that derive the number from something that doesn't change on a retry.
The build number can move forward through a version's testing cycle:
| Upload | Version | Build | Status |
|---|---|---|---|
| First test | 2.4.0 | 315 | Found a bug, not shipped |
| Second test | 2.4.0 | 316 | Client asked for a change |
| Release candidate | 2.4.0 | 317 | Submitted, released |
| Hotfix | 2.4.1 | 318 | Released |
A single build number that always rises across all versions is the easiest scheme. Anyone can tell which of two builds is newer at a glance, and you never have to think about resets.
A numbering scheme that works in CI
Pick a source for the build number that always goes up. Common options:
- The CI run number, such as
GITHUB_RUN_NUMBERin GitHub Actions. It's simple, but the numbering can change if you move CI systems or workflows, so add an offset if you ever migrate. - A counter stored in your repository or CI variables.
- The latest build number from App Store Connect plus one, read before you build.
Whichever you choose, record which commit produced which build. A build number means little to a person on its own. Being able to go from "users on 317 are crashing" to a commit in one step is the reason to keep the number tidy, and tags make it easier to compare releases on GitHub.
Setting them in Xcode, Flutter, and React Native
In Xcode, set both under the target's General tab, or from the command line:
xcodebuild -scheme MyApp archive \
MARKETING_VERSION=2.4.0 \
CURRENT_PROJECT_VERSION=317
In Flutter, pubspec.yaml holds both, separated by a plus sign:
version: 2.4.0+317
You can override them at build time with flutter build ipa --build-name=2.4.0 --build-number=317. The same values feed Android's version name and version code on an Android build, so the build number has to satisfy both stores. See version code vs version name for the Android rules.
In React Native, the iOS values live in the Xcode project, and Android's live in Gradle. They're easy to let drift apart. With Expo, they live in your app configuration as version and ios.buildNumber.
Why this matters for crash reporting
Crash tools group data by release, usually built from the app identifier, version, and build. If your version and build aren't what your crash tool expects, data lands under the wrong release, or under no release you can find. Our article on Sentry releases not showing data covers this problem.
Decide on one release name format for your team and use it everywhere: the app, your upload step, your crash tool, and your release notes.
Common questions
Can two different versions share a build number? Apple's format rules allow you to restart build numbers for each version, and some teams do. We'd avoid it. A rising build number removes any doubt about which binary is newer.
Should the version match on iOS and Android? They don't have to, but matching versions make support and client conversations easier. "2.4.0 is on both stores" is simpler to explain. Build numbers can differ.
When should the version change? When you plan to submit something new for the App Store. A rejected version can usually keep its number, with a new build. Once a version has been released, your next submission needs a higher one.
Keep one record
Version and build numbers are identifiers, and they only help if they connect to the rest of the story: the commit, the deployment, and the crash data. Specita keeps a version history per component, so an iOS build and its Android counterpart sit under one product, with source changes and reported deliveries attached. See getting started for setup.
Apple guidance checked on November 4, 2026.