BuildResult
Represents the results of running a build.
struct BuildResultRepresents the results of running a build.
struct BuildResultimport PackagePluginstruct PackageManagerProvides specialized information and services from the Swift Package Manager or an IDE that supports Swift Packages. Different plugin hosts implement the functionality in whatever way is appropriate for them, but should preserve the same semantics described here.
func build(_ subset: PackageManager.BuildSubset, parameters: PackageManager.BuildParameters) throws -> PackageManager.BuildResult Performs a build of all or a subset of products and targets in a package.
func getSymbolGraph(for target: any Target, options: PackageManager.SymbolGraphOptions) throws -> PackageManager.SymbolGraphResult Return a directory containing symbol graph files for the given target and options. If the symbol graphs need to be created or updated first, they will be. SwiftPM or an IDE may generate these symbol graph files in any way it sees fit.
func test(_ subset: PackageManager.TestSubset, parameters: PackageManager.TestParameters) throws -> PackageManager.TestResult Runs all or a specified subset of the unit tests of the package, after an incremental build if necessary (the same as swift test does).
enum BuildConfigurationRepresents an overall purpose of the build, which affects such things as optimization and generation of debug symbols.
enum BuildLogVerbosityRepresents the amount of detail in a build log.
struct BuildParametersParameters and options to apply during a build.
enum BuildSubsetSpecifies a subset of products and targets of a package to build.
struct SymbolGraphOptionsRepresents options for symbol graph generation.
struct SymbolGraphResultRepresents the result of symbol graph generation.
struct TestParametersParameters that control how the tests are run.
struct TestResultRepresents the result of running unit tests.
enum TestSubsetSpecifies what tests in a package to run.
var builtArtifacts: [PackageManager.BuildResult.BuiltArtifact]The artifacts built from the products in the package. Intermediates such as object files produced from individual targets are not listed.
var logText: StringLog output (the verbatim text in the initial proposal).
var succeeded: BoolWhether the build succeeded or failed.
struct BuiltArtifactRepresents a single artifact produced during a build.