Português (Portuguese)
Appearance
Português (Portuguese)
Appearance
STRUCT
BuildAction Contents
targetspreActionspostActionsbuildOrderrunPostActionsOnFailurefindImplicitDependenciesbuildAction(targets:preActions:postActions:buildOrder:runPostActionsOnFailure:findImplicitDependencies:)public struct BuildAction: Equatable, Codable, SendableAn 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: BuildOrderDefines the order in which targets are built.
runPostActionsOnFailure public var runPostActionsOnFailure: BoolWhether the post actions should be run in the case of a failure
findImplicitDependencies public var findImplicitDependencies: BoolWhether 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
) -> BuildActionReturns 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. |