Build Information
Failed to build SimpleMDM-Swift, reference 0.10.0 (f5557f
), with Swift 6.2 (beta) for Linux on 19 Jun 2025 12:02:00 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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: 6.2
Building package at path: $PWD
https://github.com/guillaumealgis/SimpleMDM-Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/mxcl/PromiseKit.git
[1/17186] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (1.53s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (2.58s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/19] Emitting module PromiseKit
[5/21] Compiling PromiseKit Async.swift
[6/21] Compiling PromiseKit Box.swift
[7/21] Compiling PromiseKit Catchable.swift
[8/21] Compiling PromiseKit race.swift
[9/21] Compiling PromiseKit when.swift
[10/21] Compiling PromiseKit CustomStringConvertible.swift
[11/21] Compiling PromiseKit Error.swift
[12/21] Compiling PromiseKit firstly.swift
[13/21] Compiling PromiseKit hang.swift
[14/21] Compiling PromiseKit Thenable.swift
[15/21] Compiling PromiseKit after.swift
[16/21] Compiling PromiseKit Promise.swift
[17/21] Compiling PromiseKit Resolver.swift
[18/21] Compiling PromiseKit Guarantee.swift
[19/21] Compiling PromiseKit LogEvent.swift
[20/21] Compiling PromiseKit Combine.swift
[21/21] Compiling PromiseKit Configuration.swift
[23/44] Compiling SimpleMDM DeviceGroup.swift
[24/44] Compiling SimpleMDM InstalledApp.swift
[25/44] Compiling SimpleMDM ManagedConfig.swift
[26/44] Compiling SimpleMDM App.swift
[27/44] Compiling SimpleMDM AppGroup.swift
[28/44] Compiling SimpleMDM CustomAttribute.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/47] Emitting module SimpleMDM
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 | // MARK: - Building the URLRequest
167 |
168 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
169 | var urlRequest = URLRequest(url: url)
170 |
/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.
204 | }
205 |
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 | /// - index: The index of the resource to fetch in the collection.
250 | /// - completion: A completion handler called with the fetched resource, or an error.
251 | public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 | get(SimpleMDM.shared.networking, id: id, completion: completion)
253 | }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
7 |
8 | /// A completion clusure used to return a Result type asynchronously.
9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
10 |
11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/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.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 | let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
30 |
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[30/47] Compiling SimpleMDM CustomAttributeValue.swift
[31/47] Compiling SimpleMDM CustomConfigurationProfile.swift
[32/47] Compiling SimpleMDM Device.swift
[33/47] Compiling SimpleMDM SimpleMDM.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/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.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 | let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
| `- error: cannot find type 'URLRequest' in scope
17 | let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 | return task
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[34/47] Compiling SimpleMDM URL+CustomInit.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/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.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 | let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
| `- error: cannot find type 'URLRequest' in scope
17 | let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 | return task
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[35/47] Compiling SimpleMDM URLSession.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/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.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended [#NominalTypes]
16 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 | let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended [#NominalTypes]
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
| `- error: cannot find type 'URLRequest' in scope
17 | let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 | return task
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
[36/47] Compiling SimpleMDM Cursor.swift
/host/spi-builder-workspace/Sources/Cursor.swift:66:18: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
64 |
65 | serialQueue.async {
66 | self.fetchNextData(networking, limit: limit, completion: completion)
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Cursor.swift:57:19: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | /// Actual implementation of the `next(_:completion:)` method, with a injectable `Networking` parameter.
57 | internal func next(_ networking: Networking, _ limit: Int? = nil, completion: @escaping CompletionClosure<[T]>) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | if let limit = limit {
59 | guard limit >= CursorLimit.min.rawValue, limit <= CursorLimit.max.rawValue else {
[37/47] Compiling SimpleMDM Decoding.swift
/host/spi-builder-workspace/Sources/Cursor.swift:66:18: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
64 |
65 | serialQueue.async {
66 | self.fetchNextData(networking, limit: limit, completion: completion)
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Cursor.swift:57:19: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | /// Actual implementation of the `next(_:completion:)` method, with a injectable `Networking` parameter.
57 | internal func next(_ networking: Networking, _ limit: Int? = nil, completion: @escaping CompletionClosure<[T]>) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | if let limit = limit {
59 | guard limit >= CursorLimit.min.rawValue, limit <= CursorLimit.max.rawValue else {
[38/47] Compiling SimpleMDM Error.swift
/host/spi-builder-workspace/Sources/Cursor.swift:66:18: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
64 |
65 | serialQueue.async {
66 | self.fetchNextData(networking, limit: limit, completion: completion)
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Cursor.swift:57:19: warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
55 |
56 | /// Actual implementation of the `next(_:completion:)` method, with a injectable `Networking` parameter.
57 | internal func next(_ networking: Networking, _ limit: Int? = nil, completion: @escaping CompletionClosure<[T]>) {
| `- warning: capture of non-Sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
58 | if let limit = limit {
59 | guard limit >= CursorLimit.min.rawValue, limit <= CursorLimit.max.rawValue else {
[39/47] 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
249 | /// - index: The index of the resource to fetch in the collection.
250 | /// - completion: A completion handler called with the fetched resource, or an error.
251 | public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 | get(SimpleMDM.shared.networking, id: id, completion: completion)
253 | }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
[40/47] 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
249 | /// - index: The index of the resource to fetch in the collection.
250 | /// - completion: A completion handler called with the fetched resource, or an error.
251 | public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 | get(SimpleMDM.shared.networking, id: id, completion: completion)
253 | }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
[41/47] 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
249 | /// - index: The index of the resource to fetch in the collection.
250 | /// - completion: A completion handler called with the fetched resource, or an error.
251 | public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 | get(SimpleMDM.shared.networking, id: id, completion: completion)
253 | }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
[42/47] Compiling SimpleMDM SimpleMDM+PromiseKit.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 | // MARK: - Building the URLRequest
167 |
168 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
169 | var urlRequest = URLRequest(url: url)
170 |
/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.
204 | }
205 |
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 |
40 | convenience init() {
41 | let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | self.init(urlSession: session)
43 | }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
39 |
40 | convenience init() {
41 | let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
42 | self.init(urlSession: session)
43 | }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
170 |
171 | guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 | private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
184 | do {
185 | urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 | }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 | }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 | }
210 |
211 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 | case 200:
213 | return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 | return .failure(SimpleMDMError.doesNotExist)
218 | default:
219 | return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 | }
221 | }
[43/47] Compiling SimpleMDM Version.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 | // MARK: - Building the URLRequest
167 |
168 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
169 | var urlRequest = URLRequest(url: url)
170 |
/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.
204 | }
205 |
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 |
40 | convenience init() {
41 | let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | self.init(urlSession: session)
43 | }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
39 |
40 | convenience init() {
41 | let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
42 | self.init(urlSession: session)
43 | }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
170 |
171 | guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 | private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
184 | do {
185 | urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 | }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 | }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 | }
210 |
211 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 | case 200:
213 | return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 | return .failure(SimpleMDMError.doesNotExist)
218 | default:
219 | return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 | }
221 | }
[44/47] Compiling SimpleMDM Networking.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 | // MARK: - Building the URLRequest
167 |
168 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
169 | var urlRequest = URLRequest(url: url)
170 |
/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.
204 | }
205 |
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
39 |
40 | convenience init() {
41 | let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
42 | self.init(urlSession: session)
43 | }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
39 |
40 | convenience init() {
41 | let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
42 | self.init(urlSession: session)
43 | }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
170 |
171 | guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 | private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 | let urlRequest: URLRequest
| `- error: cannot find type 'URLRequest' in scope
184 | do {
185 | urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 | }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 | private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 | guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 | return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 | }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 | }
210 |
211 | switch httpResponse.statusCode {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 | case 200:
213 | return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 | return .failure(SimpleMDMError.doesNotExist)
218 | default:
219 | return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 | }
221 | }
[45/47] 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
7 |
8 | /// A completion clusure used to return a Result type asynchronously.
9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
10 |
11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
[46/47] 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
7 |
8 | /// A completion clusure used to return a Result type asynchronously.
9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
10 |
11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
[47/47] 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
7 |
8 | /// A completion clusure used to return a Result type asynchronously.
9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
| `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
10 |
11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: generic enum declared here
98 | case fulfilled(T)
99 | case rejected(Error)
BUILD FAILURE 6.2 linux