BuildNumber

iOS build number. As per TidBITS.com:

An Apple build number also has three parts:

  • Major version: Within Apple, the major version is called the build train.

  • Minor version: For iOS and its descendants, the minor version tracks with the minor release; for macOS, it tracks with patch releases.

  • Daily build version: The daily build indicates how many times Apple has built the source code for the release since the previous public release.

  • Optional mastering counter; only relevant for internal builds an betas

While this last bit about the daily build number is phrased somewhat fuzzy, it really is a strictly increasing decimal number.

Constructors

Link copied to clipboard
constructor(buildNumber: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Integer representation of the build number. Converts buildTrain into a hex number, concatenates it with minorVersion radix-36-parsed to a hex number and concatenates it with an end-padded hex-representation of buildVer. This results in a UInt whose MSBs are always set for correct and straight-forward comparison of build numbers. The implementation is inefficient but comprehensible.

Functions

Link copied to clipboard
open operator override fun compareTo(other: BuildNumber): Int
Link copied to clipboard
open override fun toString(): String