Build Information
Failed to build SimpleMDM-Swift with Swift 5.7 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guillaumealgis/SimpleMDM-Swift.git
Reference: 0.10.0
Cloned https://github.com/guillaumealgis/SimpleMDM-Swift.git into spi-builder-workspace
SUCCESS checkout https://github.com/guillaumealgis/SimpleMDM-Swift.git at 0.10.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.7
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Fetching https://github.com/mxcl/PromiseKit.git
[1/16701] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git (1.24s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.13.1 (0.43s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.13.1
Building for debugging...
[1/15] Compiling PromiseKit Configuration.swift
[2/15] Compiling PromiseKit CustomStringConvertible.swift
[3/16] Emitting module PromiseKit
[4/16] Compiling PromiseKit Box.swift
[5/16] Compiling PromiseKit Catchable.swift
[6/16] Compiling PromiseKit after.swift
[7/16] Compiling PromiseKit firstly.swift
[8/16] Compiling PromiseKit hang.swift
[9/16] Compiling PromiseKit race.swift
[10/16] Compiling PromiseKit LogEvent.swift
[11/16] Compiling PromiseKit Promise.swift
[12/16] Compiling PromiseKit Resolver.swift
[13/16] Compiling PromiseKit Thenable.swift
[14/16] Compiling PromiseKit Error.swift
[15/16] Compiling PromiseKit Guarantee.swift
[16/16] Compiling PromiseKit when.swift
[19/40] Compiling SimpleMDM App.swift
[20/40] Compiling SimpleMDM AppGroup.swift
[21/40] Compiling SimpleMDM CustomAttribute.swift
[22/40] Compiling SimpleMDM CustomAttributeValue.swift
[23/40] Compiling SimpleMDM CustomConfigurationProfile.swift
[24/40] Compiling SimpleMDM Device.swift
[25/43] Compiling SimpleMDM SimpleMDM.swift
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: URLSessionDataTaskProtocol {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
^~~~~~~~~~
[26/43] Compiling SimpleMDM URL+CustomInit.swift
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: URLSessionDataTaskProtocol {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
^~~~~~~~~~
[27/43] Compiling SimpleMDM URLSession.swift
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: URLSessionDataTaskProtocol {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)[28/43] Compiling SimpleMDM Cursor.swift
[29/43] Compiling SimpleMDM Decoding.swift
[30/43] Compiling SimpleMDM Error.swift
[31/43] Emitting module SimpleMDM
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
private func buildURLRequest(withURL url: URL) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: URLSessionProtocol {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: URLSessionDataTaskProtocol {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[32/43] Compiling SimpleMDM Payload.swift
[33/43] Compiling SimpleMDM Relationship.swift
[34/43] Compiling SimpleMDM Account.swift
[35/43] Compiling SimpleMDM SimpleMDM+PromiseKit.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
private func buildURLRequest(withURL url: URL) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .default)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
let session = URLSession(configuration: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:192:51: error: cannot convert value of type 'NetworkError' to expected argument type '_'
let error = error ?? NetworkError.unknown
^
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: type of expression is ambiguous without more context
guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
switch httpResponse.statusCode {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
~~~~~~~~~~~~ ^~~~~~~~~~
[36/43] Compiling SimpleMDM Version.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
private func buildURLRequest(withURL url: URL) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .default)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
let session = URLSession(configuration: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:192:51: error: cannot convert value of type 'NetworkError' to expected argument type '_'
let error = error ?? NetworkError.unknown
^
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: type of expression is ambiguous without more context
guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
switch httpResponse.statusCode {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
~~~~~~~~~~~~ ^~~~~~~~~~
[37/43] Compiling SimpleMDM Networking.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
private func buildURLRequest(withURL url: URL) throws -> URLRequest {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
let session = URLSession(configuration: .default)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
let session = URLSession(configuration: .default)
~^~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
var urlRequest = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
let urlRequest: URLRequest
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:192:51: error: cannot convert value of type 'NetworkError' to expected argument type '_'
let error = error ?? NetworkError.unknown
^
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: type of expression is ambiguous without more context
guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
~~~~~~~~~~~~~^~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
~~~~~~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
switch httpResponse.statusCode {
~~~~~~~~~~~~ ^~~~~~~~~~
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
~~~~~~~~~~~~ ^~~~~~~~~~
[38/43] Compiling SimpleMDM DeviceGroup.swift
[39/43] Compiling SimpleMDM InstalledApp.swift
[40/43] Compiling SimpleMDM ManagedConfig.swift
[41/43] Compiling SimpleMDM PushCertificate.swift
[42/43] Compiling SimpleMDM Resource.generated.swift
[43/43] Compiling SimpleMDM Resource.swift
BUILD FAILURE 5.7 linux
Build Machine: Linux 1