PBXNativeTarget
public final class PBXNativeTarget : PBXTarget
This is the element for a build target that produces a binary content (application or library).
-
init(name:buildConfigurationList:buildPhases:buildRules:dependencies:productInstallPath:productName:product:productType:)
Initializes the native target with its attributes.
Declaration
Swift
public convenience init(name: String, buildConfigurationList: XCConfigurationList? = nil, buildPhases: [PBXBuildPhase] = [], buildRules: [PBXBuildRule] = [], dependencies: [PBXTargetDependency] = [], productInstallPath: String? = nil, productName: String? = nil, product: PBXFileReference? = nil, productType: PBXProductType? = nil)
Parameters
name
target name.
buildConfigurationList
build configuratino list.
buildPhases
build phases.
buildRules
build rules.
dependencies
dependencies.
productInstallPath
product install path.
productName
product name.
product
product file reference.
productType
product type.
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Adds a dependency to the target.
Throws
an error if the dependency cannot be created.Declaration
Swift
public func addDependency(target: PBXNativeTarget) throws -> PBXObjectReference?
Parameters
target
dependency target.
Return Value
target dependency reference.