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.…