Build Information
Failed to build WiremockClient, reference 3.0.0 (91c3e2), with Swift 6.1 for Wasm on 28 May 2025 12:54:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
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: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/mobileforming/WiremockClient.git
https://github.com/mobileforming/WiremockClient.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
],
"manifest_display_name" : "WiremockClient",
"name" : "WiremockClient",
"path" : "/host/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "WiremockClient",
"targets" : [
"WiremockClient"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WiremockClientTests",
"module_type" : "SwiftTarget",
"name" : "WiremockClientTests",
"path" : "Tests/WiremockClientTests",
"sources" : [
"IntegrationTests.swift",
"ResponseDefinitionTests.swift",
"StubMappingTests.swift",
"WiremockClientErrorTests.swift",
"WiremockClientNetworkServiceTests.swift",
"WiremockClientTests.swift"
],
"target_dependencies" : [
"WiremockClient"
],
"type" : "test"
},
{
"c99name" : "WiremockClient",
"module_type" : "SwiftTarget",
"name" : "WiremockClient",
"path" : "Sources/WiremockClient",
"product_memberships" : [
"WiremockClient"
],
"sources" : [
"Networking/Endpoint.swift",
"Networking/NetworkService.swift",
"Networking/RequestMethod.swift",
"Networking/ResponseObjects/LoggedRequest.swift",
"Networking/ResponseObjects/LoggedRequestResponse.swift",
"Networking/ResponseObjects/MappingsResponse.swift",
"Networking/WiremockClientNetworkService.swift",
"Networking/WiremockEndpoint.swift",
"Stubbing/MatchCondition.swift",
"Stubbing/RequestMapping.swift",
"Stubbing/RequestPattern.swift",
"Stubbing/ResponseDefinition.swift",
"Stubbing/StubMapping.swift",
"Stubbing/Transformer.swift",
"Stubbing/UrlPattern.swift",
"Utils/DebugOverridable.swift",
"WiremockClient.swift",
"WiremockClientError.swift"
],
"type" : "library"
}
],
"tools_version" : "5.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/19] 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
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
/host/spi-builder-workspace/Sources/WiremockClient/WiremockClient.swift:14:23: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The URL at which the Wiremock instance to be configured is running.
14 | public static var baseURL = "http://localhost:8080"
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'baseURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// A service responsible for executing network requests. Only overridable for test purposes.
/host/spi-builder-workspace/Sources/WiremockClient/WiremockClient.swift:18:16: warning: static property 'networkService' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// A service responsible for executing network requests. Only overridable for test purposes.
17 | @DebugOverridable
18 | static var networkService: NetworkService = WiremockClientNetworkService()
| |- warning: static property 'networkService' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'networkService' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'networkService' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[4/21] Compiling WiremockClient WiremockClient.swift
/host/spi-builder-workspace/Sources/WiremockClient/WiremockClient.swift:14:23: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The URL at which the Wiremock instance to be configured is running.
14 | public static var baseURL = "http://localhost:8080"
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'baseURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// A service responsible for executing network requests. Only overridable for test purposes.
/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/WiremockClient.swift:18:16: warning: static property 'networkService' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// A service responsible for executing network requests. Only overridable for test purposes.
17 | @DebugOverridable
18 | static var networkService: NetworkService = WiremockClientNetworkService()
| |- warning: static property 'networkService' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'networkService' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'networkService' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[5/21] Compiling WiremockClient WiremockClientError.swift
/host/spi-builder-workspace/Sources/WiremockClient/WiremockClient.swift:14:23: warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |
13 | /// The URL at which the Wiremock instance to be configured is running.
14 | public static var baseURL = "http://localhost:8080"
| |- warning: static property 'baseURL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'baseURL' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'baseURL' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 | /// A service responsible for executing network requests. Only overridable for test purposes.
/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/WiremockClient.swift:18:16: warning: static property 'networkService' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
16 | /// A service responsible for executing network requests. Only overridable for test purposes.
17 | @DebugOverridable
18 | static var networkService: NetworkService = WiremockClientNetworkService()
| |- warning: static property 'networkService' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'networkService' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'networkService' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
19 | }
20 |
[6/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
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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?
[7/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
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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?
[8/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 |
[9/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 |
[10/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 |
[11/21] Compiling WiremockClient UrlPattern.swift
[12/21] Compiling WiremockClient DebugOverridable.swift
[13/21] Compiling WiremockClient StubMapping.swift
[14/21] Compiling WiremockClient Transformer.swift
[15/21] Compiling WiremockClient MatchCondition.swift
[16/21] Compiling WiremockClient RequestMapping.swift
[17/21] Compiling WiremockClient LoggedRequest.swift
[18/21] Compiling WiremockClient LoggedRequestResponse.swift
[19/21] Compiling WiremockClient MappingsResponse.swift
[20/21] Compiling WiremockClient RequestPattern.swift
[21/21] Compiling WiremockClient ResponseDefinition.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/18] 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
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
[3/20] Compiling WiremockClient UrlPattern.swift
[4/20] Compiling WiremockClient DebugOverridable.swift
[5/20] 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 {
[6/20] 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 {
[7/20] Compiling WiremockClient MatchCondition.swift
[8/20] Compiling WiremockClient RequestMapping.swift
[9/20] Compiling WiremockClient StubMapping.swift
[10/20] Compiling WiremockClient Transformer.swift
[11/20] Compiling WiremockClient RequestPattern.swift
[12/20] Compiling WiremockClient ResponseDefinition.swift
[13/20] 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
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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?
[14/20] 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
12 | }
13 |
14 | extension URLSession: SynchronousURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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?
[15/20] Compiling WiremockClient LoggedRequest.swift
[16/20] Compiling WiremockClient LoggedRequestResponse.swift
[17/20] Compiling WiremockClient MappingsResponse.swift
[18/20] 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 |
[19/20] 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 |
[20/20] 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 |
BUILD FAILURE 6.1 wasm