Build Information
Failed to build PactConsumerSwift with Swift 5.9 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4609320-0":/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.24.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/DiUS/pact-consumer-swift.git
Reference: v0.10.2
Cloned https://github.com/DiUS/pact-consumer-swift.git into /host/spi-builder-workspace
Revision (git rev-parse @):
SUCCESS checkout https://github.com/DiUS/pact-consumer-swift.git at v0.10.2
========================================
Build
========================================
Selected platform: linux
Swift version: 5.9
Building package at path: /host/spi-builder-workspace
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/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/7] Emitting module PactConsumerSwift
/host/spi-builder-workspace/Sources/Interaction.swift:8:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Interaction.swift:42:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Interaction.swift:65:4: error: Objective-C interoperability is disabled
@objc(withRequestHTTPMethod: path: query: headers: body:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Interaction.swift:102:4: error: Objective-C interoperability is disabled
@objc(willRespondWithHTTPStatus: headers: body:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Interaction.swift:118:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:3:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:6:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:18:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:26:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:4:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:13:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:47:4: error: Objective-C interoperability is disabled
@objc(initWithProvider: consumer: andVerificationService:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:63:4: error: Objective-C interoperability is disabled
@objc(initWithProvider: consumer:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:81:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:98:4: error: Objective-C interoperability is disabled
@objc(uponReceiving:)
~^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:120:4: error: Objective-C interoperability is disabled
@objc(run:)
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:141:4: error: Objective-C interoperability is disabled
@objc(run: withTimeout:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:276:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
private extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:306:22: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
extension URLSession.APIServiceError: LocalizedError {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:12: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:39: error: cannot infer contextual base in reference to member 'ephemeral'
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:82: error: cannot infer contextual base in reference to member 'main'
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
~^~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:3:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:9:4: error: Objective-C interoperability is disabled
@objc public let url: String
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:10:4: error: Objective-C interoperability is disabled
@objc public let port: Int
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:11:4: error: Objective-C interoperability is disabled
@objc public let allowInsecureCertificates: Bool
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:55:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:71:94: error: cannot find type 'URLRequest' in scope
private func jsonEncode(_ request: URLRequest, with parameters: [String: Any]) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:71:40: error: cannot find type 'URLRequest' in scope
private func jsonEncode(_ request: URLRequest, with parameters: [String: Any]) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:82:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port: allowInsecureCertificate:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:93:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port:)
~^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:98:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port: session:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:99:88: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public convenience init(url: String = "http://localhost", port: Int = 1234, session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:187:57: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func handleResponse(result: Result<String, URLSession.APIServiceError>, completion: @escaping VoidHandler) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:196:57: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func handleResponse(result: Result<String, URLSession.APIServiceError>, completion: @escaping StringHandler) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:209:36: error: cannot find type 'URLSessionDelegate' in scope
extension PactVerificationService: URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:214:46: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:212:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly ma
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/7] Emitting module PactConsumerSwift
/host/spi-builder-workspace/Sources/Interaction.swift:8:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Interaction.swift:42:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Interaction.swift:65:4: error: Objective-C interoperability is disabled
@objc(withRequestHTTPMethod: path: query: headers: body:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Interaction.swift:102:4: error: Objective-C interoperability is disabled
@objc(willRespondWithHTTPStatus: headers: body:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Interaction.swift:118:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:3:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:6:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:18:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:26:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:4:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:13:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:47:4: error: Objective-C interoperability is disabled
@objc(initWithProvider: consumer: andVerificationService:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:63:4: error: Objective-C interoperability is disabled
@objc(initWithProvider: consumer:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:81:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:98:4: error: Objective-C interoperability is disabled
@objc(uponReceiving:)
~^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:120:4: error: Objective-C interoperability is disabled
@objc(run:)
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:141:4: error: Objective-C interoperability is disabled
@objc(run: withTimeout:)
~^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:276:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
private extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:306:22: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
extension URLSession.APIServiceError: LocalizedError {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:12: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:39: error: cannot infer contextual base in reference to member 'ephemeral'
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:82: error: cannot infer contextual base in reference to member 'main'
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
~^~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:3:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:9:4: error: Objective-C interoperability is disabled
@objc public let url: String
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:10:4: error: Objective-C interoperability is disabled
@objc public let port: Int
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:11:4: error: Objective-C interoperability is disabled
@objc public let allowInsecureCertificates: Bool
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:55:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:71:94: error: cannot find type 'URLRequest' in scope
private func jsonEncode(_ request: URLRequest, with parameters: [String: Any]) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:71:40: error: cannot find type 'URLRequest' in scope
private func jsonEncode(_ request: URLRequest, with parameters: [String: Any]) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:82:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port: allowInsecureCertificate:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:93:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port:)
~^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:98:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port: session:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:99:88: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public convenience init(url: String = "http://localhost", port: Int = 1234, session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:187:57: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func handleResponse(result: Result<String, URLSession.APIServiceError>, completion: @escaping VoidHandler) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:196:57: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func handleResponse(result: Result<String, URLSession.APIServiceError>, completion: @escaping StringHandler) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:209:36: error: cannot find type 'URLSessionDelegate' in scope
extension PactVerificationService: URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:214:46: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:212:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:213:27: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
didReceive challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:231:54: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completion: @escaping (Result<String, URLSession.APIServiceError>) -> Void
~~~~~~~~~~ ^
[2/7] Compiling PactConsumerSwift PactVerificationService.swift
/host/spi-builder-workspace/Sources/PactVerificationService.swift:276:9: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
private extension URLSession {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:306:22: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
extension URLSession.APIServiceError: LocalizedError {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:12: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:39: error: cannot infer contextual base in reference to member 'ephemeral'
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
~^~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:18:82: error: cannot infer contextual base in reference to member 'main'
return URLSession(configuration: .ephemeral, delegate: self, delegateQueue: .main)
~^~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:3:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:9:4: error: Objective-C interoperability is disabled
@objc public let url: String
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:10:4: error: Objective-C interoperability is disabled
@objc public let port: Int
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:11:4: error: Objective-C interoperability is disabled
@objc public let allowInsecureCertificates: Bool
~^~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:55:35: error: cannot find type 'URLRequest' in scope
func asURLRequest() throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:71:94: error: cannot find type 'URLRequest' in scope
private func jsonEncode(_ request: URLRequest, with parameters: [String: Any]) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:71:40: error: cannot find type 'URLRequest' in scope
private func jsonEncode(_ request: URLRequest, with parameters: [String: Any]) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:82:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port: allowInsecureCertificate:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:93:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port:)
~^~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:98:4: error: Objective-C interoperability is disabled
@objc(initWithUrl: port: session:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:99:88: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public convenience init(url: String = "http://localhost", port: Int = 1234, session: URLSession) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:187:57: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func handleResponse(result: Result<String, URLSession.APIServiceError>, completion: @escaping VoidHandler) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:196:57: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
func handleResponse(result: Result<String, URLSession.APIServiceError>, completion: @escaping StringHandler) {
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:209:36: error: cannot find type 'URLSessionDelegate' in scope
extension PactVerificationService: URLSessionDelegate {
^~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:214:46: error: 'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:212:16: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
_ session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:213:27: error: 'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
didReceive challenge: URLAuthenticationChallenge,
^~~~~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLAuthenticationChallenge:2:18: note: 'URLAuthenticationChallenge' has been explicitly marked unavailable here
public typealias URLAuthenticationChallenge = AnyObject
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:231:54: error: 'APIServiceError' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
completion: @escaping (Result<String, URLSession.APIServiceError>) -> Void
~~~~~~~~~~ ^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:57:24: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url.appendingPathComponent(path))
^~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:151:55: error: cannot convert value of type 'PactVerificationService.StringHandler' (aka '(Result<String, NSError>) -> ()') to expected argument type 'PactVerificationService.VoidHandler' (aka '(Result<(), NSError>) -> ()')
self.handleResponse(result: result, completion: completion)
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:151:55: note: arguments to generic parameter 'Success' ('Void' and 'String') are expected to be equal
self.handleResponse(result: result, completion: completion)
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:168:56: error: cannot convert value of type 'PactVerificationService.StringHandler' (aka '(Result<String, NSError>) -> ()') to expected argument type 'PactVerificationService.VoidHandler' (aka '(Result<(), NSError>) -> ()')
self.handleResponse(result: result, completion: completion)
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:168:56: note: arguments to generic parameter 'Success' ('Void' and 'String') are expected to be equal
self.handleResponse(result: result, completion: completion)
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:218:57: error: cannot find 'NSURLAuthenticationMethodServerTrust' in scope
challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:218:17: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:219:71: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
["localhost", "127.0.0.1", "0.0.0.0"].contains(where: challenge.protectionSpace.host.contains),
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:220:35: error: value of type 'URLAuthenticationChallenge' (aka 'AnyObject') has no member 'protectionSpace'
let serverTrust = challenge.protectionSpace.serverTrust
~~~~~~~~~ ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:222:28: error: cannot infer contextual base in reference to member 'performDefaultHandling'
completionHandler(.performDefaultHandling, nil)
~^~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:222:52: error: 'nil' requires a contextual type
completionHandler(.performDefaultHandling, nil)
^
/host/spi-builder-workspace/Sources/PactVerificationService.swift:225:22: error: 'URLCredential' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let credential = URLCredential(trust: serverTrust)
^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:226:24: error: cannot infer contextual base in reference to member 'useCredential'
completionHandler(.useCredential, credential)
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:252:19: error: cannot infer contextual base in reference to member 'failure'
completion(.failure(.dataTaskError(error)))
~^~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:252:28: error: cannot infer contextual base in reference to member 'dataTaskError'
completion(.failure(.dataTaskError(error)))
~^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/PactVerificationService.swift:287:27: error: cannot find type 'URLRequest' in scope
func dataTask(with url: URLRequest, result: @escaping (Result<(URLResponse, Data), Error>) -> Void) -> URLSessionDataTask {
^~~~~~~~~~
[3/7] Compiling PactConsumerSwift MockService.swift
/host/spi-builder-workspace/Sources/MockService.swift:4:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:13:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:47:4: error: Objective-C interoperability is disabled
@objc(initWithProvider: consumer: andVerificationService:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:63:4: error: Objective-C interoperability is disabled
@objc(initWithProvider: consumer:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:81:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/MockService.swift:98:4: error: Objective-C interoperability is disabled
@objc(uponReceiving:)
~^~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:120:4: error: Objective-C interoperability is disabled
@objc(run:)
~^~~~~~~~~~
/host/spi-builder-workspace/Sources/MockService.swift:141:4: error: Objective-C interoperability is disabled
@objc(run: withTimeout:)
~^~~~~~~~~~~~~~~~~~~~~~~
[4/7] Compiling PactConsumerSwift Interaction.swift
/host/spi-builder-workspace/Sources/Interaction.swift:8:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Interaction.swift:42:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Interaction.swift:65:4: error: Objective-C interoperability is disabled
@objc(withRequestHTTPMethod: path: query: headers: body:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Interaction.swift:102:4: error: Objective-C interoperability is disabled
@objc(willRespondWithHTTPStatus: headers: body:)
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/Interaction.swift:118:4: error: Objective-C interoperability is disabled
@objc
~^~~~
[5/7] Compiling PactConsumerSwift Matcher.swift
/host/spi-builder-workspace/Sources/Matcher.swift:3:2: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:6:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:18:4: error: Objective-C interoperability is disabled
@objc
~^~~~
/host/spi-builder-workspace/Sources/Matcher.swift:26:4: error: Objective-C interoperability is disabled
@objc
~^~~~
[6/7] Compiling PactConsumerSwift ErrorReporter.swift
[7/7] Compiling PactConsumerSwift ErrorReporterXCTest.swift
error: fatalError
BUILD FAILURE 5.9 linux