The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Stubby with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-0":/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: 1.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/bdbergeron/Stubby
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at 04dcfe5 Update docs
Cloned https://github.com/bdbergeron/Stubby.git
Revision (git rev-parse @):
04dcfe508ea31e169523598ce5fb2466ee04bcff
SUCCESS checkout https://github.com/bdbergeron/Stubby.git at 1.0.0
========================================
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-0":/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
[3/6] 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 {
^         ~~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/6] 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 {
^         ~~~~~~~~~~
[5/6] 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/6] 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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/5] 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 {
^         ~~~~~~~~~~
[3/5] 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)
                                                        ^~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] 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 {
^         ~~~~~~~~~~
[5/5] 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