Skip to content

번역

이 페이지를 번역하거나 기존 번역을 개선할 수 있습니다.

기여

STRUCT

TargetReference

Contents

  • Properties
    • projectPath
    • targetName
  • Methods
    • init(stringLiteral:)
    • project(path:target:)
    • target(_:)
swift
public struct TargetReference: Hashable, Codable, ExpressibleByStringInterpolation, Sendable

A target reference for a specified project.

The project is specified through the path and should contain the target name.

Properties

projectPath

swift
public var projectPath: Path?

Path to the target's project directory.

targetName

swift
public var targetName: String

Name of the target.

Methods

init(stringLiteral:)

swift
public init(stringLiteral value: String)

Parameters

NameDescription
valueThe value of the new instance.

project(path:target:)

swift
public static func project(path: Path, target: String) -> TargetReference

target(_:)

swift
public static func target(_ name: String) -> TargetReference

Released under the MIT License.