Build Information
Failed to build SimpleNetworking with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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/gonzalezreal/SimpleNetworking.git
Reference: 2.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/gonzalezreal/SimpleNetworking
* tag 2.0.0 -> FETCH_HEAD
HEAD is now at 4e87c1f Update README (#19)
Cloned https://github.com/gonzalezreal/SimpleNetworking.git
Revision (git rev-parse @):
4e87c1fe1310b83d3418ebcfe626c7f2512cc35a
SUCCESS checkout https://github.com/gonzalezreal/SimpleNetworking.git at 2.0.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/gonzalezreal/SimpleNetworking.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/apple/swift-log
[1/3170] Fetching swift-log
Fetched https://github.com/apple/swift-log from cache (0.37s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.2.0 (0.38s)
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.2.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/7] Compiling Logging Locks.swift
[5/7] Compiling Logging LogHandler.swift
[6/7] Emitting module Logging
[7/7] Compiling Logging Logging.swift
[9/23] Compiling SimpleNetworking HTTPURLResponse+Logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
internal extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
[10/23] Compiling SimpleNetworking HeaderField.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
internal extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
[11/23] Compiling SimpleNetworking Exports.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
^~~~~~~~~~
[12/23] Compiling SimpleNetworking URLRequest+APIRequest.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
^~~~~~~~~~
[13/24] Compiling SimpleNetworking ContentType.swift
[14/24] Compiling SimpleNetworking Data+LogDescription.swift
[15/24] Compiling SimpleNetworking Dictionary+LogDescription.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
private static var stubs: [URLRequest: Stub] = [:]
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
override public class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
override public class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
override public func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
override public func stopLoading() {}
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:20: error: only protocols can inherit from 'AnyObject'
public final class HTTPStubProtocol: URLProtocol {
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public final class HTTPStubProtocol: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: generic parameter 'Error' could not be inferred
return stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
return stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: found this candidate
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:109:24: note: found this candidate
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
response: HTTPURLResponse(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
guard let stub = HTTPStubProtocol.stubs[request] else {
^~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
fatalError("Couldn't find stub for request \(request)")
^~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
^~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
client!.urlProtocol(self, didLoad: stub.data)
^~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
client!.urlProtocolDidFinishLoading(self)
^~~~~~
[16/24] Compiling SimpleNetworking HTTPStubProtocol.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
private static var stubs: [URLRequest: Stub] = [:]
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
override public class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
override public class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
override public func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
override public func stopLoading() {}
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:20: error: only protocols can inherit from 'AnyObject'
public final class HTTPStubProtocol: URLProtocol {
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public final class HTTPStubProtocol: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: generic parameter 'Error' could not be inferred
return stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
return stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: found this candidate
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:109:24: note: found this candidate
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
response: HTTPURLResponse(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
guard let stub = HTTPStubProtocol.stubs[request] else {
^~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
fatalError("Couldn't find stub for request \(request)")
^~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
^~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
client!.urlProtocol(self, didLoad: stub.data)
^~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
client!.urlProtocolDidFinishLoading(self)
^~~~~~
[17/24] Compiling SimpleNetworking URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/24] Compiling SimpleNetworking APIClientError.swift
[19/24] Compiling SimpleNetworking APIError.swift
[20/24] Compiling SimpleNetworking APIClient.swift
[21/24] Compiling SimpleNetworking APIClientConfiguration.swift
[22/24] Compiling SimpleNetworking APIRequest+Convenience.swift
[23/24] Compiling SimpleNetworking APIRequest.swift
[24/24] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
private static var stubs: [URLRequest: Stub] = [:]
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
override public class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
override public class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
override public func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
override public func stopLoading() {}
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:20: error: only protocols can inherit from 'AnyObject'
public final class HTTPStubProtocol: URLProtocol {
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public final class HTTPStubProtocol: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
internal extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/9] Compiling SimpleNetworking Exports.swift
[3/9] Compiling SimpleNetworking URLRequest+APIRequest.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:70:86: error: cannot find type 'URLRequest' in scope
public func addingParameters(_ parameters: [String: CustomStringConvertible]) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:88:68: error: cannot find type 'URLRequest' in scope
public func addingHeaders(_ headers: [HeaderField: String]) -> URLRequest {
^~~~~~~~~~
[4/9] Compiling SimpleNetworking URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
[5/9] Compiling SimpleNetworking HeaderField.swift
[6/9] Compiling SimpleNetworking HTTPStubProtocol.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
private static var stubs: [URLRequest: Stub] = [:]
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
override public class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
override public class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
override public func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
override public func stopLoading() {}
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:20: error: only protocols can inherit from 'AnyObject'
public final class HTTPStubProtocol: URLProtocol {
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public final class HTTPStubProtocol: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:95:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:91:9: error: generic parameter 'Error' could not be inferred
stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:117:9: error: generic parameter 'Error' could not be inferred
stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:121:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:145:67: error: missing argument for parameter 'baseURL' in call
for: URLRequest(baseURL: baseURL, apiRequest: request)
^
, baseURL: <#URL#>
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)' declared here
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:141:16: error: generic parameter 'Error' could not be inferred
return stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: in call to function 'stub(_:jsonEncoder:statusCode:headers:for:baseURL:)'
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:167:18: error: cannot find 'URLRequest' in scope
for: URLRequest(baseURL: baseURL, apiRequest: request)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:163:16: error: no exact matches in call to static method 'stub'
return stub(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:83:24: note: found this candidate
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:109:24: note: found this candidate
public static func stub<Output, Error>(
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:187:23: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
response: HTTPURLResponse(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:213:49: error: cannot find 'request' in scope
guard let stub = HTTPStubProtocol.stubs[request] else {
^~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:214:58: error: cannot find 'request' in scope
fatalError("Couldn't find stub for request \(request)")
^~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:9: error: cannot find 'client' in scope
client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
^~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:217:83: error: cannot infer contextual base in reference to member 'notAllowed'
client!.urlProtocol(self, didReceive: stub.response, cacheStoragePolicy: .notAllowed)
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:218:9: error: cannot find 'client' in scope
client!.urlProtocol(self, didLoad: stub.data)
^~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:219:9: error: cannot find 'client' in scope
client!.urlProtocolDidFinishLoading(self)
^~~~~~
[7/9] Compiling SimpleNetworking HTTPURLResponse+Logging.swift
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
internal extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/9] Compiling SimpleNetworking Dictionary+LogDescription.swift
[9/9] Emitting module SimpleNetworking
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:68:23: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let response: HTTPURLResponse
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:71:32: error: cannot find type 'URLRequest' in scope
private static var stubs: [URLRequest: Stub] = [:]
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:183:22: error: cannot find type 'URLRequest' in scope
for request: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:54: error: cannot find type 'URLRequest' in scope
override public class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:200:32: error: method does not override any method from its superclass
override public class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:77: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:62: error: cannot find type 'URLRequest' in scope
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:204:32: error: method does not override any method from its superclass
override public class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:60: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:78: error: cannot find type 'URLRequest' in scope
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:208:32: error: method does not override any method from its superclass
override public class func requestIsCacheEquivalent(_: URLRequest, to _: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:212:26: error: method does not override any method from its superclass
override public func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:222:26: error: method does not override any method from its superclass
override public func stopLoading() {}
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:20: error: only protocols can inherit from 'AnyObject'
public final class HTTPStubProtocol: URLProtocol {
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPStubProtocol.swift:65:38: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public final class HTTPStubProtocol: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/SimpleNetworking/HTTPURLResponse+Logging.swift:26:10: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
internal extension HTTPURLResponse {
^ ~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLRequest+APIRequest.swift:26:11: error: cannot find type 'URLRequest' in scope
extension URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/SimpleNetworking/URLSession+Stubbed.swift:26:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
[10/12] Compiling SimpleNetworking APIClientConfiguration.swift
[11/12] Compiling SimpleNetworking APIRequest+Convenience.swift
[12/12] Compiling SimpleNetworking APIRequest.swift
error: fatalError
BUILD FAILURE 5.10 linux