PBXBuildPhase
public class PBXBuildPhase : PBXContainerItem
An absctract class for all the build phase objects
-
Default build action mask.
Declaration
Swift
public static let defaultBuildActionMask: UInt
-
Element build action mask.
Declaration
Swift
public var buildActionMask: UInt
-
References to build files.
Declaration
Swift
@available(*, deprecated, message: "Use files instead") public var fileReferences: [PBXObjectReference]
-
Build files.
Declaration
Swift
public var files: [PBXBuildFile] { get set }
-
Paths to the input file lists. Note: Introduced in Xcode 10
Declaration
Swift
public var inputFileListPaths: [String]?
-
Paths to the output file lists. Note: Introduced in Xcode 10
Declaration
Swift
public var outputFileListPaths: [String]?
-
Element run only for deployment post processing value.
Declaration
Swift
public var runOnlyForDeploymentPostprocessing: Bool
-
The build phase type of the build phase
Declaration
Swift
public var buildPhase: BuildPhase { get }
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Adds a file to a build phase, creating a proxy build file that points to the given file reference.
Throws
an error if the reference cannot be addedDeclaration
Swift
@available(*, deprecated, renamed: "add(file:﹚") public func addFile(_ reference: PBXObjectReference) throws -> PBXObjectReference
Parameters
reference
reference to the file element.
Return Value
reference to the build file added to the build phase.
-
Adds a file to a build phase, creating a proxy build file that points to the given file element.
Throws
an error if the file cannot be added.Declaration
Swift
public func add(file: PBXFileElement) throws -> PBXBuildFile
Parameters
file
file element to be added to the build phase.
Return Value
proxy build file.
-
Returns the build phase type.
Declaration
Swift
public func type() -> BuildPhase?
Return Value
build phase type.