Instance Methodswift-package-manager 6.0.1PackageGraph
getSupportedPlatform(for:usingXCTest:)
ResolvedProduct.swift:201func getSupportedPlatform(for platform: Platform, usingXCTest: Bool) -> SupportedPlatform
func getSupportedPlatform(for platform: Platform, usingXCTest: Bool) -> SupportedPlatform
s12PackageGraph15ResolvedProductV20getSupportedPlatform3for11usingXCTest0A5Model0fG0VAG0G0V_SbtF
What are these?5U8AB
import PackageGraph
struct ResolvedProduct
struct Platform
Represents a platform.
@frozen struct Bool
A value type whose instances are either true
or false
.
struct SupportedPlatform
Represents a platform supported by a target.
init(packageIdentity: PackageIdentity, product: Product, modules: IdentifiableSet<ResolvedModule>)
var buildTriple: BuildTriple { get set }
Triple for which this resolved product should be compiled for.
var containsSwiftModules: Bool { get }
True if this product contains Swift modules.
let defaultLocalization: String?
The default localization for resources.
var description: String { get }
var executableModule: ResolvedModule { get throws }
The main executable module of this product.
var id: ID { get }
var isLinkingXCTest: Bool { get }
var modules: IdentifiableSet<ResolvedModule> { get }
The top level modules contained in this product.
var name: String { get }
The name of this product.
let packageIdentity: PackageIdentity
let platformVersionProvider: PlatformVersionProvider
let supportedPlatforms: [SupportedPlatform]
The list of platforms that are supported by this product.
let testEntryPointModule: ResolvedModule?
Executable module for test entry point file.
var type: ProductType { get }
The type of this product.
let underlying: Product
The underlying product.
func recursiveModuleDependencies() throws -> [ResolvedModule]
Returns the recursive module dependencies.
struct ID
Resolved module identity that uniquely identifies it in a resolution graph.
init(packageIdentity: PackageIdentity, product: Product, targets: IdentifiableSet<ResolvedModule>)
var containsSwiftTargets: Bool { get }
var executableTarget: ResolvedModule { get throws }
var targets: IdentifiableSet<ResolvedModule> { get }
var testEntryPointTarget: ResolvedModule? { get }
func recursiveTargetDependencies() throws -> [ResolvedModule]