Instance Propertyswift-package-manager 6.0.1PackageGraph
containsSwiftTargets
ResolvedProduct.swift:165This declaration has been renamed to ResolvedProduct.containsSwiftModules.
This declaration is deprecated.
var containsSwiftTargets: Bool { get }
This declaration has been renamed to ResolvedProduct.containsSwiftModules.
This declaration is deprecated.
var containsSwiftTargets: Bool { get }
s12PackageGraph15ResolvedProductV20containsSwiftTargetsSbvp
What are these?2QCNT
import PackageGraph
struct ResolvedProduct
var containsSwiftModules: Bool { get }
True if this product contains Swift modules.
@frozen struct Bool
A value type whose instances are either true
or false
.
init(packageIdentity: PackageIdentity, product: Product, modules: IdentifiableSet<ResolvedModule>)
var buildTriple: BuildTriple { get set }
Triple for which this resolved product should be compiled for.
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 getSupportedPlatform(for platform: Platform, usingXCTest: Bool) -> SupportedPlatform
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 executableTarget: ResolvedModule { get throws }
var targets: IdentifiableSet<ResolvedModule> { get }
var testEntryPointTarget: ResolvedModule? { get }
func recursiveTargetDependencies() throws -> [ResolvedModule]