Build Information
Failed to build SimpleMDM-Swift with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4606859-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.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.9
Building package at path: spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/mxcl/PromiseKit.git
[1/16701] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git (1.00s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.13.1 (0.28s)
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 Box.swift
[2/15] Compiling PromiseKit Catchable.swift
[3/16] Compiling PromiseKit after.swift
[4/16] Compiling PromiseKit firstly.swift
[5/16] Compiling PromiseKit Configuration.swift
[6/16] Compiling PromiseKit CustomStringConvertible.swift
[7/16] Compiling PromiseKit Resolver.swift
[8/16] Compiling PromiseKit Thenable.swift
[9/16] Compiling PromiseKit Error.swift
[10/16] Compiling PromiseKit Guarantee.swift
[11/16] Emitting module PromiseKit
[12/16] Compiling PromiseKit LogEvent.swift
[13/16] Compiling PromiseKit Promise.swift
[14/16] Compiling PromiseKit when.swift
[15/16] Compiling PromiseKit hang.swift
[16/16] Compiling PromiseKit race.swift
[19/40] Compiling SimpleMDM DeviceGroup.swift
[20/40] Compiling SimpleMDM InstalledApp.swift
[21/40] Compiling SimpleMDM ManagedConfig.swift
[22/40] Compiling SimpleMDM App.swift
[23/40] Compiling SimpleMDM AppGroup.swift
[24/40] Compiling SimpleMDM CustomAttribute.swift
[25/43] Compiling SimpleMDM CustomAttributeValue.swift
[26/43] Compiling SimpleMDM CustomConfigurationProfile.swift
[27/43] Compiling SimpleMDM Device.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/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/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public typealias CompletionClosure<Value> = (Result<Value>) -> Void
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
/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
^
[29/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 {
^~~~~~~~~~
[30/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 {
^~~~~~~~~~
[31/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 {
^~~~~~~~~~
[32/43] Compiling SimpleMDM Cursor.swift
[33/43] Compiling SimpleMDM Decoding.swift
[34/43] Compiling SimpleMDM Error.swift
[35/43] Compiling SimpleMDM Payload.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
[36/43] Compiling SimpleMDM Relationship.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
[37/43] Compiling SimpleMDM Account.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
[38/43] Compiling SimpleMDM PushCertificate.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public typealias CompletionClosure<Value> = (Result<Value>) -> Void
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
[39/43] Compiling SimpleMDM Resource.generated.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public typealias CompletionClosure<Value> = (Result<Value>) -> Void
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
[40/43] Compiling SimpleMDM Resource.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
public typealias CompletionClosure<Value> = (Result<Value>) -> Void
^
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:85:13: note: type declared here
public enum Result<T> {
^
[41/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: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
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)
~~~~~~~~~~~~ ^~~~~~~~~~
[42/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: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
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)
~~~~~~~~~~~~ ^~~~~~~~~~
[43/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: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
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)
~~~~~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1