Structure
VersionBumper
Reads and writes CFBundleVersion and CFBundleShortVersionString using plutil and xcrun agvtool.
struct VersionBumperUsage
let bumper = VersionBumper(context: context)
let result = try await bumper.bump(options: .init(bump: .build))
print("New build: \(result.buildNumber)")Topics
Structures
struct PreviewA read-only snapshot of what
bump(options:)would produce.
Initializers
init(context: ActionContext)Creates a
VersionBumperbound to the given action context.
Instance Methods
func bump(options: VersionAction.Options) async throws -> VersionAction.ResultBump the version according to the given options.
func preview(options: VersionAction.Options) async throws -> VersionBumper.PreviewPreview what a version bump would produce without writing any files.
func readBuildNumber() async throws -> StringRead the current build number (
CFBundleVersion).func readVersion() async throws -> StringRead the current marketing version (
CFBundleShortVersionString).
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype