STRUCT
RunAction
Contents
- Properties
configurationattachDebuggercustomLLDBInitFilepreActionspostActionsexecutableargumentsoptionsdiagnosticsOptionsexpandVariableFromTargetlaunchStylefilePath
- Methods
init(configuration:attachDebugger:customLLDBInitFile:preActions:postActions:executable:filePath:arguments:options:diagnosticsOptions:expandVariableFromTarget:launchStyle:)runAction(configuration:attachDebugger:customLLDBInitFile:preActions:postActions:executable:arguments:options:diagnosticsOptions:expandVariableFromTarget:launchStyle:)
public struct RunAction: Equatable, CodableAn action that runs the built products.
It's initialized with the .runAction static method.
Properties
configuration
public var configuration: ConfigurationNameIndicates the build configuration the product should run with.
attachDebugger
public var attachDebugger: BoolWhether a debugger should be attached to the run process or not.
customLLDBInitFile
public var customLLDBInitFile: FilePath?The path of custom lldbinit file.
preActions
public var preActions: [ExecutionAction]A list of actions that are executed before starting the run process.
postActions
public var postActions: [ExecutionAction]A list of actions that are executed after the run process.
executable
public var executable: TargetReference?The name of the executable or target to run.
arguments
public var arguments: Arguments?Command line arguments passed on launch and environment variables.
options
public var options: RunActionOptionsList of options to set to the action.
diagnosticsOptions
public var diagnosticsOptions: SchemeDiagnosticsOptionsList of diagnostics options to set to the action.
expandVariableFromTarget
public var expandVariableFromTarget: TargetReference?A target that will be used to expand the variables defined inside Environment Variables definition (e.g. $SOURCE_ROOT)
launchStyle
public var launchStyle: LaunchStyleThe launch style of the action
filePath
public var filePath: FilePath?Path to the runnable target
Methods
init(configuration:attachDebugger:customLLDBInitFile:preActions:postActions:executable:filePath:arguments:options:diagnosticsOptions:expandVariableFromTarget:launchStyle:)
public init(
configuration: ConfigurationName,
attachDebugger: Bool = true,
customLLDBInitFile: FilePath? = nil,
preActions: [ExecutionAction] = [],
postActions: [ExecutionAction] = [],
executable: TargetReference? = nil,
filePath: FilePath? = nil,
arguments: Arguments? = nil,
options: RunActionOptions = .options(),
diagnosticsOptions: SchemeDiagnosticsOptions = .options(),
expandVariableFromTarget: TargetReference? = nil,
launchStyle: LaunchStyle = .automatically
)runAction(configuration:attachDebugger:customLLDBInitFile:preActions:postActions:executable:arguments:options:diagnosticsOptions:expandVariableFromTarget:launchStyle:)
public static func runAction(
configuration: ConfigurationName = .debug,
attachDebugger: Bool = true,
customLLDBInitFile: FilePath? = nil,
preActions: [ExecutionAction] = [],
postActions: [ExecutionAction] = [],
executable: TargetReference? = nil,
arguments: Arguments? = nil,
options: RunActionOptions = .options(),
diagnosticsOptions: SchemeDiagnosticsOptions = .options(performanceAntipatternCheckerEnabled: false),
expandVariableFromTarget: TargetReference? = nil,
launchStyle: LaunchStyle = .automatically
) -> RunActionReturns a run action.
- Parameters:
- configuration: Indicates the build configuration the product should run with.
- attachDebugger: Whether a debugger should be attached to the run process or not.
- preActions: A list of actions that are executed before starting the run process.
- postActions: A list of actions that are executed after the run process.
- executable: The name of the executable or target to run.
- arguments: Command line arguments passed on launch and environment variables.
- options: List of options to set to the action.
- diagnosticsOptions: List of diagnostics options to set to the action.
- expandVariableFromTarget: A target that will be used to expand the variables defined inside Environment Variables definition (e.g. $SOURCE_ROOT). When nil, it does not expand any variables.
- launchStyle: The launch style of the action
- Returns: Run action.
Parameters
| Name | Description |
|---|---|
| configuration | Indicates the build configuration the product should run with. |
| attachDebugger | Whether a debugger should be attached to the run process or not. |
| preActions | A list of actions that are executed before starting the run process. |
| postActions | A list of actions that are executed after the run process. |
| executable | The name of the executable or target to run. |
| arguments | Command line arguments passed on launch and environment variables. |
| options | List of options to set to the action. |
| diagnosticsOptions | List of diagnostics options to set to the action. |
| expandVariableFromTarget | A target that will be used to expand the variables defined inside Environment Variables definition (e.g. $SOURCE_ROOT). When nil, it does not expand any variables. |
| launchStyle | The launch style of the action |
