The Swift Package Index logo.Swift Package Index

Build Information

Failed to build postmark-swift, reference v0.2.0 (5a83fb), with Swift 6.3 for Wasm on 21 Apr 2026 09:17:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/aronbudinszky/postmark-swift.git
Reference: v0.2.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/aronbudinszky/postmark-swift
 * tag               v0.2.0     -> FETCH_HEAD
HEAD is now at 5a83fb1 Fix documentation yaml indentation.
Cloned https://github.com/aronbudinszky/postmark-swift.git
Revision (git rev-parse @):
5a83fb142a5508fe0b72843947dbc0e9a92dc153
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/aronbudinszky/postmark-swift.git at v0.2.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/aronbudinszky/postmark-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/15] Compiling PostmarkSwift Client.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                  `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |
 56 |         /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                                             `- error: cannot infer contextual base in reference to member 'default'
 55 |
 56 |         /// The JSON encoder
[4/15] Compiling PostmarkSwift Constants.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                  `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |
 56 |         /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                                             `- error: cannot infer contextual base in reference to member 'default'
 55 |
 56 |         /// The JSON encoder
[5/16] Compiling PostmarkSwift ApiRequestCommunicating.swift
[6/16] Compiling PostmarkSwift ErrorCodeReceiving.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/16] Emitting module PostmarkSwift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
31 |
32 |     /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                  `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |
 56 |         /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                                             `- error: cannot infer contextual base in reference to member 'default'
 55 |
 56 |         /// The JSON encoder
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[8/16] Compiling PostmarkSwift PostmarkClientCompatible.swift
[9/16] Compiling PostmarkSwift RequestResponsePairing.swift
[10/16] Compiling PostmarkSwift ApiClient.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                  `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |
 56 |         /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                                             `- error: cannot infer contextual base in reference to member 'default'
 55 |
 56 |         /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:99:27: error: cannot find 'URLRequest' in scope
 97 |
 98 |             // Create and send request
 99 |             var request = URLRequest(url: url)
    |                           `- error: cannot find 'URLRequest' in scope
100 |             request.httpMethod = method.rawValue
101 |             request.httpBody = try? self.encoder.encode(object)
[11/16] Compiling PostmarkSwift PostmarkSwift.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:34: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                  `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 55 |
 56 |         /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:54:61: error: cannot infer contextual base in reference to member 'default'
 52 |
 53 |         /// The URL Session object
 54 |         private let urlSession = URLSession(configuration: .default)
    |                                                             `- error: cannot infer contextual base in reference to member 'default'
 55 |
 56 |         /// The JSON encoder
/host/spi-builder-workspace/Sources/PostmarkSwift/Network/ApiClient.swift:99:27: error: cannot find 'URLRequest' in scope
 97 |
 98 |             // Create and send request
 99 |             var request = URLRequest(url: url)
    |                           `- error: cannot find 'URLRequest' in scope
100 |             request.httpMethod = method.rawValue
101 |             request.httpBody = try? self.encoder.encode(object)
[12/16] Compiling PostmarkSwift URLSession+Async.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
31 |
32 |     /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:75:38: error: cannot find type 'URLRequest' in scope
73 |     ///
74 |     ///     let (data, response, error) = try await URLSession.shared.asyncDataTask(with: request)
75 |     func asyncDataTask(with request: URLRequest) async throws -> (Data?, URLResponse, Error?) {
   |                                      `- error: cannot find type 'URLRequest' in scope
76 |         return try await withCheckedThrowingContinuation { continuation in
77 |             let task = URLSession.shared.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[13/16] Compiling PostmarkSwift OutgoingEmail.swift
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:30:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
28 | ///
29 | /// Needed because Linux version of Swift does not support async URLSession yet.
30 | extension URLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
31 |
32 |     /// Possible errors
/host/spi-builder-workspace/Sources/PostmarkSwift/Extensions/URLSession+Async.swift:75:38: error: cannot find type 'URLRequest' in scope
73 |     ///
74 |     ///     let (data, response, error) = try await URLSession.shared.asyncDataTask(with: request)
75 |     func asyncDataTask(with request: URLRequest) async throws -> (Data?, URLResponse, Error?) {
   |                                      `- error: cannot find type 'URLRequest' in scope
76 |         return try await withCheckedThrowingContinuation { continuation in
77 |             let task = URLSession.shared.dataTask(with: request) { data, response, error in
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/16] Compiling PostmarkSwift ErrorCodes.swift
[15/16] Compiling PostmarkSwift SendRequest.swift
[16/16] Compiling PostmarkSwift SendResponse.swift
BUILD FAILURE 6.3 wasm