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 ServiceManager, reference 1.2.2 (81bb25), with Swift 6.2 (beta) for Android on 18 Jun 2025 22:27:56 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bibinjacobpulickal/ServiceManager.git
Reference: 1.2.2
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/bibinjacobpulickal/ServiceManager
 * tag               1.2.2      -> FETCH_HEAD
HEAD is now at 81bb25b Added port component.
Cloned https://github.com/bibinjacobpulickal/ServiceManager.git
Revision (git rev-parse @):
81bb25bfea2779e9bdcd9ccd1bcad592435b24ca
SUCCESS checkout https://github.com/bibinjacobpulickal/ServiceManager.git at 1.2.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/bibinjacobpulickal/ServiceManager.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-8C5A4AE7A8CE2BA.txt
[3/22] Compiling ServiceManager Route.swift
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
29 | public extension Route {
30 |
31 |     func asURLRequest() throws -> URLRequest {
   |                                   `- error: cannot find type 'URLRequest' in scope
32 |         let url            = try asURL()
33 |         let request        = try URLRequest(url: url, method: method, body: body, headers: headers)
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:33:34: error: cannot find 'URLRequest' in scope
31 |     func asURLRequest() throws -> URLRequest {
32 |         let url            = try asURL()
33 |         let request        = try URLRequest(url: url, method: method, body: body, headers: headers)
   |                                  `- error: cannot find 'URLRequest' in scope
34 |         return try encoding.encode(request, with: object, using: encoder)
35 |     }
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
[4/22] Compiling ServiceManager URLComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
29 | public extension Route {
30 |
31 |     func asURLRequest() throws -> URLRequest {
   |                                   `- error: cannot find type 'URLRequest' in scope
32 |         let url            = try asURL()
33 |         let request        = try URLRequest(url: url, method: method, body: body, headers: headers)
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:33:34: error: cannot find 'URLRequest' in scope
31 |     func asURLRequest() throws -> URLRequest {
32 |         let url            = try asURL()
33 |         let request        = try URLRequest(url: url, method: method, body: body, headers: headers)
   |                                  `- error: cannot find 'URLRequest' in scope
34 |         return try encoding.encode(request, with: object, using: encoder)
35 |     }
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
[5/24] Compiling ServiceManager RequestComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
[6/24] Compiling ServiceManager ResponseComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
[7/24] Compiling ServiceManager FormDataEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
 45 |     }
 46 |
 47 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 48 |         var urlRequest = try urlRequest.asURLRequest()
 49 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
52 |     /// - Returns:      The encoded `URLRequest`.
53 |     /// - Throws:       Any `Error` produced during parameter encoding.
54 |     func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
 52 |
 53 |         if urlRequest.headers["Content-Type"] == nil {
 54 |             urlRequest.headers.update(.contentType(formData.contentType))
    |                                        `- error: cannot infer contextual base in reference to member 'contentType'
 55 |         }
 56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
176 |
177 |         do {
178 |             let isReachable = try fileURL.checkPromisedItemIsReachable()
    |                                           `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
179 |             guard isReachable else {
180 |                 setBodyPartError(withReason: .bodyPartFileNotReachable(at: fileURL))
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                      `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                            `- error: cannot find 'kUTTagClassFilenameExtension' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                                                                           `- error: cannot find type 'CFString' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                                                                                     `- error: 'nil' requires a contextual type
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
    |                               `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
412 |         {
413 |             return contentType as String
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
    |                                                                   `- error: cannot find 'kUTTagClassMIMEType' in scope
412 |         {
413 |             return contentType as String
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
57 | extension ParameterEncoding {
58 |
59 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
60 |         try encode(urlRequest, with: try object?.jsonObject(using: encoder) as? Parameters)
61 |     }
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
49 |     }
50 |
51 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
52 |         var urlRequest = try urlRequest.asURLRequest()
53 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
68 |         }
69 |         if urlRequest.headers["Content-Type"] == nil {
70 |             urlRequest.headers.update(.contentType("application/json"))
   |                                        `- error: cannot infer contextual base in reference to member 'contentType'
71 |         }
72 |
[8/24] Compiling ServiceManager HTTPEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
 45 |     }
 46 |
 47 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 48 |         var urlRequest = try urlRequest.asURLRequest()
 49 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
52 |     /// - Returns:      The encoded `URLRequest`.
53 |     /// - Throws:       Any `Error` produced during parameter encoding.
54 |     func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
 52 |
 53 |         if urlRequest.headers["Content-Type"] == nil {
 54 |             urlRequest.headers.update(.contentType(formData.contentType))
    |                                        `- error: cannot infer contextual base in reference to member 'contentType'
 55 |         }
 56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
176 |
177 |         do {
178 |             let isReachable = try fileURL.checkPromisedItemIsReachable()
    |                                           `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
179 |             guard isReachable else {
180 |                 setBodyPartError(withReason: .bodyPartFileNotReachable(at: fileURL))
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                      `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                            `- error: cannot find 'kUTTagClassFilenameExtension' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                                                                           `- error: cannot find type 'CFString' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                                                                                     `- error: 'nil' requires a contextual type
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
    |                               `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
412 |         {
413 |             return contentType as String
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
    |                                                                   `- error: cannot find 'kUTTagClassMIMEType' in scope
412 |         {
413 |             return contentType as String
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
57 | extension ParameterEncoding {
58 |
59 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
60 |         try encode(urlRequest, with: try object?.jsonObject(using: encoder) as? Parameters)
61 |     }
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
49 |     }
50 |
51 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
52 |         var urlRequest = try urlRequest.asURLRequest()
53 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
68 |         }
69 |         if urlRequest.headers["Content-Type"] == nil {
70 |             urlRequest.headers.update(.contentType("application/json"))
   |                                        `- error: cannot infer contextual base in reference to member 'contentType'
71 |         }
72 |
[9/24] Compiling ServiceManager JSONEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
 45 |     }
 46 |
 47 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 48 |         var urlRequest = try urlRequest.asURLRequest()
 49 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
52 |     /// - Returns:      The encoded `URLRequest`.
53 |     /// - Throws:       Any `Error` produced during parameter encoding.
54 |     func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
 52 |
 53 |         if urlRequest.headers["Content-Type"] == nil {
 54 |             urlRequest.headers.update(.contentType(formData.contentType))
    |                                        `- error: cannot infer contextual base in reference to member 'contentType'
 55 |         }
 56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
176 |
177 |         do {
178 |             let isReachable = try fileURL.checkPromisedItemIsReachable()
    |                                           `- error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
179 |             guard isReachable else {
180 |                 setBodyPartError(withReason: .bodyPartFileNotReachable(at: fileURL))
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                      `- error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                            `- error: cannot find 'kUTTagClassFilenameExtension' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                                                                           `- error: cannot find type 'CFString' in scope
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
408 |     private func mimeType(forPathExtension pathExtension: String) -> String {
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
    |                                                                                                                     `- error: 'nil' requires a contextual type
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
412 |         {
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
    |                               `- error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
412 |         {
413 |             return contentType as String
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
409 |         if
410 |             let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
411 |             let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
    |                                                                   `- error: cannot find 'kUTTagClassMIMEType' in scope
412 |         {
413 |             return contentType as String
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
57 | extension ParameterEncoding {
58 |
59 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
60 |         try encode(urlRequest, with: try object?.jsonObject(using: encoder) as? Parameters)
61 |     }
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
49 |     }
50 |
51 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
52 |         var urlRequest = try urlRequest.asURLRequest()
53 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
68 |         }
69 |         if urlRequest.headers["Content-Type"] == nil {
70 |             urlRequest.headers.update(.contentType("application/json"))
   |                                        `- error: cannot infer contextual base in reference to member 'contentType'
71 |         }
72 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/24] Compiling ServiceManager AnyDecoder.swift
[11/24] Compiling ServiceManager AnyEncoder.swift
[12/24] Compiling ServiceManager EncodableExtensions.swift
[13/24] Emitting module ServiceManager
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
 45 |     }
 46 |
 47 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 48 |         var urlRequest = try urlRequest.asURLRequest()
 49 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
52 |     /// - Returns:      The encoded `URLRequest`.
53 |     /// - Throws:       Any `Error` produced during parameter encoding.
54 |     func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
57 | extension ParameterEncoding {
58 |
59 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
60 |         try encode(urlRequest, with: try object?.jsonObject(using: encoder) as? Parameters)
61 |     }
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
49 |     }
50 |
51 |     public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
   |                                                                                                                           `- error: cannot find type 'URLRequest' in scope
52 |         var urlRequest = try urlRequest.asURLRequest()
53 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
47 |     }
48 |
49 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
   |                                                                                                     `- error: cannot find type 'URLRequest' in scope
50 |         var urlRequest = try urlRequest.asURLRequest()
51 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
 77 |     }
 78 |
 79 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 80 |         var urlRequest = try urlRequest.asURLRequest()
 81 |
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
372 |     public static let defaultUserAgent: HTTPHeader = {
373 |         let info = Bundle.main.infoDictionary
374 |         let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
    |                                 `- error: cannot find 'kCFBundleExecutableKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
    |                            `- error: cannot find 'kCFBundleIdentifierKey' in scope
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
    |                              `- error: cannot find 'kCFBundleVersionKey' in scope
380 |
381 |         let osNameVersion: String = {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
426 | // MARK: - System Type Extensions
427 |
428 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
429 |     /// Returns `allHTTPHeaderFields` as `HTTPHeaders`.
430 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
434 | }
435 |
436 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
437 |     /// Returns `allHeaderFields` as `HTTPHeaders`.
438 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
441 | }
442 |
443 | public extension URLSessionConfiguration {
    |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
444 |     /// Returns `httpAdditionalHeaders` as `HTTPHeaders`.
445 |     var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
36 | extension URLRequestConvertible {
37 |     /// The `URLRequest` returned by discarding any `Error` encountered.
38 |     public var urlRequest: URLRequest? { try? asURLRequest() }
   |                            `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
39 | }
40 |
41 | extension URLRequest: URLRequestConvertible {
   |           `- error: cannot find type 'URLRequest' in scope
42 |     /// Returns `self`.
43 |     public func asURLRequest() throws -> URLRequest { self }
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
29 | public extension Route {
30 |
31 |     func asURLRequest() throws -> URLRequest {
   |                                   `- error: cannot find type 'URLRequest' in scope
32 |         let url            = try asURL()
33 |         let request        = try URLRequest(url: url, method: method, body: body, headers: headers)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:146:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         _ request: URLRequestConvertible,
145 |         log: Bool = false,
146 |         _ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |         do {
148 |             let request = try request.asURLRequest()
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/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
159 |     }
160 |
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
    |                                         `- error: cannot find type 'URLRequest' in scope
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:64: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     }
160 |
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
    |                                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
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/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
193 |         let headers: HTTPHeaders?
194 |
195 |         func asURLRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
196 |             let request = try URLRequest(url: url, method: method, body: body, headers: headers)
197 |             return try encoding.encode(request, with: object, using: encoder)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
200 | }
201 |
202 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
203 |     /// Creates an instance with the specified `url`, `method`, and `headers`.
204 |     ///
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[14/24] Compiling ServiceManager PropertyListEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
47 |     }
48 |
49 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
   |                                                                                                     `- error: cannot find type 'URLRequest' in scope
50 |         var urlRequest = try urlRequest.asURLRequest()
51 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
52 |     /// - Returns:      The encoded `URLRequest`.
53 |     /// - Throws:       Any `Error` produced during parameter encoding.
54 |     func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
60 |
61 |             if urlRequest.headers["Content-Type"] == nil {
62 |                 urlRequest.headers.update(.contentType("application/x-plist"))
   |                                            `- error: cannot infer contextual base in reference to member 'contentType'
63 |             }
64 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
 77 |     }
 78 |
 79 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 80 |         var urlRequest = try urlRequest.asURLRequest()
 81 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
 95 |         } else {
 96 |             if urlRequest.headers["Content-Type"] == nil {
 97 |                 urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
    |                                            `- error: cannot infer contextual base in reference to member 'contentType'
 98 |             }
 99 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
191 |
192 | extension NSNumber {
193 |     fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
    |                                    `- error: cannot find 'CFBooleanGetTypeID' in scope
194 | }
195 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
191 |
192 | extension NSNumber {
193 |     fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
    |                                                            `- error: cannot find 'CFGetTypeID' in scope
194 | }
195 |
[15/24] Compiling ServiceManager URLEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
47 |     }
48 |
49 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
   |                                                                                                     `- error: cannot find type 'URLRequest' in scope
50 |         var urlRequest = try urlRequest.asURLRequest()
51 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
52 |     /// - Returns:      The encoded `URLRequest`.
53 |     /// - Throws:       Any `Error` produced during parameter encoding.
54 |     func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
60 |
61 |             if urlRequest.headers["Content-Type"] == nil {
62 |                 urlRequest.headers.update(.contentType("application/x-plist"))
   |                                            `- error: cannot infer contextual base in reference to member 'contentType'
63 |             }
64 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
 77 |     }
 78 |
 79 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 80 |         var urlRequest = try urlRequest.asURLRequest()
 81 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
 95 |         } else {
 96 |             if urlRequest.headers["Content-Type"] == nil {
 97 |                 urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
    |                                            `- error: cannot infer contextual base in reference to member 'contentType'
 98 |             }
 99 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
191 |
192 | extension NSNumber {
193 |     fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
    |                                    `- error: cannot find 'CFBooleanGetTypeID' in scope
194 | }
195 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
191 |
192 | extension NSNumber {
193 |     fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
    |                                                            `- error: cannot find 'CFGetTypeID' in scope
194 | }
195 |
[16/24] Compiling ServiceManager HTTPError.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
47 |     }
48 |
49 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
   |                                                                                                     `- error: cannot find type 'URLRequest' in scope
50 |         var urlRequest = try urlRequest.asURLRequest()
51 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
52 |     /// - Returns:      The encoded `URLRequest`.
53 |     /// - Throws:       Any `Error` produced during parameter encoding.
54 |     func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
   |                                                                                              `- error: cannot find type 'URLRequest' in scope
55 | }
56 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
60 |
61 |             if urlRequest.headers["Content-Type"] == nil {
62 |                 urlRequest.headers.update(.contentType("application/x-plist"))
   |                                            `- error: cannot infer contextual base in reference to member 'contentType'
63 |             }
64 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
 77 |     }
 78 |
 79 |     public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
    |                                                                                                     `- error: cannot find type 'URLRequest' in scope
 80 |         var urlRequest = try urlRequest.asURLRequest()
 81 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
 95 |         } else {
 96 |             if urlRequest.headers["Content-Type"] == nil {
 97 |                 urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
    |                                            `- error: cannot infer contextual base in reference to member 'contentType'
 98 |             }
 99 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
191 |
192 | extension NSNumber {
193 |     fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
    |                                    `- error: cannot find 'CFBooleanGetTypeID' in scope
194 | }
195 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
191 |
192 | extension NSNumber {
193 |     fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
    |                                                            `- error: cannot find 'CFGetTypeID' in scope
194 | }
195 |
[17/24] Compiling ServiceManager DataConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
36 | extension URLRequestConvertible {
37 |     /// The `URLRequest` returned by discarding any `Error` encountered.
38 |     public var urlRequest: URLRequest? { try? asURLRequest() }
   |                            `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
39 | }
40 |
41 | extension URLRequest: URLRequestConvertible {
   |           `- error: cannot find type 'URLRequest' in scope
42 |     /// Returns `self`.
43 |     public func asURLRequest() throws -> URLRequest { self }
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
41 | extension URLRequest: URLRequestConvertible {
42 |     /// Returns `self`.
43 |     public func asURLRequest() throws -> URLRequest { self }
   |                                          `- error: cannot find type 'URLRequest' in scope
44 | }
45 |
[18/24] Compiling ServiceManager URLConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
36 | extension URLRequestConvertible {
37 |     /// The `URLRequest` returned by discarding any `Error` encountered.
38 |     public var urlRequest: URLRequest? { try? asURLRequest() }
   |                            `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
39 | }
40 |
41 | extension URLRequest: URLRequestConvertible {
   |           `- error: cannot find type 'URLRequest' in scope
42 |     /// Returns `self`.
43 |     public func asURLRequest() throws -> URLRequest { self }
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
41 | extension URLRequest: URLRequestConvertible {
42 |     /// Returns `self`.
43 |     public func asURLRequest() throws -> URLRequest { self }
   |                                          `- error: cannot find type 'URLRequest' in scope
44 | }
45 |
[19/24] Compiling ServiceManager URLRequestConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
36 | extension URLRequestConvertible {
37 |     /// The `URLRequest` returned by discarding any `Error` encountered.
38 |     public var urlRequest: URLRequest? { try? asURLRequest() }
   |                            `- error: cannot find type 'URLRequest' in scope
39 | }
40 |
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
39 | }
40 |
41 | extension URLRequest: URLRequestConvertible {
   |           `- error: cannot find type 'URLRequest' in scope
42 |     /// Returns `self`.
43 |     public func asURLRequest() throws -> URLRequest { self }
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
41 | extension URLRequest: URLRequestConvertible {
42 |     /// Returns `self`.
43 |     public func asURLRequest() throws -> URLRequest { self }
   |                                          `- error: cannot find type 'URLRequest' in scope
44 | }
45 |
[20/24] Compiling ServiceManager HTTPHeader.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
372 |     public static let defaultUserAgent: HTTPHeader = {
373 |         let info = Bundle.main.infoDictionary
374 |         let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
    |                                 `- error: cannot find 'kCFBundleExecutableKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
    |                            `- error: cannot find 'kCFBundleIdentifierKey' in scope
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
    |                              `- error: cannot find 'kCFBundleVersionKey' in scope
380 |
381 |         let osNameVersion: String = {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
426 | // MARK: - System Type Extensions
427 |
428 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
429 |     /// Returns `allHTTPHeaderFields` as `HTTPHeaders`.
430 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
434 | }
435 |
436 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
437 |     /// Returns `allHeaderFields` as `HTTPHeaders`.
438 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
441 | }
442 |
443 | public extension URLSessionConfiguration {
    |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
444 |     /// Returns `httpAdditionalHeaders` as `HTTPHeaders`.
445 |     var headers: HTTPHeaders {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[21/24] Compiling ServiceManager HTTPMethod.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
372 |     public static let defaultUserAgent: HTTPHeader = {
373 |         let info = Bundle.main.infoDictionary
374 |         let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
    |                                 `- error: cannot find 'kCFBundleExecutableKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
    |                            `- error: cannot find 'kCFBundleIdentifierKey' in scope
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
    |                              `- error: cannot find 'kCFBundleVersionKey' in scope
380 |
381 |         let osNameVersion: String = {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
426 | // MARK: - System Type Extensions
427 |
428 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
429 |     /// Returns `allHTTPHeaderFields` as `HTTPHeaders`.
430 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
434 | }
435 |
436 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
437 |     /// Returns `allHeaderFields` as `HTTPHeaders`.
438 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
441 | }
442 |
443 | public extension URLSessionConfiguration {
    |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
444 |     /// Returns `httpAdditionalHeaders` as `HTTPHeaders`.
445 |     var headers: HTTPHeaders {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[22/24] Compiling ServiceManager HTTPScheme.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
372 |     public static let defaultUserAgent: HTTPHeader = {
373 |         let info = Bundle.main.infoDictionary
374 |         let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
    |                                 `- error: cannot find 'kCFBundleExecutableKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
375 |             (ProcessInfo.processInfo.arguments.first?.split(separator: "/").last.map(String.init)) ??
376 |             "Unknown"
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
    |                            `- error: cannot find 'kCFBundleIdentifierKey' in scope
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
377 |         let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
378 |         let appVersion = info?["CFBundleShortVersionString"] as? String ?? "Unknown"
379 |         let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
    |                              `- error: cannot find 'kCFBundleVersionKey' in scope
380 |
381 |         let osNameVersion: String = {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
426 | // MARK: - System Type Extensions
427 |
428 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
429 |     /// Returns `allHTTPHeaderFields` as `HTTPHeaders`.
430 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
434 | }
435 |
436 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#NominalTypes]
437 |     /// Returns `allHeaderFields` as `HTTPHeaders`.
438 |     public var headers: HTTPHeaders {
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
441 | }
442 |
443 | public extension URLSessionConfiguration {
    |        `- error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended [#NominalTypes]
444 |     /// Returns `httpAdditionalHeaders` as `HTTPHeaders`.
445 |     var headers: HTTPHeaders {
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[23/24] Compiling ServiceManager BBServiceKit.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:146:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         _ request: URLRequestConvertible,
145 |         log: Bool = false,
146 |         _ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |         do {
148 |             let request = try request.asURLRequest()
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/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
159 |     }
160 |
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
    |                                         `- error: cannot find type 'URLRequest' in scope
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:64: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     }
160 |
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
    |                                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
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/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
193 |         let headers: HTTPHeaders?
194 |
195 |         func asURLRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
196 |             let request = try URLRequest(url: url, method: method, body: body, headers: headers)
197 |             return try encoding.encode(request, with: object, using: encoder)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
200 | }
201 |
202 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
203 |     /// Creates an instance with the specified `url`, `method`, and `headers`.
204 |     ///
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:44: error: 'nil' requires a contextual type
109 |             }
110 |         } catch {
111 |             logSession(log: true, request: nil, response: nil, error: error, data: nil)
    |                                            `- error: 'nil' requires a contextual type
112 |             completion?(.failure(error))
113 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:59: error: 'nil' requires a contextual type
109 |             }
110 |         } catch {
111 |             logSession(log: true, request: nil, response: nil, error: error, data: nil)
    |                                                           `- error: 'nil' requires a contextual type
112 |             completion?(.failure(error))
113 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:84: error: 'nil' requires a contextual type
109 |             }
110 |         } catch {
111 |             logSession(log: true, request: nil, response: nil, error: error, data: nil)
    |                                                                                    `- error: 'nil' requires a contextual type
112 |             completion?(.failure(error))
113 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:84: error: cannot infer type of closure parameter 'data' without a type annotation
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                                                                    `- error: cannot infer type of closure parameter 'data' without a type annotation
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:90: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                                                                          `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:103: error: cannot infer type of closure parameter 'error' without a type annotation
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                                                                                       `- error: cannot infer type of closure parameter 'error' without a type annotation
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:43: error: 'nil' requires a contextual type
154 |             task.resume()
155 |         } catch {
156 |             logSession(log: log, request: nil, response: nil, error: error, data: nil)
    |                                           `- error: 'nil' requires a contextual type
157 |             completion?(nil, nil, error)
158 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:58: error: 'nil' requires a contextual type
154 |             task.resume()
155 |         } catch {
156 |             logSession(log: log, request: nil, response: nil, error: error, data: nil)
    |                                                          `- error: 'nil' requires a contextual type
157 |             completion?(nil, nil, error)
158 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:83: error: 'nil' requires a contextual type
154 |             task.resume()
155 |         } catch {
156 |             logSession(log: log, request: nil, response: nil, error: error, data: nil)
    |                                                                                   `- error: 'nil' requires a contextual type
157 |             completion?(nil, nil, error)
158 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:163:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
    |                                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
164 |             return
165 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:175:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 |             print("Body:\t\tSize: \(data)\n\(data.prettyPrintedString)")
174 |         }
175 |         if let statusCode = response?.statusCode {
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             print("Status Code: \t\(statusCode)")
177 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:196:31: error: cannot find 'URLRequest' in scope
194 |
195 |         func asURLRequest() throws -> URLRequest {
196 |             let request = try URLRequest(url: url, method: method, body: body, headers: headers)
    |                               `- error: cannot find 'URLRequest' in scope
197 |             return try encoding.encode(request, with: object, using: encoder)
198 |         }
[24/24] Compiling ServiceManager Service.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
31 |     /// - Returns: A `URLRequest`.
32 |     /// - Throws:  Any error thrown while constructing the `URLRequest`.
33 |     func asURLRequest() throws -> URLRequest
   |                                   `- error: cannot find type 'URLRequest' in scope
34 | }
35 |
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
39 |     /// - Returns:      The encoded `URLRequest`.
40 |     /// - Throws:       Any `Error` produced during parameter encoding.
41 |     func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
   |                                                                                                                    `- error: cannot find type 'URLRequest' in scope
42 | }
43 |
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:146:32: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
144 |         _ request: URLRequestConvertible,
145 |         log: Bool = false,
146 |         _ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
    |                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
147 |         do {
148 |             let request = try request.asURLRequest()
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/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
159 |     }
160 |
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
    |                                         `- error: cannot find type 'URLRequest' in scope
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:64: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
159 |     }
160 |
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
    |                                                                `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
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/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
193 |         let headers: HTTPHeaders?
194 |
195 |         func asURLRequest() throws -> URLRequest {
    |                                       `- error: cannot find type 'URLRequest' in scope
196 |             let request = try URLRequest(url: url, method: method, body: body, headers: headers)
197 |             return try encoding.encode(request, with: object, using: encoder)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
200 | }
201 |
202 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
203 |     /// Creates an instance with the specified `url`, `method`, and `headers`.
204 |     ///
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:44: error: 'nil' requires a contextual type
109 |             }
110 |         } catch {
111 |             logSession(log: true, request: nil, response: nil, error: error, data: nil)
    |                                            `- error: 'nil' requires a contextual type
112 |             completion?(.failure(error))
113 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:59: error: 'nil' requires a contextual type
109 |             }
110 |         } catch {
111 |             logSession(log: true, request: nil, response: nil, error: error, data: nil)
    |                                                           `- error: 'nil' requires a contextual type
112 |             completion?(.failure(error))
113 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:84: error: 'nil' requires a contextual type
109 |             }
110 |         } catch {
111 |             logSession(log: true, request: nil, response: nil, error: error, data: nil)
    |                                                                                    `- error: 'nil' requires a contextual type
112 |             completion?(.failure(error))
113 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:84: error: cannot infer type of closure parameter 'data' without a type annotation
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                                                                    `- error: cannot infer type of closure parameter 'data' without a type annotation
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:90: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                                                                          `- error: cannot infer type of closure parameter 'urlResponse' without a type annotation
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:103: error: cannot infer type of closure parameter 'error' without a type annotation
147 |         do {
148 |             let request = try request.asURLRequest()
149 |             let task    = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
    |                                                                                                       `- error: cannot infer type of closure parameter 'error' without a type annotation
150 |                 let httpUrlResponse = urlResponse as? HTTPURLResponse
151 |                 self?.logSession(log: log, request: request, response: httpUrlResponse, error: error, data: data)
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:43: error: 'nil' requires a contextual type
154 |             task.resume()
155 |         } catch {
156 |             logSession(log: log, request: nil, response: nil, error: error, data: nil)
    |                                           `- error: 'nil' requires a contextual type
157 |             completion?(nil, nil, error)
158 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:58: error: 'nil' requires a contextual type
154 |             task.resume()
155 |         } catch {
156 |             logSession(log: log, request: nil, response: nil, error: error, data: nil)
    |                                                          `- error: 'nil' requires a contextual type
157 |             completion?(nil, nil, error)
158 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:83: error: 'nil' requires a contextual type
154 |             task.resume()
155 |         } catch {
156 |             logSession(log: log, request: nil, response: nil, error: error, data: nil)
    |                                                                                   `- error: 'nil' requires a contextual type
157 |             completion?(nil, nil, error)
158 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:163:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
161 |     func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
162 |
163 |         if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
    |                                                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
164 |             return
165 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:175:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
173 |             print("Body:\t\tSize: \(data)\n\(data.prettyPrintedString)")
174 |         }
175 |         if let statusCode = response?.statusCode {
    |                                       `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
176 |             print("Status Code: \t\(statusCode)")
177 |         }
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:196:31: error: cannot find 'URLRequest' in scope
194 |
195 |         func asURLRequest() throws -> URLRequest {
196 |             let request = try URLRequest(url: url, method: method, body: body, headers: headers)
    |                               `- error: cannot find 'URLRequest' in scope
197 |             return try encoding.encode(request, with: object, using: encoder)
198 |         }
BUILD FAILURE 6.2 android