Build Information
Failed to build Stubby 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/bdbergeron/Stubby.git
Reference: main
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/bdbergeron/Stubby
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at ff7d288 Add more APIs (#4)
Cloned https://github.com/bdbergeron/Stubby.git
Revision (git rev-parse @):
ff7d288c6139a3708bf1b42e9edebb7c20bdff49
SUCCESS checkout https://github.com/bdbergeron/Stubby.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/bdbergeron/Stubby.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-docc-symbolkit
Fetching https://github.com/apple/swift-docc-plugin
[1/1457] Fetching swift-docc-plugin
[555/3941] Fetching swift-docc-plugin, swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.40s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.40s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (1.09s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.82s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[5/8] Emitting module Stubby
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:21:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:19:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:34:20: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:36:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
let cacheStoragePolicy: URLCache.StoragePolicy
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:56:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:45: error: cannot find type 'URLRequest' in scope
override class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:23: error: method does not override any method from its superclass
override class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
override class func canInit(with task: URLSessionTask) -> Bool {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:23: error: method does not override any method from its superclass
override class func canInit(with task: URLSessionTask) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:68: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:53: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:23: error: method does not override any method from its superclass
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:39:17: error: method does not override any method from its superclass
override func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:56:17: error: method does not override any method from its superclass
override func stopLoading() { }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:13: error: only protocols can inherit from 'AnyObject'
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:74: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:5:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:89:26: error: cannot find type 'URLRequest' in scope
response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:98:25: error: cannot find type 'URLRequest' in scope
public let response: (URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:112:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:116:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error> {
^~~~~~~~~~
[6/8] Compiling Stubby StubbyResponse.swift
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:21:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:19:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:34:20: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:36:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
let cacheStoragePolicy: URLCache.StoragePolicy
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:56:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:60:25: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlResponse = HTTPURLResponse(
^~~~~~~~~~~~~~~
[7/8] Compiling Stubby StubbyURLProtocol.swift
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:45: error: cannot find type 'URLRequest' in scope
override class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:23: error: method does not override any method from its superclass
override class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
override class func canInit(with task: URLSessionTask) -> Bool {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:23: error: method does not override any method from its superclass
override class func canInit(with task: URLSessionTask) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:68: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:53: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:23: error: method does not override any method from its superclass
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:39:17: error: method does not override any method from its superclass
override func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:56:17: error: method does not override any method from its superclass
override func stopLoading() { }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:13: error: only protocols can inherit from 'AnyObject'
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:74: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:31:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
guard let request = task.originalRequest else { return false }
~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:40:15: error: cannot find 'client' in scope
guard let client else { return }
^~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:43:57: error: cannot find 'request' in scope
let response = try ResponseProvider.response(for: request)
^~~~~~~
[8/8] Compiling Stubby URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:5:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:89:26: error: cannot find type 'URLRequest' in scope
response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:98:25: error: cannot find type 'URLRequest' in scope
public let response: (URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:112:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:116:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:69:26: error: cannot find type 'URLRequest' in scope
response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
^~~~~~~~~~
error: fatalError
[0/1] Planning build
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[1/1] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values
switch dependency {
^
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: note: handle unknown values using "@unknown default"
switch dependency {
^
[2/2] Compiling plugin Swift-DocC Preview
Building for debugging...
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] Emitting module Stubby
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:21:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:19:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:34:20: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:36:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
let cacheStoragePolicy: URLCache.StoragePolicy
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:56:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:45: error: cannot find type 'URLRequest' in scope
override class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:23: error: method does not override any method from its superclass
override class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
override class func canInit(with task: URLSessionTask) -> Bool {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:23: error: method does not override any method from its superclass
override class func canInit(with task: URLSessionTask) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:68: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:53: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:23: error: method does not override any method from its superclass
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:39:17: error: method does not override any method from its superclass
override func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:56:17: error: method does not override any method from its superclass
override func stopLoading() { }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:13: error: only protocols can inherit from 'AnyObject'
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:74: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:5:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:89:26: error: cannot find type 'URLRequest' in scope
response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:98:25: error: cannot find type 'URLRequest' in scope
public let response: (URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:112:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:116:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error> {
^~~~~~~~~~
[5/7] Compiling Stubby StubbyURLProtocol.swift
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:45: error: cannot find type 'URLRequest' in scope
override class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:26:23: error: method does not override any method from its superclass
override class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
override class func canInit(with task: URLSessionTask) -> Bool {
^~~~~~~~~~~~~~
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
public typealias URLSessionTask = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:30:23: error: method does not override any method from its superclass
override class func canInit(with task: URLSessionTask) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:68: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:53: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:35:23: error: method does not override any method from its superclass
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:39:17: error: method does not override any method from its superclass
override func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:56:17: error: method does not override any method from its superclass
override func stopLoading() { }
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:13: error: only protocols can inherit from 'AnyObject'
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:22:74: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
final class StubbyURLProtocol<ResponseProvider: StubbyResponseProvider>: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:31:30: error: value of type 'URLSessionTask' (aka 'AnyObject') has no member 'originalRequest'
guard let request = task.originalRequest else { return false }
~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:40:15: error: cannot find 'client' in scope
guard let client else { return }
^~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:43:57: error: cannot find 'request' in scope
let response = try ResponseProvider.response(for: request)
^~~~~~~
[6/7] Compiling Stubby URLSession+Stubbed.swift
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:5:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:89:26: error: cannot find type 'URLRequest' in scope
response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:98:25: error: cannot find type 'URLRequest' in scope
public let response: (URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:112:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:116:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error> {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:12:35: error: cannot find type 'URLRequest' in scope
static func respondsTo(request: URLRequest) -> Bool
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/StubbyURLProtocol.swift:17:37: error: cannot find type 'URLRequest' in scope
static func response(for request: URLRequest) throws -> Result<StubbyResponse, Error>
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Stubby/URLSession+Stubbed.swift:69:26: error: cannot find type 'URLRequest' in scope
response: @escaping (URLRequest) throws -> Result<StubbyResponse, Error>)
^~~~~~~~~~
[7/7] Compiling Stubby StubbyResponse.swift
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:21:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:19:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
urlResponse: URLResponse,
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:34:20: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlResponse: URLResponse
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:36:36: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
let cacheStoragePolicy: URLCache.StoragePolicy
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:56:34: error: 'StoragePolicy' is not a member type of type 'Foundation.URLCache' (aka 'AnyObject')
cacheStoragePolicy: URLCache.StoragePolicy = .notAllowed)
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/Stubby/StubbyResponse.swift:60:25: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let urlResponse = HTTPURLResponse(
^~~~~~~~~~~~~~~
error: fatalError
BUILD FAILURE 5.10 linux