import SDGSwift .product(name: "SDGSwift", package: "SDGSwift")
Structure

PackageRepository

A local repository containing a Swift package.

Declaration

struct PackageRepository

Type Methods

clone(_:to:at:shallow:reportProgress:)

Creates a local repository by cloning a remote package.

Initializers

init(at:)

Creates an instance describing an existing package repository.

Properties

location

The location of the repository.

Methods

productsDirectory(releaseConfiguration:)

The directory to which products are built.

resolve(reportProgress:)

Resolves the package, fetching its dependencies.

test(reportProgress:)

Tests the package.

CustomDebugStringConvertible

debugDescription

CustomPlaygroundDisplayConvertible

playgroundDescription

CustomStringConvertible

description

TransparentWrapper

wrappedInstance
import SDGSwiftPackageManager .product(name: "SDGSwiftPackageManager", package: "SDGSwift")

Nested Types

InitializationError

An error encountered while initializing a package repository.

Type Methods

initializePackage(at:named:type:)

Creates a new package by initializing it at the specified URL.

Methods

checkout(_:)

Checks out a branch.

codeCoverageReport(ignoreCoveredRegions:reportProgress:)

Returns the code coverage report for the package.

commitChanges(description:)

Commits existing changes.

ignoredFiles()

Returns the list of files ignored by source control.

manifest()

Returns the package manifest.

package()

Returns the package structure.

packageGraph()

Returns the package graph.

packageWorkspace()

Returns the package workspace.

tag(version:)

Tags a version.

uncommittedChanges()

Checks for uncommitted changes or additions.

import SDGXcode .product(name: "SDGXcode", package: "SDGSwift")

Methods

build(for:reportProgress:)

Builds the package.

codeCoverageReport(on:ignoreCoveredRegions:reportProgress:)

Returns the code coverage report for the package.

generateXcodeProject(reportProgress:)

Generates or refreshes the package’s Xcode project.

scheme()

Returns the main package scheme.

test(on:reportProgress:)

Tests the package.

xcodeProject()

Returns the package’s Xcode project.

Linux macOS