Build Information
Failed to build ServiceManager with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bibinjacobpulickal/ServiceManager.git
Reference: master
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
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
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 master
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/bibinjacobpulickal/ServiceManager.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/22] Emitting module ServiceManager
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestConvertible {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest? { try? asURLRequest() }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/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.
_ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~
/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.
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
[4/24] Compiling ServiceManager HTTPHeader.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~
[5/24] Compiling ServiceManager HTTPMethod.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~
[6/24] Compiling ServiceManager HTTPScheme.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~
[7/24] Compiling ServiceManager BBServiceKit.swift
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/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.
_ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~
/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.
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:44: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:59: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:84: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:84: error: cannot infer type of closure parameter 'data' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:90: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:103: error: cannot infer type of closure parameter 'error' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:43: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:58: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:83: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:163:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:175:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:196:31: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
[8/24] Compiling ServiceManager Service.swift
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/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.
_ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~
/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.
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:44: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:59: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:84: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:84: error: cannot infer type of closure parameter 'data' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:90: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:103: error: cannot infer type of closure parameter 'error' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:43: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:58: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:83: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:163:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:175:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:196:31: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
[9/24] Compiling ServiceManager RequestComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
[10/24] Compiling ServiceManager ResponseComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
[11/24] Compiling ServiceManager FormDataEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType(formData.contentType))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
let isReachable = try fileURL.checkPromisedItemIsReachable()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/json"))
~^~~~~~~~~~~
[12/24] Compiling ServiceManager HTTPEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType(formData.contentType))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
let isReachable = try fileURL.checkPromisedItemIsReachable()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/json"))
~^~~~~~~~~~~
[13/24] Compiling ServiceManager JSONEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType(formData.contentType))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
let isReachable = try fileURL.checkPromisedItemIsReachable()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/json"))
~^~~~~~~~~~~
[14/24] Compiling ServiceManager Route.swift
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:33:34: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
[15/24] Compiling ServiceManager URLComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:33:34: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
[16/24] Compiling ServiceManager DataConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestConvertible {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest? { try? asURLRequest() }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
public func asURLRequest() throws -> URLRequest { self }
^~~~~~~~~~
[17/24] Compiling ServiceManager URLConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestConvertible {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest? { try? asURLRequest() }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
public func asURLRequest() throws -> URLRequest { self }
^~~~~~~~~~
[18/24] Compiling ServiceManager URLRequestConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestConvertible {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest? { try? asURLRequest() }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
public func asURLRequest() throws -> URLRequest { self }
^~~~~~~~~~
[19/24] Compiling ServiceManager AnyDecoder.swift
[20/24] Compiling ServiceManager AnyEncoder.swift
[21/24] Compiling ServiceManager EncodableExtensions.swift
[22/24] Compiling ServiceManager PropertyListEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-plist"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~
[23/24] Compiling ServiceManager URLEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-plist"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~
[24/24] Compiling ServiceManager HTTPError.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-plist"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/18] Compiling ServiceManager URLConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestConvertible {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest? { try? asURLRequest() }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
public func asURLRequest() throws -> URLRequest { self }
^~~~~~~~~~
[3/18] Compiling ServiceManager URLRequestConvertible.swift
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestConvertible {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest? { try? asURLRequest() }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:43:42: error: cannot find type 'URLRequest' in scope
public func asURLRequest() throws -> URLRequest { self }
^~~~~~~~~~
[4/18] Compiling ServiceManager Route.swift
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:33:34: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
[5/18] Compiling ServiceManager URLComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:33:34: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
[6/18] Compiling ServiceManager RequestComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
[7/18] Compiling ServiceManager ResponseComponent.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/20] Emitting module ServiceManager
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:41:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: URLRequestConvertible {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:38:28: error: cannot find type 'URLRequest' in scope
public var urlRequest: URLRequest? { try? asURLRequest() }
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Route/Route.swift:31:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/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.
_ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~
/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.
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
[9/20] Compiling ServiceManager HTTPScheme.swift
[10/20] Compiling ServiceManager DataConvertible.swift
[11/20] Compiling ServiceManager HTTPHeader.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~
[12/20] Compiling ServiceManager HTTPMethod.swift
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:374:33: error: cannot find 'kCFBundleExecutableKey' in scope
let executable = (info?[kCFBundleExecutableKey as String] as? String) ??
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:377:28: error: cannot find 'kCFBundleIdentifierKey' in scope
let bundle = info?[kCFBundleIdentifierKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:379:30: error: cannot find 'kCFBundleVersionKey' in scope
let appBuild = info?[kCFBundleVersionKey as String] as? String ?? "Unknown"
^~~~~~~~~~~~~~~~~~~
[13/20] Compiling ServiceManager PropertyListEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-plist"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~
[14/20] Compiling ServiceManager URLEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-plist"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~
[15/20] Compiling ServiceManager HTTPError.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:49:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/PropertyListEncoding.swift:62:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-plist"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:79:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:97:44: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/x-www-form-urlencoded; charset=utf-8"))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:36: error: cannot find 'CFBooleanGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/URLEncoding.swift:193:60: error: cannot find 'CFGetTypeID' in scope
fileprivate var isBool: Bool { CFBooleanGetTypeID() == CFGetTypeID(self) }
^~~~~~~~~~~
[16/23] Compiling ServiceManager FormDataEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType(formData.contentType))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
let isReachable = try fileURL.checkPromisedItemIsReachable()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/json"))
~^~~~~~~~~~~
[17/23] Compiling ServiceManager HTTPEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType(formData.contentType))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
let isReachable = try fileURL.checkPromisedItemIsReachable()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/json"))
~^~~~~~~~~~~
[18/23] Compiling ServiceManager JSONEncoding.swift
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:47:101: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:54:94: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with parameters: Parameters?) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:54:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType(formData.contentType))
~^~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:178:43: error: value of type 'URL' has no member 'checkPromisedItemIsReachable'
let isReachable = try fileURL.checkPromisedItemIsReachable()
~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:428:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:436:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/HTTP/HTTPHeader.swift:443:8: error: non-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended
public extension URLSessionConfiguration {
^ ~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:22: error: cannot find 'UTTypeCreatePreferredIdentifierForTag' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:60: error: cannot find 'kUTTagClassFilenameExtension' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:107: error: cannot find type 'CFString' in scope
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:410:117: error: 'nil' requires a contextual type
let id = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension as CFString, nil)?.takeRetainedValue(),
^
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:31: error: cannot find 'UTTypeCopyPreferredTagWithClass' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/FormDataEncoding.swift:411:67: error: cannot find 'kUTTagClassMIMEType' in scope
let contentType = UTTypeCopyPreferredTagWithClass(id, kUTTagClassMIMEType)?.takeRetainedValue()
^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:59:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:51:123: error: cannot find type 'URLRequest' in scope
public func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/JSONEncoding.swift:70:40: error: cannot infer contextual base in reference to member 'contentType'
urlRequest.headers.update(.contentType("application/json"))
~^~~~~~~~~~~
[19/23] Compiling ServiceManager BBServiceKit.swift
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/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.
_ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~
/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.
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:44: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:59: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:84: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:84: error: cannot infer type of closure parameter 'data' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:90: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:103: error: cannot infer type of closure parameter 'error' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:43: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:58: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:83: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:163:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:175:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:196:31: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
[20/23] Compiling ServiceManager Service.swift
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:202:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Protocols/URLRequestConvertible.swift:33:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Encoding/HTTPEncoding.swift:41:116: error: cannot find type 'URLRequest' in scope
func encode(_ urlRequest: URLRequestConvertible, with object: Encodable?, using encoder: AnyEncoder) throws -> URLRequest
^~~~~~~~~~
/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.
_ completion: ((Data?, HTTPURLResponse?, Error?) -> Void)? = nil) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:161:41: error: cannot find type 'URLRequest' in scope
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~
/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.
func logSession(log: Bool, request: URLRequest?, response: HTTPURLResponse?, error: Error?, data: Data?) {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:195:39: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:44: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:59: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:111:84: error: 'nil' requires a contextual type
logSession(log: true, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:84: error: cannot infer type of closure parameter 'data' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:90: error: cannot infer type of closure parameter 'urlResponse' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:149:103: error: cannot infer type of closure parameter 'error' without a type annotation
let task = URLSession.shared.dataTask(with: request) { [weak self] (data, urlResponse, error) in
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:43: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:58: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:156:83: error: 'nil' requires a contextual type
logSession(log: log, request: nil, response: nil, error: error, data: nil)
^
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:163:75: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if log == false && error == nil && (200..<300).contains(response?.statusCode ?? 0) {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:175:39: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
if let statusCode = response?.statusCode {
~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/ServiceManager/Service/Service.swift:196:31: error: cannot find 'URLRequest' in scope
let request = try URLRequest(url: url, method: method, body: body, headers: headers)
^~~~~~~~~~
[21/23] Compiling ServiceManager AnyEncoder.swift
[22/23] Compiling ServiceManager EncodableExtensions.swift
[23/23] Compiling ServiceManager AnyDecoder.swift
error: fatalError
BUILD FAILURE 5.10 linux