Build Information
Failed to build TriforkSwiftNetworking with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/trifork/TriforkSwiftNetworking.git
Reference: main
Cloned https://github.com/trifork/TriforkSwiftNetworking.git into spi-builder-workspace
SUCCESS checkout https://github.com/trifork/TriforkSwiftNetworking.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/14] Emitting module TSNMockHelpers
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSession+Extensions.swift:3:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:2: error: Objective-C interoperability is disabled
@objc class URLSessionMockProtocol: URLProtocol {
~^~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:47: error: cannot find type 'URLRequest' in scope
override class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:25: error: method does not override any method from its superclass
override class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/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.
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/TSNMockHelpers/URLSessionMockProtocol.swift:10:25: error: method does not override any method from its superclass
override class func canInit(with task: URLSessionTask) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:70: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:55: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:25: error: method does not override any method from its superclass
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:18:19: error: method does not override any method from its superclass
override func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:37:19: error: method does not override any method from its superclass
override func stopLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:13: error: only protocols can inherit from 'AnyObject'
@objc class URLSessionMockProtocol: URLProtocol {
^
/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.
@objc class URLSessionMockProtocol: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/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.
public let response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
private init(response: URLResponse?, error: NSError?, data: Data?) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
public static func dataResponse(data: Data, response: URLResponse) -> URLSessionStubResult {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
public static func response(url: URL, statusCode: Int = 200, headers: [String: String]? = nil) -> HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
[2/14] Compiling TriforkSwiftNetworking CollectionResponse.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[3/14] Compiling TriforkSwiftNetworking EntityResponse.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[4/14] Compiling TriforkSwiftNetworking Response.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[5/14] Compiling TriforkSwiftNetworking HTTPRequest.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[6/15] Compiling TriforkSwiftNetworking URLSession+NetworkSession.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[7/15] Compiling TSNMockHelpers URLSessionMockProtocol.swift
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:2: error: Objective-C interoperability is disabled
@objc class URLSessionMockProtocol: URLProtocol {
~^~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:47: error: cannot find type 'URLRequest' in scope
override class func canInit(with request: URLRequest) -> Bool {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:6:25: error: method does not override any method from its superclass
override class func canInit(with request: URLRequest) -> Bool {
~~~~~~~~ ^
/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.
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/TSNMockHelpers/URLSessionMockProtocol.swift:10:25: error: method does not override any method from its superclass
override class func canInit(with task: URLSessionTask) -> Bool {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:70: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:55: error: cannot find type 'URLRequest' in scope
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:14:25: error: method does not override any method from its superclass
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:18:19: error: method does not override any method from its superclass
override func startLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:37:19: error: method does not override any method from its superclass
override func stopLoading() {
~~~~~~~~ ^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:4:13: error: only protocols can inherit from 'AnyObject'
@objc class URLSessionMockProtocol: URLProtocol {
^
/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.
@objc class URLSessionMockProtocol: URLProtocol {
^~~~~~~~~~~
Foundation.URLProtocol:2:18: note: 'URLProtocol' has been explicitly marked unavailable here
public typealias URLProtocol = AnyObject
^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:19:63: error: cannot find 'request' in scope
if let results = URLSessionStubResults.resultsForUrls[request.url] {
^~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:21:22: error: value of type 'URLSessionMockProtocol' has no member 'client'
self.client?.urlProtocol(self, didLoad: data)
~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:25:22: error: value of type 'URLSessionMockProtocol' has no member 'client'
self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:25:91: error: cannot infer contextual base in reference to member 'notAllowed'
self.client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:29:22: error: value of type 'URLSessionMockProtocol' has no member 'client'
self.client?.urlProtocol(self, didFailWithError: error)
~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionMockProtocol.swift:33:14: error: value of type 'URLSessionMockProtocol' has no member 'client'
self.client?.urlProtocolDidFinishLoading(self)
~~~~ ^~~~~~
[8/15] Compiling TSNMockHelpers URLSessionMockResult.swift
/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.
public let response: URLResponse?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
private init(response: URLResponse?, error: NSError?, data: Data?) {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/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.
public static func dataResponse(data: Data, response: URLResponse) -> URLSessionStubResult {
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[9/15] 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
extension URLSession {
^ ~~~~~~~~~~
[10/15] 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.
public static func response(url: URL, statusCode: Int = 200, headers: [String: String]? = nil) -> HTTPURLResponse? {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionStubResponses.swift:12:9: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
HTTPURLResponse(
^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/TSNMockHelpers/URLSessionStubResponses.swift:15:26: error: 'nil' requires a contextual type
httpVersion: nil,
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[11/15] Compiling TriforkSwiftNetworking URL+URLComponents.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[12/15] Emitting module TriforkSwiftNetworking
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[13/15] Compiling TriforkSwiftNetworking NetworkSession.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[14/15] Compiling TriforkSwiftNetworking Logger.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
[15/15] Compiling TriforkSwiftNetworking TriforkSwiftNetworkingConfig.swift
/host/spi-builder-workspace/Sources/TriforkSwiftNetworking/Config/Logger.swift:2:8: error: no such module 'os.log'
import os.log
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2