Skip to content

Structure

ConfigResolver

Merges configuration from CLI flags, Shipfile.yml, environment variables, and built-in defaults.

struct ConfigResolver

Overview

Resolution order (highest priority first):

  1. CLI flags

  2. Shipfile.yml values

  3. Environment variables (SHIPIT_* prefix)

  4. Built-in defaults

Note

Inline secrets are the one intentional exception to this order. The raw ASC private key prefers the environment (ASC_PRIVATE_KEY) over the Shipfile (app_store_connect.private_key) so CI secrets win without having to strip the value from a committed Shipfile. See resolvePrivateKeyData(shipfile:).

Usage

let resolver = ConfigResolver()
let config = try await resolver.resolve(
    cliOptions: CLIOptions(scheme: "MyApp"),
    shipfilePath: "./Shipfile.yml"
)

Topics

Initializers

Instance Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype