Skip to content

Enumeration

Platform

The target platform for build and distribution workflows.

enum Platform

Overview

Pass --platform ios or --platform android on the CLI, or omit it to let ShipItSwifty auto-detect the platform from project files in the working directory.

Auto-detection rules

Project file detected

Platform

gradlew or build.gradle.kts

.android

*.xcworkspace or *.xcodeproj

.ios

Usage

let context = ActionContext(platform: .ios, ...)
guard context.platform == .ios else {
    throw ShipItError.invalidConfiguration(reason: "ArchiveAction requires iOS platform")
}

Topics

Enumeration Cases

Relationships

Conforms To

  • Swift.CaseIterable
  • Swift.Decodable
  • Swift.Encodable
  • Swift.Equatable
  • Swift.Hashable
  • Swift.RawRepresentable
  • Swift.Sendable
  • Swift.SendableMetatype