Build Information
Failed to build SimpleMDM-Swift, reference 0.10.0 (f5557f
), with Swift 6.0 for Linux on 2 Nov 2024 10:09:22 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.56.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.0
Building package at path: $PWD
https://github.com/guillaumealgis/SimpleMDM-Swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/mxcl/PromiseKit.git
[1/17121] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (0.94s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (0.43s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.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 Promise.swift
[9/21] Compiling PromiseKit Resolver.swift
[10/21] Compiling PromiseKit race.swift
[11/21] Compiling PromiseKit when.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 Guarantee.swift
[17/21] Compiling PromiseKit LogEvent.swift
[18/21] Compiling PromiseKit Combine.swift
[19/21] Compiling PromiseKit Configuration.swift
[20/21] Compiling PromiseKit CustomStringConvertible.swift
[21/21] Compiling PromiseKit Error.swift
[23/44] Compiling SimpleMDM App.swift
[24/44] Compiling SimpleMDM AppGroup.swift
[25/44] Compiling SimpleMDM CustomAttribute.swift
[26/47] Compiling SimpleMDM SimpleMDM+PromiseKit.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/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 | }
[27/47] Compiling SimpleMDM Version.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/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 | }
[28/47] Compiling SimpleMDM Networking.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/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 | }
[29/47] Compiling SimpleMDM SimpleMDM.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/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
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
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
[30/47] Compiling SimpleMDM URL+CustomInit.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/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
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
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
[31/47] Compiling SimpleMDM URLSession.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/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
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[32/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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type 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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/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
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
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
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
[33/47] Compiling SimpleMDM Cursor.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/host/spi-builder-workspace/Sources/Cursor.swift:66:13: warning: capture of 'self' with non-sendable type 'Cursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | /// }
36 | /// }
37 | public class Cursor<T: ListableResource> {
| `- note: generic class 'Cursor' does not conform to the 'Sendable' protocol
38 | /// Whether the server has more resources available to be fetched.
39 | public private(set) var hasMore = true
:
64 |
65 | serialQueue.async {
66 | self.fetchNextData(networking, limit: limit, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'Cursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Cursor.swift:66:32: warning: capture of 'networking' with non-sendable type 'Networking' in a `@Sendable` 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 'networking' with non-sendable type 'Networking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Networking.swift:26:16: note: class 'Networking' does not conform to the 'Sendable' protocol
24 | /// - Note: You should not instanciate this class directly, but instead use the global instance `SimpleMDM.networking`.
25 | /// This allows the library to re-use a single connection, improving performances.
26 | internal class Networking {
| `- note: class 'Networking' does not conform to the 'Sendable' protocol
27 | var apiKey: String? {
28 | didSet {
/host/spi-builder-workspace/Sources/Cursor.swift:66:70: warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a `@Sendable` 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 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 | }
/host/spi-builder-workspace/Sources/Decoding.swift:16:48: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
14 | init() {
15 | decoder.keyDecodingStrategy = .convertFromSnakeCase
16 | decoder.dateDecodingStrategy = .custom(decodeRFC3339Date)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
17 | }
18 |
[34/47] Compiling SimpleMDM Decoding.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/host/spi-builder-workspace/Sources/Cursor.swift:66:13: warning: capture of 'self' with non-sendable type 'Cursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | /// }
36 | /// }
37 | public class Cursor<T: ListableResource> {
| `- note: generic class 'Cursor' does not conform to the 'Sendable' protocol
38 | /// Whether the server has more resources available to be fetched.
39 | public private(set) var hasMore = true
:
64 |
65 | serialQueue.async {
66 | self.fetchNextData(networking, limit: limit, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'Cursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Cursor.swift:66:32: warning: capture of 'networking' with non-sendable type 'Networking' in a `@Sendable` 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 'networking' with non-sendable type 'Networking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Networking.swift:26:16: note: class 'Networking' does not conform to the 'Sendable' protocol
24 | /// - Note: You should not instanciate this class directly, but instead use the global instance `SimpleMDM.networking`.
25 | /// This allows the library to re-use a single connection, improving performances.
26 | internal class Networking {
| `- note: class 'Networking' does not conform to the 'Sendable' protocol
27 | var apiKey: String? {
28 | didSet {
/host/spi-builder-workspace/Sources/Cursor.swift:66:70: warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a `@Sendable` 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 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 | }
/host/spi-builder-workspace/Sources/Decoding.swift:16:48: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
14 | init() {
15 | decoder.keyDecodingStrategy = .convertFromSnakeCase
16 | decoder.dateDecodingStrategy = .custom(decodeRFC3339Date)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
17 | }
18 |
[35/47] Compiling SimpleMDM Error.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
/host/spi-builder-workspace/Sources/Cursor.swift:66:13: warning: capture of 'self' with non-sendable type 'Cursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 | /// }
36 | /// }
37 | public class Cursor<T: ListableResource> {
| `- note: generic class 'Cursor' does not conform to the 'Sendable' protocol
38 | /// Whether the server has more resources available to be fetched.
39 | public private(set) var hasMore = true
:
64 |
65 | serialQueue.async {
66 | self.fetchNextData(networking, limit: limit, completion: completion)
| `- warning: capture of 'self' with non-sendable type 'Cursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Cursor.swift:66:32: warning: capture of 'networking' with non-sendable type 'Networking' in a `@Sendable` 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 'networking' with non-sendable type 'Networking' in a `@Sendable` closure; this is an error in the Swift 6 language mode
67 | }
68 | }
/host/spi-builder-workspace/Sources/Networking.swift:26:16: note: class 'Networking' does not conform to the 'Sendable' protocol
24 | /// - Note: You should not instanciate this class directly, but instead use the global instance `SimpleMDM.networking`.
25 | /// This allows the library to re-use a single connection, improving performances.
26 | internal class Networking {
| `- note: class 'Networking' does not conform to the 'Sendable' protocol
27 | var apiKey: String? {
28 | didSet {
/host/spi-builder-workspace/Sources/Cursor.swift:66:70: warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a `@Sendable` 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 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
67 | }
68 | }
/host/spi-builder-workspace/Sources/Decoding.swift:16:48: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
14 | init() {
15 | decoder.keyDecodingStrategy = .convertFromSnakeCase
16 | decoder.dateDecodingStrategy = .custom(decodeRFC3339Date)
| `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
17 | }
18 |
[36/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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
[37/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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
[38/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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
[39/47] Compiling SimpleMDM DeviceGroup.swift
[40/47] Compiling SimpleMDM InstalledApp.swift
[41/47] Compiling SimpleMDM ManagedConfig.swift
[42/47] Compiling SimpleMDM CustomAttributeValue.swift
[43/47] Compiling SimpleMDM CustomConfigurationProfile.swift
[44/47] Compiling SimpleMDM Device.swift
[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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
[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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
[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: type declared here
95 | #endif
96 |
97 | public enum Result<T> {
| `- note: type declared here
98 | case fulfilled(T)
99 | case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
| `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 | // MARK: - Type properties
18 |
:
32 | }
33 |
34 | internal static let shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'shared' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
35 |
36 | // MARK: - Instance properties
BUILD FAILURE 6.0 linux