The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build meilisearch-swift, reference 0.17.0 (4b7078), with Swift 6.1 for Wasm on 30 May 2025 04:51:57 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

 87 |           return
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[33/56] Compiling MeiliSearch KeysQuery.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[34/56] Compiling MeiliSearch Queryable.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[35/56] Compiling MeiliSearch TasksQuery.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[36/56] Compiling MeiliSearch Request.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[37/56] Compiling MeiliSearch Error.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
/host/spi-builder-workspace/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[38/56] Compiling MeiliSearch Formatter.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
/host/spi-builder-workspace/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[39/56] Compiling MeiliSearch Indexes.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
/host/spi-builder-workspace/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[40/56] Compiling MeiliSearch Keys.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
/host/spi-builder-workspace/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[41/56] Compiling MeiliSearch DocumentsResults.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
/host/spi-builder-workspace/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[42/56] Compiling MeiliSearch FacetStats.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
/host/spi-builder-workspace/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[43/56] Compiling MeiliSearch Health.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:83:10: warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
  9 | public extension MeiliSearch {
 10 |   // MARK: Error
 11 |   struct MSErrorResponse: Decodable, Encodable, Equatable {
    |          `- note: consider making struct 'MSErrorResponse' conform to the 'Sendable' protocol
 12 |     /// A human-readable description of the error
 13 |     public let message: String
    :
 81 |     /// Error originating from Meilisearch API.
 82 |     /// case meiliSearchApiError(message: String, code: String, type: String, link: String? = "http://docs.meilisearch.com/errors", underlying: Swift.Error)
 83 |     case meiliSearchApiError(message: String, msErrorResponse: MSErrorResponse?, statusCode: Int = 0, url: String = "")
    |          `- warning: associated value 'meiliSearchApiError(message:msErrorResponse:statusCode:url:)' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MeiliSearch.MSErrorResponse'; this is an error in the Swift 6 language mode
 84 |
 85 |     /// Error communicating with Meilisearch API.
/host/spi-builder-workspace/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[44/56] Compiling MeiliSearch Index.swift
[45/56] Compiling MeiliSearch IndexesResults.swift
[46/56] Compiling MeiliSearch Key.swift
[47/56] Compiling MeiliSearch KeyAction.swift
[48/56] Compiling MeiliSearch KeyParams.swift
[49/56] Compiling MeiliSearch KeysResults.swift
[50/56] Compiling MeiliSearch PackageVersion.swift
[51/56] Compiling MeiliSearch Search.swift
[52/56] Compiling MeiliSearch Settings.swift
[53/56] Compiling MeiliSearch Snapshots.swift
[54/56] Compiling MeiliSearch Stats.swift
[55/56] Compiling MeiliSearch System.swift
[56/56] Compiling MeiliSearch Tasks.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/49] Compiling MeiliSearch Error.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[3/49] Compiling MeiliSearch Formatter.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[4/49] Compiling MeiliSearch Indexes.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[5/49] Compiling MeiliSearch Keys.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[6/49] Compiling MeiliSearch DocumentsResults.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[7/49] Compiling MeiliSearch FacetStats.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[8/49] Compiling MeiliSearch Health.swift
/host/spi-builder-workspace/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/Sources/MeiliSearch/Error.swift:31:35: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 29 |     }
 30 |
 31 |     guard let response = response as? HTTPURLResponse else {
    |                                   `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
 32 |       fatalError("Correct handles invalid response, please create a custom error type")
 33 |     }
/host/spi-builder-workspace/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/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/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/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/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/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 |       )
[9/55] Compiling MeiliSearch Search.swift
[10/55] Compiling MeiliSearch Settings.swift
[11/55] Compiling MeiliSearch Snapshots.swift
[12/55] Compiling MeiliSearch Stats.swift
[13/55] Compiling MeiliSearch System.swift
[14/55] Compiling MeiliSearch Tasks.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/55] Compiling MeiliSearch TypoTolerance.swift
[16/55] Compiling MeiliSearch TypoToleranceResult.swift
[17/55] Compiling MeiliSearch Version.swift
[18/55] Compiling MeiliSearch WaitOptions.swift
[19/55] Compiling MeiliSearch CancelTasksQuery.swift
[20/55] Compiling MeiliSearch DeleteTasksQuery.swift
[21/55] Emitting module MeiliSearch
/host/spi-builder-workspace/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/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/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
[22/55] Compiling MeiliSearch Pagination.swift
[23/55] Compiling MeiliSearch ProximityPrecision.swift
[24/55] Compiling MeiliSearch SearchParameters.swift
[25/55] Compiling MeiliSearch SearchResult.swift
[26/55] Compiling MeiliSearch SearchScoreRankingDetails.swift
[27/55] Compiling MeiliSearch Setting.swift
[28/55] Compiling MeiliSearch SettingResult.swift
[29/55] Compiling MeiliSearch DocumentsQuery.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[30/55] Compiling MeiliSearch IndexesQuery.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[31/55] Compiling MeiliSearch KeysQuery.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[32/55] Compiling MeiliSearch Queryable.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[33/55] Compiling MeiliSearch TasksQuery.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[34/55] Compiling MeiliSearch Request.swift
/host/spi-builder-workspace/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/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/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/Sources/MeiliSearch/Request.swift:208:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
206 | }
207 |
208 | extension URLSession: URLSessionProtocol {
    | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
209 |   public func execute(
210 |     with request: URLRequest,
/host/spi-builder-workspace/Sources/MeiliSearch/Request.swift:216:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
214 | }
215 |
216 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
    | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
217 |
/host/spi-builder-workspace/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/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/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/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/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/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/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/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/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/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/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/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/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/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/Sources/MeiliSearch/Request.swift:211:24: error: @escaping attribute only applies to function types
209 |   public func execute(
210 |     with request: URLRequest,
211 |     completionHandler: @escaping DataTask) -> URLSessionDataTaskProtocol {
    |                        `- error: @escaping attribute only applies to function types
212 |     self.dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTaskProtocol
213 |   }
[35/55] Compiling MeiliSearch Index.swift
[36/55] Compiling MeiliSearch IndexesResults.swift
[37/55] Compiling MeiliSearch Key.swift
[38/55] Compiling MeiliSearch KeyAction.swift
[39/55] Compiling MeiliSearch KeyParams.swift
[40/55] Compiling MeiliSearch KeysResults.swift
[41/55] Compiling MeiliSearch PackageVersion.swift
[42/55] Compiling MeiliSearch Stat.swift
[43/55] Compiling MeiliSearch Task.swift
[44/55] Compiling MeiliSearch TaskDetails.swift
[45/55] Compiling MeiliSearch TaskInfo.swift
[46/55] Compiling MeiliSearch TaskStatus.swift
[47/55] Compiling MeiliSearch TaskType.swift
[48/55] Compiling MeiliSearch TasksResults.swift
[49/55] Compiling MeiliSearch Client+async.swift
/host/spi-builder-workspace/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/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 |   ) {
[50/55] Compiling MeiliSearch Indexes+async.swift
/host/spi-builder-workspace/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/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 |   ) {
[51/55] Compiling MeiliSearch Client.swift
/host/spi-builder-workspace/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/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 |   ) {
[52/55] Compiling MeiliSearch Config.swift
/host/spi-builder-workspace/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/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 |   ) {
[53/55] Compiling MeiliSearch Constants.swift
/host/spi-builder-workspace/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/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 |   ) {
[54/55] Compiling MeiliSearch Documents.swift
/host/spi-builder-workspace/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/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 |   ) {
[55/55] Compiling MeiliSearch Dumps.swift
/host/spi-builder-workspace/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/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 |   ) {
BUILD FAILURE 6.1 wasm