STRUCT
BuildAction
Contents
- Properties
targetspreActionspostActionsbuildImplicitDependenciesrunPostActionsOnFailure
- Methods
init(targets:preActions:postActions:buildImplicitDependencies:runPostActionsOnFailure:)buildAction(targets:preActions:postActions:buildImplicitDependencies:runPostActionsOnFailure:)
swift
public struct BuildAction: Equatable, CodableAn action that builds products.
It's initialized with the .buildAction static method.
Properties
targets
swift
public var targets: [TargetReference]A list of targets to build, which are defined in the project.
preActions
swift
public var preActions: [ExecutionAction]A list of actions that are executed before starting the build process.
postActions
swift
public var postActions: [ExecutionAction]A list of actions that are executed after the build process.
buildImplicitDependencies
swift
public var buildImplicitDependencies: BoolWhether to build a list of implicit dependencies
runPostActionsOnFailure
swift
public var runPostActionsOnFailure: BoolWhether the post actions should be run in the case of a failure
Methods
init(targets:preActions:postActions:buildImplicitDependencies:runPostActionsOnFailure:)
swift
public init(
targets: [TargetReference] = [],
preActions: [ExecutionAction] = [],
postActions: [ExecutionAction] = [],
buildImplicitDependencies: Bool = true,
runPostActionsOnFailure: Bool = false
)buildAction(targets:preActions:postActions:buildImplicitDependencies:runPostActionsOnFailure:)
swift
public static func buildAction(
targets: [TargetReference],
preActions: [ExecutionAction] = [],
postActions: [ExecutionAction] = [],
buildImplicitDependencies: Bool = true,
runPostActionsOnFailure: Bool = false
) -> BuildActionReturns a build action.
- Parameters:
- targets: A list of targets to build, which are defined in the project.
- preActions: A list of actions that are executed before starting the build process.
- postActions: A list of actions that are executed after the build process.
- runPostActionsOnFailure: Whether the post actions should be run in the case of a failure
- Returns: Initialized build action.
Parameters
| Name | Description |
|---|---|
| targets | A list of targets to build, which are defined in the project. |
| preActions | A list of actions that are executed before starting the build process. |
| postActions | A list of actions that are executed after the build process. |
| runPostActionsOnFailure | Whether the post actions should be run in the case of a failure |
