Build Information
Failed to build TriforkSwiftNetworking, reference main (4ff071
), with Swift 6.0 for Linux on 1 Nov 2024 19:58:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trifork/TriforkSwiftNetworking.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/trifork/TriforkSwiftNetworking
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4ff0711 Merge pull request #5 from trifork/tkc/mock-helpers
Cloned https://github.com/trifork/TriforkSwiftNetworking.git
Revision (git rev-parse @):
4ff071159447d6f4fe6c4454d4538aabe112029e
SUCCESS checkout https://github.com/trifork/TriforkSwiftNetworking.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/trifork/TriforkSwiftNetworking.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/17] Emitting module TriforkSwiftNetworking
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[5/18] Compiling TSNMockHelpers URLSessionStubResponses.swift
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionStubResponses.swift:11:103: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// - statusCode: Defaults to `200`
10 | /// - headers: HTTP headers.
11 | public static func response(url: URL, statusCode: Int = 200, headers: [String: String]? = nil) -> HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | HTTPURLResponse(
13 | url: url,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionStubResponses.swift:12:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
10 | /// - headers: HTTP headers.
11 | public static func response(url: URL, statusCode: Int = 200, headers: [String: String]? = nil) -> HTTPURLResponse? {
12 | HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
13 | url: url,
14 | statusCode: statusCode,
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionStubResponses.swift:15:26: error: 'nil' requires a contextual type
13 | url: url,
14 | statusCode: statusCode,
15 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
16 | headerFields: headers
17 | )
[6/18] Compiling TSNMockHelpers URLSessionMockResult.swift
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:6:23: warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public struct URLSessionStubResults {
5 | /// Contains stub results for specific URLs, which will be used when mocking `URLSession` via `URLSessionMockProtocol`
6 | public static var resultsForUrls: [URL?: URLSessionStubResult] = [:]
| |- warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resultsForUrls' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'resultsForUrls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | /// Resets the stub storage
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:16:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Stub results for `URLSession` mocking via `URLSessionMockProtocol`
15 | public struct URLSessionStubResult {
16 | public let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public let error: NSError?
18 | public let data: Data?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:21:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Private init to make sure that we don't create unrealistic setups
21 | private init(response: URLResponse?, error: NSError?, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.response = response
23 | self.error = error
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:28:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Stub for successful networkRequest with response and data
28 | public static func dataResponse(data: Data, response: URLResponse) -> URLSessionStubResult {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | URLSessionStubResult(
30 | response: response,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
[7/18] Compiling TriforkSwiftNetworking URLSession+NetworkSession.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[8/18] Compiling TriforkSwiftNetworking EntityResponse.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[9/18] Compiling TriforkSwiftNetworking Response.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[10/18] Compiling TriforkSwiftNetworking CollectionResponse.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[11/18] Compiling TriforkSwiftNetworking HTTPRequest.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[12/18] Compiling TriforkSwiftNetworking NetworkSession.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[13/18] Compiling TriforkSwiftNetworking URL+URLComponents.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[14/18] Compiling TriforkSwiftNetworking Logger.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
[15/18] Compiling TriforkSwiftNetworking TriforkSwiftNetworkingConfig.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
1 | import Foundation
2 | import os.log
| `- error: no such module 'os.log'
3 |
4 | final class Logger {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/18] Emitting module TSNMockHelpers
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
4 | /// Creates a `URLSession` which mocks all requests with results provided via `URLSessionStubResults`
5 | public static var mockSession: URLSession {
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:2: error: Objective-C interoperability is disabled
2 |
3 | /// Internal protocol class for mocking `URLSession`
4 | @objc class URLSessionMockProtocol: URLProtocol {
| `- error: Objective-C interoperability is disabled
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:47: error: cannot find type 'URLRequest' in scope
4 | @objc class URLSessionMockProtocol: URLProtocol {
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
7 | return true
8 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:25: error: method does not override any method from its superclass
4 | @objc class URLSessionMockProtocol: URLProtocol {
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
| `- error: method does not override any method from its superclass
7 | return true
8 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:10:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | override class func canInit(with task: URLSessionTask) -> Bool {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | return true
12 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:10:25: error: method does not override any method from its superclass
8 | }
9 |
10 | override class func canInit(with task: URLSessionTask) -> Bool {
| `- error: method does not override any method from its superclass
11 | return true
12 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:70: error: cannot find type 'URLRequest' in scope
12 | }
13 |
14 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 | return request
16 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:55: error: cannot find type 'URLRequest' in scope
12 | }
13 |
14 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 | return request
16 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:25: error: method does not override any method from its superclass
12 | }
13 |
14 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: method does not override any method from its superclass
15 | return request
16 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:18:19: error: method does not override any method from its superclass
16 | }
17 |
18 | override func startLoading() {
| `- error: method does not override any method from its superclass
19 | if let results = URLSessionStubResults.resultsForUrls[request.url] {
20 | if let data = results.data {
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:37:19: error: method does not override any method from its superclass
35 |
36 | // This method is required, but we doesn't need to do anything
37 | override func stopLoading() {
| `- error: method does not override any method from its superclass
38 |
39 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | /// Internal protocol class for mocking `URLSession`
4 | @objc class URLSessionMockProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:6:23: warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
4 | public struct URLSessionStubResults {
5 | /// Contains stub results for specific URLs, which will be used when mocking `URLSession` via `URLSessionMockProtocol`
6 | public static var resultsForUrls: [URL?: URLSessionStubResult] = [:]
| |- warning: static property 'resultsForUrls' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'resultsForUrls' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'resultsForUrls' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
7 |
8 | /// Resets the stub storage
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:16:26: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | /// Stub results for `URLSession` mocking via `URLSessionMockProtocol`
15 | public struct URLSessionStubResult {
16 | public let response: URLResponse?
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | public let error: NSError?
18 | public let data: Data?
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:21:28: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 |
20 | /// Private init to make sure that we don't create unrealistic setups
21 | private init(response: URLResponse?, error: NSError?, data: Data?) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.response = response
23 | self.error = error
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockResult.swift:28:59: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
26 |
27 | /// Stub for successful networkRequest with response and data
28 | public static func dataResponse(data: Data, response: URLResponse) -> URLSessionStubResult {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
29 | URLSessionStubResult(
30 | response: response,
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionStubResponses.swift:11:103: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 | /// - statusCode: Defaults to `200`
10 | /// - headers: HTTP headers.
11 | public static func response(url: URL, statusCode: Int = 200, headers: [String: String]? = nil) -> HTTPURLResponse? {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 | HTTPURLResponse(
13 | url: url,
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
[17/18] Compiling TSNMockHelpers URLSessionMockProtocol.swift
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:2: error: Objective-C interoperability is disabled
2 |
3 | /// Internal protocol class for mocking `URLSession`
4 | @objc class URLSessionMockProtocol: URLProtocol {
| `- error: Objective-C interoperability is disabled
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:47: error: cannot find type 'URLRequest' in scope
4 | @objc class URLSessionMockProtocol: URLProtocol {
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
| `- error: cannot find type 'URLRequest' in scope
7 | return true
8 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:25: error: method does not override any method from its superclass
4 | @objc class URLSessionMockProtocol: URLProtocol {
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
| `- error: method does not override any method from its superclass
7 | return true
8 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:10:44: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | }
9 |
10 | override class func canInit(with task: URLSessionTask) -> Bool {
| `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | return true
12 | }
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionTask = AnyObject
| `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:10:25: error: method does not override any method from its superclass
8 | }
9 |
10 | override class func canInit(with task: URLSessionTask) -> Bool {
| `- error: method does not override any method from its superclass
11 | return true
12 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:70: error: cannot find type 'URLRequest' in scope
12 | }
13 |
14 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 | return request
16 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:55: error: cannot find type 'URLRequest' in scope
12 | }
13 |
14 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
15 | return request
16 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:25: error: method does not override any method from its superclass
12 | }
13 |
14 | override class func canonicalRequest(for request: URLRequest) -> URLRequest {
| `- error: method does not override any method from its superclass
15 | return request
16 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:18:19: error: method does not override any method from its superclass
16 | }
17 |
18 | override func startLoading() {
| `- error: method does not override any method from its superclass
19 | if let results = URLSessionStubResults.resultsForUrls[request.url] {
20 | if let data = results.data {
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:37:19: error: method does not override any method from its superclass
35 |
36 | // This method is required, but we doesn't need to do anything
37 | override func stopLoading() {
| `- error: method does not override any method from its superclass
38 |
39 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:37: error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
2 |
3 | /// Internal protocol class for mocking `URLSession`
4 | @objc class URLSessionMockProtocol: URLProtocol {
| `- error: 'URLProtocol' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | override class func canInit(with request: URLRequest) -> Bool {
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLProtocol = AnyObject
| `- note: 'URLProtocol' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:19:63: error: cannot find 'request' in scope
17 |
18 | override func startLoading() {
19 | if let results = URLSessionStubResults.resultsForUrls[request.url] {
| `- error: cannot find 'request' in scope
20 | if let data = results.data {
21 | self.client?.urlProtocol(self, didLoad: data)
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:21:22: error: value of type 'URLSessionMockProtocol' has no member 'client'
19 | if let results = URLSessionStubResults.resultsForUrls[request.url] {
20 | if let data = results.data {
21 | self.client?.urlProtocol(self, didLoad: data)
| `- error: value of type 'URLSessionMockProtocol' has no member 'client'
22 | }
23 |
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:25:22: error: value of type 'URLSessionMockProtocol' has no member 'client'
23 |
24 | if let response = results.response {
25 | self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
| `- error: value of type 'URLSessionMockProtocol' has no member 'client'
26 | }
27 |
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:25:91: error: cannot infer contextual base in reference to member 'notAllowed'
23 |
24 | if let response = results.response {
25 | self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
| `- error: cannot infer contextual base in reference to member 'notAllowed'
26 | }
27 |
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:29:22: error: value of type 'URLSessionMockProtocol' has no member 'client'
27 |
28 | if let error = results.error {
29 | self.client?.urlProtocol(self, didFailWithError: error)
| `- error: value of type 'URLSessionMockProtocol' has no member 'client'
30 | }
31 | }
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:33:14: error: value of type 'URLSessionMockProtocol' has no member 'client'
31 | }
32 |
33 | self.client?.urlProtocolDidFinishLoading(self)
| `- error: value of type 'URLSessionMockProtocol' has no member 'client'
34 | }
35 |
[18/18] Compiling TSNMockHelpers URLSession+Extensions.swift
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
1 | import Foundation
2 |
3 | extension URLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
4 | /// Creates a `URLSession` which mocks all requests with results provided via `URLSessionStubResults`
5 | public static var mockSession: URLSession {
BUILD FAILURE 6.0 linux