The Swift Package Index logo.Swift Package Index

Build Information

Failed to build meilisearch-vapor, reference 0.2.0 (d07102), with Swift 6.3 for Wasm on 20 Apr 2026 20:58:45 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/Sherlouk/meilisearch-vapor.git
Reference: 0.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/Sherlouk/meilisearch-vapor
 * tag               0.2.0      -> FETCH_HEAD
HEAD is now at d071024 Fix Linux
Cloned https://github.com/Sherlouk/meilisearch-vapor.git
Revision (git rev-parse @):
d0710243206f7cd91ddf376eec16676308a29259
SUCCESS checkout https://github.com/Sherlouk/meilisearch-vapor.git at 0.2.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/Sherlouk/meilisearch-vapor.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
Fetching https://github.com/meilisearch/meilisearch-swift.git
Fetching https://github.com/vapor/vapor.git
[1/7403] Fetching meilisearch-swift
[7404/84810] Fetching meilisearch-swift, vapor
Fetched https://github.com/meilisearch/meilisearch-swift.git from cache (0.53s)
[6967/77407] Fetching vapor
Fetched https://github.com/vapor/vapor.git from cache (2.67s)
Computing version for https://github.com/meilisearch/meilisearch-swift.git
Computed https://github.com/meilisearch/meilisearch-swift.git at 0.17.0 (3.08s)
Computing version for https://github.com/vapor/vapor.git
Computed https://github.com/vapor/vapor.git at 4.121.4 (0.53s)
Fetching https://github.com/vapor/websocket-kit.git
Fetching https://github.com/apple/swift-asn1.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-service-context.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/vapor/multipart-kit.git
[1/1276] Fetching swift-service-context
[244/3079] Fetching swift-service-context, swift-asn1
[368/5737] Fetching swift-service-context, swift-asn1, websocket-kit
[1143/9401] Fetching swift-service-context, swift-asn1, websocket-kit, multipart-kit
[2874/11221] Fetching swift-service-context, swift-asn1, websocket-kit, multipart-kit, swift-atomics
[6388/18373] Fetching swift-service-context, swift-asn1, websocket-kit, multipart-kit, swift-atomics, swift-certificates
Fetched https://github.com/vapor/websocket-kit.git from cache (0.51s)
[7787/15715] Fetching swift-service-context, swift-asn1, multipart-kit, swift-atomics, swift-certificates
Fetching https://github.com/apple/swift-algorithms.git
Fetched https://github.com/apple/swift-service-context.git from cache (0.66s)
Fetched https://github.com/apple/swift-asn1.git from cache (0.66s)
[7784/12636] Fetching multipart-kit, swift-atomics, swift-certificates
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-distributed-tracing.git
[10073/18694] Fetching multipart-kit, swift-atomics, swift-certificates, swift-algorithms
[10619/21881] Fetching multipart-kit, swift-atomics, swift-certificates, swift-algorithms, swift-metrics
[14438/27645] Fetching multipart-kit, swift-atomics, swift-certificates, swift-algorithms, swift-metrics, swift-distributed-tracing
Fetched https://github.com/apple/swift-algorithms.git from cache (0.93s)
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.94s)
Fetched https://github.com/apple/swift-metrics.git from cache (0.94s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-http2.git
[10093/19271] Fetching multipart-kit, swift-atomics, swift-certificates, swift-log
[13477/25781] Fetching multipart-kit, swift-atomics, swift-certificates, swift-log, swift-nio-extras
[18029/37889] Fetching multipart-kit, swift-atomics, swift-certificates, swift-log, swift-nio-extras, swift-nio-http2
Fetched https://github.com/apple/swift-log.git from cache (0.88s)
Fetching https://github.com/apple/swift-nio.git
[19266/31254] Fetching multipart-kit, swift-atomics, swift-certificates, swift-nio-extras, swift-nio-http2
Fetched https://github.com/apple/swift-nio-extras.git from cache (0.92s)
[13241/24744] Fetching multipart-kit, swift-atomics, swift-certificates, swift-nio-http2
Fetching https://github.com/vapor/routing-kit.git
[24745/46153] Fetching multipart-kit, swift-atomics, swift-certificates, swift-nio-http2, routing-kit
[27529/129317] Fetching multipart-kit, swift-atomics, swift-certificates, swift-nio-http2, routing-kit, swift-nio
Fetched https://github.com/apple/swift-certificates.git from cache (3.29s)
Fetched https://github.com/apple/swift-atomics.git from cache (3.29s)
[19841/120345] Fetching multipart-kit, swift-nio-http2, routing-kit, swift-nio
Fetching https://github.com/apple/swift-crypto.git
Fetched https://github.com/vapor/multipart-kit.git from cache (3.47s)
[21266/116681] Fetching swift-nio-http2, routing-kit, swift-nio
Fetching https://github.com/vapor/async-kit.git
[32325/119177] Fetching swift-nio-http2, routing-kit, swift-nio, async-kit
[36460/136613] Fetching swift-nio-http2, routing-kit, swift-nio, async-kit, swift-crypto
Fetched https://github.com/vapor/async-kit.git from cache (0.72s)
Fetching https://github.com/vapor/console-kit.git
[37068/134117] Fetching swift-nio-http2, routing-kit, swift-nio, swift-crypto
Fetched https://github.com/apple/swift-nio-http2.git from cache (3.02s)
[37781/122009] Fetching routing-kit, swift-nio, swift-crypto
Fetching https://github.com/swift-server/async-http-client.git
[41291/128680] Fetching routing-kit, swift-nio, swift-crypto, console-kit
Fetched https://github.com/vapor/console-kit.git from cache (1.02s)
[53750/122009] Fetching routing-kit, swift-nio, swift-crypto
[53751/137712] Fetching routing-kit, swift-nio, swift-crypto, async-http-client
Fetched https://github.com/vapor/routing-kit.git from cache (3.05s)
[42671/116303] Fetching swift-nio, swift-crypto, async-http-client
Fetched https://github.com/swift-server/async-http-client.git from cache (2.33s)
[47764/100600] Fetching swift-nio, swift-crypto
Fetching https://github.com/apple/swift-nio-ssl.git
Fetched https://github.com/apple/swift-crypto.git from cache (4.98s)
[55720/83164] Fetching swift-nio
[59048/98583] Fetching swift-nio, swift-nio-ssl
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.11s)
Fetched https://github.com/apple/swift-nio.git from cache (12.45s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (15.40s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (0.46s)
Fetching https://github.com/apple/swift-numerics.git
[1/6416] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.42s)
Computing version for https://github.com/vapor/routing-kit.git
Computed https://github.com/vapor/routing-kit.git at 4.9.3 (0.77s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.3.0 (0.46s)
Computing version for https://github.com/vapor/websocket-kit.git
Computed https://github.com/vapor/websocket-kit.git at 2.16.2 (0.41s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2843] Fetching swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.31s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.37.0 (0.81s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.37s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.41s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.19.0 (2.32s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.16.0 (0.42s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.98.0 (0.70s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/23579] Fetching swift-collections
[1652/29180] Fetching swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.49s)
Fetched https://github.com/apple/swift-collections.git from cache (1.51s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.10.0 (2.22s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.22.0 (0.41s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (0.79s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.47s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.0 (0.47s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.4.1 (0.44s)
Computing version for https://github.com/vapor/multipart-kit.git
Computed https://github.com/vapor/multipart-kit.git at 4.7.1 (0.37s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.4.0 (0.61s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.27.0 (0.40s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.34.0 (0.54s)
Fetching https://github.com/apple/swift-http-structured-headers.git
Fetching https://github.com/apple/swift-http-types.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-async-algorithms.git
[1/1242] Fetching swift-http-structured-headers
[138/2285] Fetching swift-http-structured-headers, swift-http-types
[654/5030] Fetching swift-http-structured-headers, swift-http-types, swift-service-lifecycle
[2657/11277] Fetching swift-http-structured-headers, swift-http-types, swift-service-lifecycle, swift-async-algorithms
Fetched https://github.com/apple/swift-http-structured-headers.git from cache (0.41s)
[7787/10035] Fetching swift-http-types, swift-service-lifecycle, swift-async-algorithms
Fetched https://github.com/apple/swift-http-types.git from cache (1.63s)
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (1.64s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.64s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.5.1 (2.10s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.44s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (0.51s)
Computing version for https://github.com/apple/swift-http-structured-headers.git
Computed https://github.com/apple/swift-http-structured-headers.git at 1.7.0 (0.41s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.43.0 (0.47s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.33.1 (0.47s)
Fetching https://github.com/apple/swift-configuration.git
[1/3222] Fetching swift-configuration
Fetched https://github.com/apple/swift-configuration.git from cache (0.37s)
Computing version for https://github.com/apple/swift-configuration.git
Computed https://github.com/apple/swift-configuration.git at 1.2.0 (0.88s)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.0
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.0
Creating working copy for https://github.com/meilisearch/meilisearch-swift.git
Working copy of https://github.com/meilisearch/meilisearch-swift.git resolved at 0.17.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.4.0
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.5.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.27.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.43.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.34.0
Creating working copy for https://github.com/apple/swift-configuration.git
Working copy of https://github.com/apple/swift-configuration.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/vapor/routing-kit.git
Working copy of https://github.com/vapor/routing-kit.git resolved at 4.9.3
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.19.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/vapor/vapor.git
Working copy of https://github.com/vapor/vapor.git resolved at 4.121.4
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.10.0
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.98.0
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.3.0
Creating working copy for https://github.com/vapor/console-kit.git
Working copy of https://github.com/vapor/console-kit.git resolved at 4.16.0
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.33.1
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.22.0
Creating working copy for https://github.com/vapor/multipart-kit.git
Working copy of https://github.com/vapor/multipart-kit.git resolved at 4.7.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/vapor/websocket-kit.git
Working copy of https://github.com/vapor/websocket-kit.git resolved at 2.16.2
Creating working copy for https://github.com/apple/swift-http-structured-headers.git
Working copy of https://github.com/apple/swift-http-structured-headers.git resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.37.0
Building for debugging...
[0/861] Write sources
[9/861] Compiling _NumericsShims _NumericsShims.c
[10/861] Write sources
[16/861] Compiling _CWASI _CWASI.c
[17/861] Write sources
[21/861] Compiling CVaporBcrypt bcrypt.c
[22/861] Write sources
[26/861] Compiling _AtomicsShims.c
[26/861] Write sources
[26/861] Compiling CVaporBcrypt blf.c
[33/861] Write sources
[33/861] Write swift-version-24593BA9C3E375BF.txt
[35/861] Write sources
[49/954] Emitting module _NIOBase64
[50/954] Emitting module Logging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[51/954] Emitting module MeiliSearch
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:11:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public protocol URLSessionProtocol {
 10 |   /// Result for the `execute` function.
 11 |   typealias DataTask = (Data?, URLResponse?, Error?) -> Void
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |   /// Function that will trigger the HTTP request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:48:8: error: cannot find type 'URLRequest' in scope
 46 |     _ url: URL,
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
    |        `- error: cannot find type 'URLRequest' in scope
 49 |     var request = URLRequest(url: url)
 50 |     request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
217 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[52/960] Compiling RealModule RealFunctions.swift
[53/960] Emitting module RealModule
[54/961] Compiling MeiliSearch Dumps.swift
[55/961] Compiling MeiliSearch Error.swift
[56/963] Compiling MeiliSearch Formatter.swift
[57/963] Compiling MeiliSearch Indexes.swift
[58/963] Compiling MeiliSearch Keys.swift
[59/963] Compiling MeiliSearch DocumentsResults.swift
[60/963] Compiling MeiliSearch Client.swift
[61/963] Compiling MeiliSearch Config.swift
[63/963] Compiling MeiliSearch Constants.swift
[64/963] Compiling MeiliSearch Documents.swift
[65/963] Compiling MeiliSearch Client+async.swift
[66/963] Compiling MeiliSearch Indexes+async.swift
[67/963] Compiling MeiliSearch Index.swift
[68/963] Compiling MeiliSearch IndexesResults.swift
[69/963] Compiling RealModule Real.swift
[70/963] Compiling Logging LogHandler.swift
[71/963] Compiling RealModule Float80+Real.swift
[72/963] Compiling Logging LogEvent.swift
[73/963] Compiling ServiceContextModule ServiceContextKey.swift
[74/963] Emitting module ServiceContextModule
[75/963] Compiling ServiceContextModule ServiceContext.swift
[78/964] Compiling RealModule Float16+Real.swift
[82/964] Compiling _NIOBase64 Base64.swift
[84/965] Compiling RealModule RelaxedArithmetic.swift
[85/966] Write sources
[89/966] Compiling _NIODataStructures PriorityQueue.swift
[90/966] Compiling _NIODataStructures _TinyArray.swift
[91/966] Emitting module _CertificateInternals
[92/966] Compiling _CertificateInternals _TinyArray.swift
[92/967] Write sources
[106/991] Emitting module SwiftASN1
[106/991] Compiling CXKCPShims shims.c
[107/996] Compiling SimpleFIPS202.c
[109/996] Compiling Instrumentation NoOpInstrument.swift
[110/996] Emitting module Instrumentation
[110/996] Compiling KeccakSponge.c
[112/996] Compiling Instrumentation MultiplexInstrument.swift
[113/996] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[114/996] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[115/998] Compiling CoreMetrics WithMetricsFactory.swift
[116/998] Compiling InternalCollectionsUtilities _SortedCollection.swift
[117/998] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[118/998] Compiling CoreMetrics MappingMetricsFactory.swift
[119/998] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[120/998] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[121/998] Compiling InternalCollectionsUtilities Span+Extras.swift
[122/998] Compiling Instrumentation Instrument.swift
[123/998] Compiling Instrumentation InstrumentationSystem.swift
[124/998] Compiling Instrumentation Locks.swift
[125/999] Compiling Logging MetadataProvider.swift
[126/999] Compiling CoreMetrics Locks.swift
[127/999] Compiling Logging Locks.swift
[129/999] Compiling InternalCollectionsUtilities Integer rank.swift
[130/999] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[131/999] Compiling InternalCollectionsUtilities UInt+reversed.swift
[132/999] Compiling InternalCollectionsUtilities Debugging.swift
[133/999] Compiling InternalCollectionsUtilities Descriptions.swift
[134/999] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[135/999] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[137/999] Emitting module CoreMetrics
[137/999] Compiling KeccakHash.c
[139/999] Compiling _NIODataStructures Heap.swift
[140/999] Emitting module _NIODataStructures
[141/1000] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[142/1000] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[143/1000] Compiling CSystem shims.c
[145/1039] Compiling SystemPackage FilePathComponents.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:31:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:45:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 43 |           link: res.link
 44 |         ),
 45 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 46 |         url: url.absoluteString
 47 |       )
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:51:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 49 |
 50 |     // HTTP error with Meilisearch
 51 |     if 400 ... 599 ~= response.statusCode {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:34: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                  `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:55:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 56 |         url: url.absoluteString
 57 |       )
[146/1039] Compiling SystemPackage FilePathParsing.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:31:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:45:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 43 |           link: res.link
 44 |         ),
 45 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 46 |         url: url.absoluteString
 47 |       )
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:51:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 49 |
 50 |     // HTTP error with Meilisearch
 51 |     if 400 ... 599 ~= response.statusCode {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:34: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                  `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:55:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 56 |         url: url.absoluteString
 57 |       )
[147/1039] Compiling SystemPackage FilePathString.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:31:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:45:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 43 |           link: res.link
 44 |         ),
 45 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 46 |         url: url.absoluteString
 47 |       )
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:51:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 49 |
 50 |     // HTTP error with Meilisearch
 51 |     if 400 ... 599 ~= response.statusCode {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:34: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                  `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:55:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 56 |         url: url.absoluteString
 57 |       )
[148/1039] Compiling SystemPackage FilePathSyntax.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:31:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:45:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 43 |           link: res.link
 44 |         ),
 45 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 46 |         url: url.absoluteString
 47 |       )
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:51:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 49 |
 50 |     // HTTP error with Meilisearch
 51 |     if 400 ... 599 ~= response.statusCode {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:34: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                  `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:55:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 56 |         url: url.absoluteString
 57 |       )
[149/1039] Compiling SystemPackage FilePathTemp.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:31:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:45:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 43 |           link: res.link
 44 |         ),
 45 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 46 |         url: url.absoluteString
 47 |       )
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:51:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 49 |
 50 |     // HTTP error with Meilisearch
 51 |     if 400 ... 599 ~= response.statusCode {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:34: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                  `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:55:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 56 |         url: url.absoluteString
 57 |       )
[150/1039] Compiling SystemPackage FilePathTempPosix.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:31:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:45:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 43 |           link: res.link
 44 |         ),
 45 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 46 |         url: url.absoluteString
 47 |       )
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:51:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 49 |
 50 |     // HTTP error with Meilisearch
 51 |     if 400 ... 599 ~= response.statusCode {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:34: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                  `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:55:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 56 |         url: url.absoluteString
 57 |       )
[151/1039] Compiling SystemPackage FilePathTempWindows.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:22:61: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 20 |   }
 21 |
 22 |   static func errorHandler(url: URL, data: Data?, response: URLResponse?, error: Swift.Error?) throws {
    |                                                             `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 23 |     // Communication Error with Meilisearch
 24 |     if let error: Swift.Error = error {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:31:39: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                       `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:45:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 43 |           link: res.link
 44 |         ),
 45 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 46 |         url: url.absoluteString
 47 |       )
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:51:32: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 49 |
 50 |     // HTTP error with Meilisearch
 51 |     if 400 ... 599 ~= response.statusCode {
    |                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:34: error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                  `- error: type 'HTTPURLResponse' (aka 'AnyObject') has no member 'localizedString'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:53:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 51 |     if 400 ... 599 ~= response.statusCode {
 52 |       throw MeiliSearch.Error.meiliSearchApiError(
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Error.swift:55:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 53 |         message: HTTPURLResponse.localizedString(forStatusCode: response.statusCode),
 54 |         msErrorResponse: nil,
 55 |         statusCode: response.statusCode,
    |                              `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
 56 |         url: url.absoluteString
 57 |       )
[152/1039] Emitting module InternalCollectionsUtilities
[153/1039] Compiling SystemPackage Errno.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
[154/1039] Compiling SystemPackage ErrnoWindows.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
[155/1039] Compiling SystemPackage FileDescriptor.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
[156/1039] Compiling SystemPackage FileHelpers.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
[157/1039] Compiling SystemPackage FileOperations.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
[158/1039] Compiling SystemPackage FilePath.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
[159/1039] Compiling SystemPackage FilePathComponentView.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Config.swift:37:47: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
35 |     host: String,
36 |     apiKey: String? = nil,
37 |     session: URLSessionProtocol? = URLSession.shared,
   |                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
38 |     headers: [String: String] = [:]
39 |   ) {
[160/1039] Compiling MeiliSearch Search.swift
[161/1039] Compiling MeiliSearch Settings.swift
[162/1039] Compiling MeiliSearch Snapshots.swift
[163/1039] Compiling MeiliSearch Stats.swift
[164/1039] Compiling MeiliSearch System.swift
[165/1039] Compiling MeiliSearch Tasks.swift
[166/1039] Compiling MeiliSearch DocumentsQuery.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:11:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public protocol URLSessionProtocol {
 10 |   /// Result for the `execute` function.
 11 |   typealias DataTask = (Data?, URLResponse?, Error?) -> Void
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |   /// Function that will trigger the HTTP request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:48:8: error: cannot find type 'URLRequest' in scope
 46 |     _ url: URL,
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
    |        `- error: cannot find type 'URLRequest' in scope
 49 |     var request = URLRequest(url: url)
 50 |     request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
217 |
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:40:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   init(_ config: Config) {
 39 |     self.config = config
 40 |     self.session = config.session ?? URLSession.shared
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.headers = config.headers
 42 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:49:19: error: cannot find 'URLRequest' in scope
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
 49 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 50 |     request.httpMethod = httpMethod.rawValue
 51 |     request.setValue(PackageVersion.qualifiedVersion(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:82:35: error: cannot infer contextual base in reference to member 'get'
 80 |         return
 81 |       }
 82 |       let request = self.request(.get, url)
    |                                   `- error: cannot infer contextual base in reference to member 'get'
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:85:72: error: argument type '_' expected to be an instance of a class or class-constrained type
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
 85 |           try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                        `- error: argument type '_' expected to be an instance of a class or class-constrained type
 86 |           completion(.success(data))
 87 |           return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:111:33: error: cannot infer contextual base in reference to member 'post'
109 |     }
110 |
111 |     let request = self.request(.post, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'post'
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:114:70: error: argument type '_' expected to be an instance of a class or class-constrained type
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
114 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
115 |         if let unwrappedData: Data = data {
116 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:137:33: error: cannot infer contextual base in reference to member 'put'
135 |       return
136 |     }
137 |     let request = self.request(.put, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'put'
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:140:70: error: argument type '_' expected to be an instance of a class or class-constrained type
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
140 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
141 |         if let unwrappedData: Data = data {
142 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:163:35: error: cannot infer contextual base in reference to member 'patch'
161 |       return
162 |     }
163 |       let request = self.request(.patch, url, data: data)
    |                                   `- error: cannot infer contextual base in reference to member 'patch'
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:166:70: error: argument type '_' expected to be an instance of a class or class-constrained type
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
166 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
167 |         if let unwrappedData: Data = data {
168 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:193:35: error: cannot infer contextual base in reference to member 'delete'
191 |       return
192 |     }
193 |       let request = self.request(.delete, url)
    |                                   `- error: cannot infer contextual base in reference to member 'delete'
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:196:70: error: argument type '_' expected to be an instance of a class or class-constrained type
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
196 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
197 |         completion(.success(data))
198 |         return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:210:19: error: cannot find type 'URLRequest' in scope
208 | extension URLSession: URLSessionProtocol {
209 |   public func execute(
210 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:34: error: cannot find type 'DataTask' in scope
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                                  `- error: cannot find type 'DataTask' in scope
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:24: error: '@escaping' only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: '@escaping' only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[167/1039] Compiling MeiliSearch IndexesQuery.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:11:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public protocol URLSessionProtocol {
 10 |   /// Result for the `execute` function.
 11 |   typealias DataTask = (Data?, URLResponse?, Error?) -> Void
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |   /// Function that will trigger the HTTP request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:48:8: error: cannot find type 'URLRequest' in scope
 46 |     _ url: URL,
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
    |        `- error: cannot find type 'URLRequest' in scope
 49 |     var request = URLRequest(url: url)
 50 |     request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
217 |
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:40:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   init(_ config: Config) {
 39 |     self.config = config
 40 |     self.session = config.session ?? URLSession.shared
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.headers = config.headers
 42 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:49:19: error: cannot find 'URLRequest' in scope
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
 49 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 50 |     request.httpMethod = httpMethod.rawValue
 51 |     request.setValue(PackageVersion.qualifiedVersion(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:82:35: error: cannot infer contextual base in reference to member 'get'
 80 |         return
 81 |       }
 82 |       let request = self.request(.get, url)
    |                                   `- error: cannot infer contextual base in reference to member 'get'
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:85:72: error: argument type '_' expected to be an instance of a class or class-constrained type
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
 85 |           try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                        `- error: argument type '_' expected to be an instance of a class or class-constrained type
 86 |           completion(.success(data))
 87 |           return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:111:33: error: cannot infer contextual base in reference to member 'post'
109 |     }
110 |
111 |     let request = self.request(.post, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'post'
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:114:70: error: argument type '_' expected to be an instance of a class or class-constrained type
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
114 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
115 |         if let unwrappedData: Data = data {
116 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:137:33: error: cannot infer contextual base in reference to member 'put'
135 |       return
136 |     }
137 |     let request = self.request(.put, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'put'
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:140:70: error: argument type '_' expected to be an instance of a class or class-constrained type
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
140 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
141 |         if let unwrappedData: Data = data {
142 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:163:35: error: cannot infer contextual base in reference to member 'patch'
161 |       return
162 |     }
163 |       let request = self.request(.patch, url, data: data)
    |                                   `- error: cannot infer contextual base in reference to member 'patch'
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:166:70: error: argument type '_' expected to be an instance of a class or class-constrained type
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
166 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
167 |         if let unwrappedData: Data = data {
168 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:193:35: error: cannot infer contextual base in reference to member 'delete'
191 |       return
192 |     }
193 |       let request = self.request(.delete, url)
    |                                   `- error: cannot infer contextual base in reference to member 'delete'
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:196:70: error: argument type '_' expected to be an instance of a class or class-constrained type
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
196 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
197 |         completion(.success(data))
198 |         return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:210:19: error: cannot find type 'URLRequest' in scope
208 | extension URLSession: URLSessionProtocol {
209 |   public func execute(
210 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:34: error: cannot find type 'DataTask' in scope
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                                  `- error: cannot find type 'DataTask' in scope
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:24: error: '@escaping' only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: '@escaping' only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[168/1039] Compiling MeiliSearch KeysQuery.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:11:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public protocol URLSessionProtocol {
 10 |   /// Result for the `execute` function.
 11 |   typealias DataTask = (Data?, URLResponse?, Error?) -> Void
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |   /// Function that will trigger the HTTP request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:48:8: error: cannot find type 'URLRequest' in scope
 46 |     _ url: URL,
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
    |        `- error: cannot find type 'URLRequest' in scope
 49 |     var request = URLRequest(url: url)
 50 |     request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
217 |
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:40:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   init(_ config: Config) {
 39 |     self.config = config
 40 |     self.session = config.session ?? URLSession.shared
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.headers = config.headers
 42 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:49:19: error: cannot find 'URLRequest' in scope
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
 49 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 50 |     request.httpMethod = httpMethod.rawValue
 51 |     request.setValue(PackageVersion.qualifiedVersion(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:82:35: error: cannot infer contextual base in reference to member 'get'
 80 |         return
 81 |       }
 82 |       let request = self.request(.get, url)
    |                                   `- error: cannot infer contextual base in reference to member 'get'
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:85:72: error: argument type '_' expected to be an instance of a class or class-constrained type
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
 85 |           try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                        `- error: argument type '_' expected to be an instance of a class or class-constrained type
 86 |           completion(.success(data))
 87 |           return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:111:33: error: cannot infer contextual base in reference to member 'post'
109 |     }
110 |
111 |     let request = self.request(.post, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'post'
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:114:70: error: argument type '_' expected to be an instance of a class or class-constrained type
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
114 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
115 |         if let unwrappedData: Data = data {
116 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:137:33: error: cannot infer contextual base in reference to member 'put'
135 |       return
136 |     }
137 |     let request = self.request(.put, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'put'
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:140:70: error: argument type '_' expected to be an instance of a class or class-constrained type
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
140 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
141 |         if let unwrappedData: Data = data {
142 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:163:35: error: cannot infer contextual base in reference to member 'patch'
161 |       return
162 |     }
163 |       let request = self.request(.patch, url, data: data)
    |                                   `- error: cannot infer contextual base in reference to member 'patch'
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:166:70: error: argument type '_' expected to be an instance of a class or class-constrained type
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
166 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
167 |         if let unwrappedData: Data = data {
168 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:193:35: error: cannot infer contextual base in reference to member 'delete'
191 |       return
192 |     }
193 |       let request = self.request(.delete, url)
    |                                   `- error: cannot infer contextual base in reference to member 'delete'
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:196:70: error: argument type '_' expected to be an instance of a class or class-constrained type
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
196 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
197 |         completion(.success(data))
198 |         return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:210:19: error: cannot find type 'URLRequest' in scope
208 | extension URLSession: URLSessionProtocol {
209 |   public func execute(
210 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:34: error: cannot find type 'DataTask' in scope
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                                  `- error: cannot find type 'DataTask' in scope
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:24: error: '@escaping' only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: '@escaping' only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[169/1039] Compiling MeiliSearch Queryable.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:11:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public protocol URLSessionProtocol {
 10 |   /// Result for the `execute` function.
 11 |   typealias DataTask = (Data?, URLResponse?, Error?) -> Void
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |   /// Function that will trigger the HTTP request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:48:8: error: cannot find type 'URLRequest' in scope
 46 |     _ url: URL,
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
    |        `- error: cannot find type 'URLRequest' in scope
 49 |     var request = URLRequest(url: url)
 50 |     request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
217 |
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:40:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   init(_ config: Config) {
 39 |     self.config = config
 40 |     self.session = config.session ?? URLSession.shared
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.headers = config.headers
 42 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:49:19: error: cannot find 'URLRequest' in scope
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
 49 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 50 |     request.httpMethod = httpMethod.rawValue
 51 |     request.setValue(PackageVersion.qualifiedVersion(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:82:35: error: cannot infer contextual base in reference to member 'get'
 80 |         return
 81 |       }
 82 |       let request = self.request(.get, url)
    |                                   `- error: cannot infer contextual base in reference to member 'get'
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:85:72: error: argument type '_' expected to be an instance of a class or class-constrained type
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
 85 |           try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                        `- error: argument type '_' expected to be an instance of a class or class-constrained type
 86 |           completion(.success(data))
 87 |           return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:111:33: error: cannot infer contextual base in reference to member 'post'
109 |     }
110 |
111 |     let request = self.request(.post, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'post'
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:114:70: error: argument type '_' expected to be an instance of a class or class-constrained type
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
114 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
115 |         if let unwrappedData: Data = data {
116 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:137:33: error: cannot infer contextual base in reference to member 'put'
135 |       return
136 |     }
137 |     let request = self.request(.put, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'put'
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:140:70: error: argument type '_' expected to be an instance of a class or class-constrained type
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
140 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
141 |         if let unwrappedData: Data = data {
142 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:163:35: error: cannot infer contextual base in reference to member 'patch'
161 |       return
162 |     }
163 |       let request = self.request(.patch, url, data: data)
    |                                   `- error: cannot infer contextual base in reference to member 'patch'
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:166:70: error: argument type '_' expected to be an instance of a class or class-constrained type
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
166 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
167 |         if let unwrappedData: Data = data {
168 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:193:35: error: cannot infer contextual base in reference to member 'delete'
191 |       return
192 |     }
193 |       let request = self.request(.delete, url)
    |                                   `- error: cannot infer contextual base in reference to member 'delete'
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:196:70: error: argument type '_' expected to be an instance of a class or class-constrained type
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
196 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
197 |         completion(.success(data))
198 |         return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:210:19: error: cannot find type 'URLRequest' in scope
208 | extension URLSession: URLSessionProtocol {
209 |   public func execute(
210 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:34: error: cannot find type 'DataTask' in scope
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                                  `- error: cannot find type 'DataTask' in scope
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:24: error: '@escaping' only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: '@escaping' only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[170/1039] Compiling MeiliSearch TasksQuery.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:11:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public protocol URLSessionProtocol {
 10 |   /// Result for the `execute` function.
 11 |   typealias DataTask = (Data?, URLResponse?, Error?) -> Void
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |   /// Function that will trigger the HTTP request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:48:8: error: cannot find type 'URLRequest' in scope
 46 |     _ url: URL,
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
    |        `- error: cannot find type 'URLRequest' in scope
 49 |     var request = URLRequest(url: url)
 50 |     request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
217 |
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:40:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   init(_ config: Config) {
 39 |     self.config = config
 40 |     self.session = config.session ?? URLSession.shared
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.headers = config.headers
 42 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:49:19: error: cannot find 'URLRequest' in scope
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
 49 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 50 |     request.httpMethod = httpMethod.rawValue
 51 |     request.setValue(PackageVersion.qualifiedVersion(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:82:35: error: cannot infer contextual base in reference to member 'get'
 80 |         return
 81 |       }
 82 |       let request = self.request(.get, url)
    |                                   `- error: cannot infer contextual base in reference to member 'get'
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:85:72: error: argument type '_' expected to be an instance of a class or class-constrained type
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
 85 |           try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                        `- error: argument type '_' expected to be an instance of a class or class-constrained type
 86 |           completion(.success(data))
 87 |           return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:111:33: error: cannot infer contextual base in reference to member 'post'
109 |     }
110 |
111 |     let request = self.request(.post, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'post'
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:114:70: error: argument type '_' expected to be an instance of a class or class-constrained type
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
114 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
115 |         if let unwrappedData: Data = data {
116 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:137:33: error: cannot infer contextual base in reference to member 'put'
135 |       return
136 |     }
137 |     let request = self.request(.put, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'put'
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:140:70: error: argument type '_' expected to be an instance of a class or class-constrained type
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
140 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
141 |         if let unwrappedData: Data = data {
142 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:163:35: error: cannot infer contextual base in reference to member 'patch'
161 |       return
162 |     }
163 |       let request = self.request(.patch, url, data: data)
    |                                   `- error: cannot infer contextual base in reference to member 'patch'
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:166:70: error: argument type '_' expected to be an instance of a class or class-constrained type
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
166 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
167 |         if let unwrappedData: Data = data {
168 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:193:35: error: cannot infer contextual base in reference to member 'delete'
191 |       return
192 |     }
193 |       let request = self.request(.delete, url)
    |                                   `- error: cannot infer contextual base in reference to member 'delete'
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:196:70: error: argument type '_' expected to be an instance of a class or class-constrained type
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
196 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
197 |         completion(.success(data))
198 |         return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:210:19: error: cannot find type 'URLRequest' in scope
208 | extension URLSession: URLSessionProtocol {
209 |   public func execute(
210 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:34: error: cannot find type 'DataTask' in scope
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                                  `- error: cannot find type 'DataTask' in scope
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:24: error: '@escaping' only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: '@escaping' only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[171/1039] Compiling MeiliSearch Request.swift
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:11:32: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
  9 | public protocol URLSessionProtocol {
 10 |   /// Result for the `execute` function.
 11 |   typealias DataTask = (Data?, URLResponse?, Error?) -> Void
    |                                `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 12 |
 13 |   /// Function that will trigger the HTTP request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:15:19: error: cannot find type 'URLRequest' in scope
 13 |   /// Function that will trigger the HTTP request.
 14 |   func execute(
 15 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
 16 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol
 17 | }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:48:8: error: cannot find type 'URLRequest' in scope
 46 |     _ url: URL,
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
    |        `- error: cannot find type 'URLRequest' in scope
 49 |     var request = URLRequest(url: url)
 50 |     request.httpMethod = httpMethod.rawValue
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
217 |
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:40:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 38 |   init(_ config: Config) {
 39 |     self.config = config
 40 |     self.session = config.session ?? URLSession.shared
    |                                                 `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 41 |     self.headers = config.headers
 42 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:49:19: error: cannot find 'URLRequest' in scope
 47 |     data: Data? = nil
 48 |   ) -> URLRequest {
 49 |     var request = URLRequest(url: url)
    |                   `- error: cannot find 'URLRequest' in scope
 50 |     request.httpMethod = httpMethod.rawValue
 51 |     request.setValue(PackageVersion.qualifiedVersion(), forHTTPHeaderField: "User-Agent")
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:82:35: error: cannot infer contextual base in reference to member 'get'
 80 |         return
 81 |       }
 82 |       let request = self.request(.get, url)
    |                                   `- error: cannot infer contextual base in reference to member 'get'
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:85:72: error: argument type '_' expected to be an instance of a class or class-constrained type
 83 |       let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
 84 |         do {
 85 |           try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                        `- error: argument type '_' expected to be an instance of a class or class-constrained type
 86 |           completion(.success(data))
 87 |           return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:111:33: error: cannot infer contextual base in reference to member 'post'
109 |     }
110 |
111 |     let request = self.request(.post, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'post'
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:114:70: error: argument type '_' expected to be an instance of a class or class-constrained type
112 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
113 |       do {
114 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
115 |         if let unwrappedData: Data = data {
116 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:137:33: error: cannot infer contextual base in reference to member 'put'
135 |       return
136 |     }
137 |     let request = self.request(.put, url, data: data)
    |                                 `- error: cannot infer contextual base in reference to member 'put'
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:140:70: error: argument type '_' expected to be an instance of a class or class-constrained type
138 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
139 |       do {
140 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
141 |         if let unwrappedData: Data = data {
142 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:163:35: error: cannot infer contextual base in reference to member 'patch'
161 |       return
162 |     }
163 |       let request = self.request(.patch, url, data: data)
    |                                   `- error: cannot infer contextual base in reference to member 'patch'
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:166:70: error: argument type '_' expected to be an instance of a class or class-constrained type
164 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
165 |       do {
166 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
167 |         if let unwrappedData: Data = data {
168 |           completion(.success(unwrappedData))
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:193:35: error: cannot infer contextual base in reference to member 'delete'
191 |       return
192 |     }
193 |       let request = self.request(.delete, url)
    |                                   `- error: cannot infer contextual base in reference to member 'delete'
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:196:70: error: argument type '_' expected to be an instance of a class or class-constrained type
194 |     let task: URLSessionDataTaskProtocol = session.execute(with: request) { data, response, error in
195 |       do {
196 |         try MeiliSearch.errorHandler(url: url, data: data, response: response, error: error)
    |                                                                      `- error: argument type '_' expected to be an instance of a class or class-constrained type
197 |         completion(.success(data))
198 |         return
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:210:19: error: cannot find type 'URLRequest' in scope
208 | extension URLSession: URLSessionProtocol {
209 |   public func execute(
210 |     with request: URLRequest,
    |                   `- error: cannot find type 'URLRequest' in scope
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:34: error: cannot find type 'DataTask' in scope
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                                  `- error: cannot find type 'DataTask' in scope
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
/host/spi-builder-workspace/.build/checkouts/meilisearch-swift/Sources/MeiliSearch/Request.swift:211:24: error: '@escaping' only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: '@escaping' only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[172/1039] Compiling MeiliSearch Pagination.swift
[173/1039] Compiling MeiliSearch ProximityPrecision.swift
[174/1039] Compiling MeiliSearch SearchParameters.swift
[175/1039] Compiling MeiliSearch SearchResult.swift
[176/1039] Compiling MeiliSearch SearchScoreRankingDetails.swift
[177/1039] Compiling MeiliSearch Setting.swift
[178/1039] Compiling MeiliSearch SettingResult.swift
[179/1039] Compiling Tracing TracingTime.swift
[180/1039] Compiling SystemPackage CInterop.swift
[181/1039] Compiling SystemPackage Constants.swift
[182/1039] Compiling SystemPackage Exports.swift
[183/1039] Compiling SystemPackage Mocking.swift
[184/1039] Compiling SystemPackage RawBuffer.swift
[185/1039] Compiling SystemPackage Syscalls.swift
[186/1039] Compiling SystemPackage FilePathWindows.swift
[187/1039] Compiling SystemPackage FilePermissions.swift
[188/1039] Compiling SystemPackage IOCompletion.swift
[189/1039] Compiling SystemPackage IORequest.swift
[190/1039] Compiling SystemPackage IORing.swift
[191/1039] Compiling SystemPackage RawIORequest.swift
[192/1039] Compiling SystemPackage Backcompat.swift
[195/1040] Compiling SystemPackage WindowsSyscallAdapters.swift
[196/1040] Compiling SystemPackage MachPort.swift
[197/1040] Compiling SystemPackage PlatformString.swift
[198/1040] Compiling MeiliSearch TaskInfo.swift
[199/1040] Compiling MeiliSearch TaskStatus.swift
[200/1040] Compiling MeiliSearch TaskType.swift
[201/1040] Compiling MeiliSearch TasksResults.swift
[202/1040] Compiling Tracing NoOpTracer.swift
[204/1040] Compiling KeccakP-1600-opt64.c
BUILD FAILURE 6.3 wasm