The Swift Package Index logo.Swift Package Index

Build Information

Failed to build WiremockClient, reference 3.0.0 (91c3e2), with Swift 6.2 for Linux on 20 Jun 2025 00:29:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mobileforming/WiremockClient.git
Reference: 3.0.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/mobileforming/WiremockClient
 * tag               3.0.0      -> FETCH_HEAD
HEAD is now at 91c3e2b Merge pull request #37 from mobileforming/TR-deployment-target-update
Cloned https://github.com/mobileforming/WiremockClient.git
Revision (git rev-parse @):
91c3e2be7cfef270584c2d822c0886781d29f62d
SUCCESS checkout https://github.com/mobileforming/WiremockClient.git at 3.0.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mobileforming/WiremockClient.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/19] Compiling WiremockClient RequestPattern.swift
[4/19] Compiling WiremockClient ResponseDefinition.swift
[5/21] Compiling WiremockClient WiremockClientNetworkService.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
 9 |
10 | protocol SynchronousURLSession {
11 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
   |                                               `- error: cannot find type 'URLRequest' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
16 |         var data: Data?
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |
37 |     @DebugOverridable
38 |     var urlSession: SynchronousURLSession = URLSession.shared
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
39 |
40 |     func makeSynchronousRequest(with endpoint: Endpoint) throws {
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
12 |     var requestMethod: RequestMethod { get }
13 |     var body: Data? { get }
14 |     var urlRequest: URLRequest? { get }
   |                     `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
 89 |     }
 90 |
 91 |     var urlRequest: URLRequest? {
    |                     `- error: cannot find type 'URLRequest' in scope
 92 |         guard let url = URL(string: "\(WiremockClient.baseURL)/\(path)") else {
 93 |             return nil
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:95:26: error: cannot find 'URLRequest' in scope
 93 |             return nil
 94 |         }
 95 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 96 |         urlRequest.httpMethod = requestMethod.rawValue
 97 |         urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:15:47: error: cannot find type 'URLRequest' in scope
13 |
14 | extension URLSession: SynchronousURLSession {
15 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
   |                                               `- error: cannot find type 'URLRequest' in scope
16 |         var data: Data?
17 |         var error: Error?
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[6/21] Compiling WiremockClient WiremockEndpoint.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
 9 |
10 | protocol SynchronousURLSession {
11 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
   |                                               `- error: cannot find type 'URLRequest' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
16 |         var data: Data?
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |
37 |     @DebugOverridable
38 |     var urlSession: SynchronousURLSession = URLSession.shared
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
39 |
40 |     func makeSynchronousRequest(with endpoint: Endpoint) throws {
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
12 |     var requestMethod: RequestMethod { get }
13 |     var body: Data? { get }
14 |     var urlRequest: URLRequest? { get }
   |                     `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
 89 |     }
 90 |
 91 |     var urlRequest: URLRequest? {
    |                     `- error: cannot find type 'URLRequest' in scope
 92 |         guard let url = URL(string: "\(WiremockClient.baseURL)/\(path)") else {
 93 |             return nil
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:95:26: error: cannot find 'URLRequest' in scope
 93 |             return nil
 94 |         }
 95 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
 96 |         urlRequest.httpMethod = requestMethod.rawValue
 97 |         urlRequest.httpBody = body
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:15:47: error: cannot find type 'URLRequest' in scope
13 |
14 | extension URLSession: SynchronousURLSession {
15 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
   |                                               `- error: cannot find type 'URLRequest' in scope
16 |         var data: Data?
17 |         var error: Error?
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[7/21] Compiling WiremockClient UrlPattern.swift
[8/21] Compiling WiremockClient DebugOverridable.swift
[9/21] Compiling WiremockClient StubMapping.swift
[10/21] Compiling WiremockClient Transformer.swift
[11/21] Compiling WiremockClient MatchCondition.swift
[12/21] Compiling WiremockClient RequestMapping.swift
[13/21] Compiling WiremockClient Endpoint.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
12 |     var requestMethod: RequestMethod { get }
13 |     var body: Data? { get }
14 |     var urlRequest: URLRequest? { get }
   |                     `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[14/21] Compiling WiremockClient NetworkService.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
12 |     var requestMethod: RequestMethod { get }
13 |     var body: Data? { get }
14 |     var urlRequest: URLRequest? { get }
   |                     `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[15/21] Compiling WiremockClient RequestMethod.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
12 |     var requestMethod: RequestMethod { get }
13 |     var body: Data? { get }
14 |     var urlRequest: URLRequest? { get }
   |                     `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
[16/21] Compiling WiremockClient WiremockClient.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |
37 |     @DebugOverridable
38 |     var urlSession: SynchronousURLSession = URLSession.shared
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
39 |
40 |     func makeSynchronousRequest(with endpoint: Endpoint) throws {
[17/21] Compiling WiremockClient WiremockClientError.swift
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |
37 |     @DebugOverridable
38 |     var urlSession: SynchronousURLSession = URLSession.shared
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
39 |
40 |     func makeSynchronousRequest(with endpoint: Endpoint) throws {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/21] Compiling WiremockClient LoggedRequest.swift
[19/21] Compiling WiremockClient LoggedRequestResponse.swift
[20/21] Compiling WiremockClient MappingsResponse.swift
[21/21] Emitting module WiremockClient
/host/spi-builder-workspace/Sources/WiremockClient/Networking/Endpoint.swift:14:21: error: cannot find type 'URLRequest' in scope
12 |     var requestMethod: RequestMethod { get }
13 |     var body: Data? { get }
14 |     var urlRequest: URLRequest? { get }
   |                     `- error: cannot find type 'URLRequest' in scope
15 | }
16 |
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:11:47: error: cannot find type 'URLRequest' in scope
 9 |
10 | protocol SynchronousURLSession {
11 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error>
   |                                               `- error: cannot find type 'URLRequest' in scope
12 | }
13 |
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:14:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
15 |     func executeSynchronousRequest(_ request: URLRequest) -> Result<Data?, Error> {
16 |         var data: Data?
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockClientNetworkService.swift:38:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 |
37 |     @DebugOverridable
38 |     var urlSession: SynchronousURLSession = URLSession.shared
   |                                                        `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
39 |
40 |     func makeSynchronousRequest(with endpoint: Endpoint) throws {
/host/spi-builder-workspace/Sources/WiremockClient/Networking/WiremockEndpoint.swift:91:21: error: cannot find type 'URLRequest' in scope
 89 |     }
 90 |
 91 |     var urlRequest: URLRequest? {
    |                     `- error: cannot find type 'URLRequest' in scope
 92 |         guard let url = URL(string: "\(WiremockClient.baseURL)/\(path)") else {
 93 |             return nil
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
BUILD FAILURE 6.2 linux