STRUCT
TargetScript
Contents
- Properties
namescriptorderinputPathsinputFileListPathsoutputPathsoutputFileListPathsbasedOnDependencyAnalysisrunForInstallBuildsOnlyshellPathdependencyFile
- Methods
pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public struct TargetScript: Codable, Equatable, SendableA build phase action used to run a script.
Target scripts, represented as target script build phases in the generated Xcode projects, are useful to define actions to be executed before of after the build process of a target.
Properties
name
public var name: StringName of the build phase when the project gets generated.
script
public var script: ScriptThe script that is to be executed
order
public var order: OrderTarget script order.
inputPaths
public var inputPaths: [FileListGlob]List of input file paths
inputFileListPaths
public var inputFileListPaths: [Path]List of input filelist paths
outputPaths
public var outputPaths: [Path]List of output file paths
outputFileListPaths
public var outputFileListPaths: [Path]List of output filelist paths
basedOnDependencyAnalysis
public var basedOnDependencyAnalysis: Bool?Whether to skip running this script in incremental builds, if nothing has changed
runForInstallBuildsOnly
public var runForInstallBuildsOnly: BoolWhether this script only runs on install builds (default is false)
shellPath
public var shellPath: StringThe path to the shell which shall execute this script.
dependencyFile
public var dependencyFile: Path?The path to the dependency file
Methods
pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
path: Path,
arguments: String...,
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- path: Path to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | Path to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
path: Path,
arguments: [String],
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- path: Path to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | Path to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
path: Path,
arguments: String...,
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- path: Path to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | Path to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
path: Path,
arguments: [String],
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- path: Path to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | Path to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
tool: String,
arguments: String...,
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Tuist will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Tuist will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
tool: String,
arguments: [String],
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Tuist will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Tuist will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
tool: String,
arguments: String...,
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Tuist will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Tuist will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
tool: String,
arguments: [String],
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Tuist will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Tuist will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
script: String,
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- script: The text of the script to run. This should be kept small.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| script | The text of the script to run. This should be kept small. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
script: String,
name: String,
inputPaths: [FileListGlob] = [],
inputFileListPaths: [Path] = [],
outputPaths: [Path] = [],
outputFileListPaths: [Path] = [],
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: Path? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- script: The script to be executed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| script | The script to be executed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
