Русский (Russian)
Appearance
STRUCT
BuildAction
Contents
targets
preActions
postActions
buildOrder
runPostActionsOnFailure
findImplicitDependencies
buildAction(targets:preActions:postActions:buildOrder:runPostActionsOnFailure:findImplicitDependencies:)
public struct BuildAction: Equatable, Codable, Sendable
An action that builds products.
It's initialized with the .buildAction
static method.
targets
public var targets: [TargetReference]
A list of targets to build, which are defined in the project.
preActions
public var preActions: [ExecutionAction]
A list of actions that are executed before starting the build process.
postActions
public var postActions: [ExecutionAction]
A list of actions that are executed after the build process.
buildOrder
public var buildOrder: BuildOrder
Defines the order in which targets are built.
runPostActionsOnFailure
public var runPostActionsOnFailure: Bool
Whether the post actions should be run in the case of a failure
findImplicitDependencies
public var findImplicitDependencies: Bool
Whether Xcode should be allowed to find dependencies implicitly. The default is true
.
buildAction(targets:preActions:postActions:buildOrder:runPostActionsOnFailure:findImplicitDependencies:)
public static func buildAction(
targets: [TargetReference],
preActions: [ExecutionAction] = [],
postActions: [ExecutionAction] = [],
buildOrder: BuildOrder = .dependency,
runPostActionsOnFailure: Bool = false,
findImplicitDependencies: Bool = true
) -> BuildAction
Returns a build action.
.dependency
.true
.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. |
buildOrder | Defines the order in which targets are built. Defaults to .dependency . |
runPostActionsOnFailure | Whether the post actions should be run in the case of a failure |
findImplicitDependencies | Whether Xcode should be allowed to find dependencies implicitly. The default is true . |