Build Information
Failed to build SimpleMDM-Swift with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/guillaumealgis/SimpleMDM-Swift.git
Reference: 0.10.0
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/guillaumealgis/SimpleMDM-Swift
* tag 0.10.0 -> FETCH_HEAD
HEAD is now at f5557fb Bump version 0.9.0 -> 0.10.0
Cloned https://github.com/guillaumealgis/SimpleMDM-Swift.git
Revision (git rev-parse @):
f5557fb43306c33e2537aec76d35c47ca97b607d
SUCCESS checkout https://github.com/guillaumealgis/SimpleMDM-Swift.git at 0.10.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/guillaumealgis/SimpleMDM-Swift.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/mxcl/PromiseKit.git
[1/16838] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (0.96s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.13.1 (0.41s)
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...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/18] Compiling PromiseKit hang.swift
[5/18] Compiling PromiseKit race.swift
[6/19] Compiling PromiseKit LogEvent.swift
[7/19] Compiling PromiseKit Promise.swift
[8/19] Compiling PromiseKit after.swift
[9/19] Compiling PromiseKit firstly.swift
[10/19] Compiling PromiseKit Resolver.swift
[11/19] Compiling PromiseKit Thenable.swift
[12/19] Compiling PromiseKit Configuration.swift
[13/19] Compiling PromiseKit CustomStringConvertible.swift
[14/19] Compiling PromiseKit Box.swift
[15/19] Compiling PromiseKit Catchable.swift
[16/19] Compiling PromiseKit Error.swift
[17/19] Compiling PromiseKit Guarantee.swift
[18/19] Emitting module PromiseKit
[19/19] Compiling PromiseKit when.swift
[21/42] Compiling SimpleMDM DeviceGroup.swift
[22/42] Compiling SimpleMDM InstalledApp.swift
[23/42] Compiling SimpleMDM ManagedConfig.swift
[24/45] Compiling SimpleMDM App.swift
[25/45] Compiling SimpleMDM AppGroup.swift
[26/45] Compiling SimpleMDM CustomAttribute.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/45] 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
^
[28/45] 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)
~~~~~~~~~~~~ ^~~~~~~~~~
[29/45] 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)
~~~~~~~~~~~~ ^~~~~~~~~~
[30/45] 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)
~~~~~~~~~~~~ ^~~~~~~~~~
[31/45] 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 {
^~~~~~~~~~
[32/45] 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 {
^~~~~~~~~~
[33/45] 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 {
^~~~~~~~~~
[34/45] Compiling SimpleMDM Cursor.swift
[35/45] Compiling SimpleMDM Decoding.swift
[36/45] Compiling SimpleMDM Error.swift
[37/45] 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> {
^
[38/45] 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> {
^
[39/45] 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> {
^
[40/45] Compiling SimpleMDM CustomAttributeValue.swift
[41/45] Compiling SimpleMDM CustomConfigurationProfile.swift
[42/45] Compiling SimpleMDM Device.swift
[43/45] 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> {
^
[44/45] 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> {
^
[45/45] 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> {
^
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] 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 {
^~~~~~~~~~
[3/8] Compiling SimpleMDM SimpleMDM.swift
[4/14] 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)
~~~~~~~~~~~~ ^~~~~~~~~~
[5/16] Compiling SimpleMDM URL+CustomInit.swift
[6/18] Compiling SimpleMDM Version.swift
[7/18] Compiling SimpleMDM SimpleMDM+PromiseKit.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/21] 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
^
[9/21] Compiling SimpleMDM App.swift
[10/21] Compiling SimpleMDM AppGroup.swift
[11/23] Compiling SimpleMDM CustomAttribute.swift
[12/23] Compiling SimpleMDM CustomConfigurationProfile.swift
[13/24] Compiling SimpleMDM PushCertificate.swift
[14/25] Compiling SimpleMDM Device.swift
[15/25] Compiling SimpleMDM DeviceGroup.swift
[16/26] Compiling SimpleMDM InstalledApp.swift
[17/26] Compiling SimpleMDM ManagedConfig.swift
[18/26] Compiling SimpleMDM Error.swift
[19/26] Compiling SimpleMDM CustomAttributeValue.swift
[20/26] 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> {
^
[21/26] 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> {
^
[22/26] Compiling SimpleMDM Cursor.swift
[23/26] Compiling SimpleMDM Decoding.swift
[24/26] 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> {
^
[25/26] Compiling SimpleMDM Payload.swift
[26/26] Compiling SimpleMDM Resource.generated.swift
error: fatalError
BUILD FAILURE 5.10 linux