SwiftSDKError
Errors related to Swift SDKs.
enum SwiftSDKError
Errors related to Swift SDKs.
enum SwiftSDKError
import PackageModel
case invalidBundleArchive(AbsolutePath)
A bundle archive should contain at least one directory with the .artifactbundle
extension.
case invalidPathOrURL(String)
A passed argument is neither a valid file system path nor a URL.
case checksumNotProvided(URL)
Bundles installed from remote URLs require a checksum to be provided.
case checksumInvalid(computed: String, provided: String)
Computed archive checksum does not match the provided checksum.
case invalidInstallation(String)
Couldn’t find the Xcode installation.
case invalidSchemaVersion
The schema version is invalid.
case invalidBundleName(String)
Name of the Swift SDK bundle is not valid.
case noSwiftSDKDecoded(AbsolutePath)
No valid Swift SDKs were decoded from a metadata file.
case pathIsNotDirectory(AbsolutePath)
Path used for storing Swift SDK configuration data is not a directory.
case unserializableMetadata
Swift SDK metadata couldn’t be serialized with the latest serialization schema, potentially because it was deserialized from an earlier incompatible schema version or initialized manually with properties required for initialization missing.
case swiftSDKNotFound(artifactID: String, hostTriple: Triple, targetTriple: Triple)
No configuration values are available for this Swift SDK and target triple.
case swiftSDKBundleAlreadyInstalled(bundleName: String)
A Swift SDK bundle with this name is already installed, can’t install a new bundle with the same name.
case swiftSDKArtifactAlreadyInstalled(installedBundleName: String, newBundleName: String, artifactID: String)
A Swift SDK with this artifact ID is already installed. Can’t install a new bundle with this artifact, installed artifact IDs are expected to be unique.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Escapable
protocol Sendable
var description: String { get }
var interpolationDescription: String { get }
var localizedDescription: String { get }
Retrieve the localized description for this error.