Português (Portuguese)
Appearance
Português (Portuguese)
Appearance
STRUCT
CopyFilesAction Contents
namedestinationsubpathfilesabsolutePath(name:subpath:files:)productsDirectory(name:subpath:files:)wrapper(name:subpath:files:)executables(name:subpath:files:)resources(name:subpath:files:)javaResources(name:subpath:files:)frameworks(name:subpath:files:)sharedFrameworks(name:subpath:files:)sharedSupport(name:subpath:files:)plugins(name:subpath:files:)public struct CopyFilesAction: Codable, Equatable, SendableA build phase action used to copy files.
Copy files actions, represented as target copy files build phases, are useful to associate project files and products of other targets with the target and copies them to a specified destination, typically a subfolder within a product. This action may be used multiple times per target.
name public var name: StringName of the build phase when the project gets generated.
destination public var destination: DestinationDestination to copy files to.
subpath public var subpath: String?Path to a folder inside the destination.
files public var files: [CopyFileElement]Relative paths to the files to be copied.
absolutePath(name:subpath:files:) public static func absolutePath(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for an absolute path.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
productsDirectory(name:subpath:files:) public static func productsDirectory(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the products directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
wrapper(name:subpath:files:) public static func wrapper(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the wrapper directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
executables(name:subpath:files:) public static func executables(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the executables directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
resources(name:subpath:files:) public static func resources(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the resources directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
javaResources(name:subpath:files:) public static func javaResources(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the java resources directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
frameworks(name:subpath:files:) public static func frameworks(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the frameworks directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
sharedFrameworks(name:subpath:files:) public static func sharedFrameworks(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the shared frameworks directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
sharedSupport(name:subpath:files:) public static func sharedSupport(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the shared support directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |
plugins(name:subpath:files:) public static func plugins(
name: String,
subpath: String? = nil,
files: [CopyFileElement]
) -> CopyFilesActionA copy files action for the plugins directory.
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| subpath | Path to a folder inside the destination. |
| files | Relative paths to the files to be copied. |