Build Information
Failed to build SimpleMDM-Swift, reference main (6de0dc
), with Swift 6.0 for Linux on 2 Nov 2024 10:09:24 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 6de0dcf [WIP] async / await
Cloned https://github.com/guillaumealgis/SimpleMDM-Swift.git
Revision (git rev-parse @):
6de0dcf72d30406d0e2366bc65518e8723560b2a
SUCCESS checkout https://github.com/guillaumealgis/SimpleMDM-Swift.git at main
========================================
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-4606859-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/29] Emitting module SimpleMDM
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:8:10: warning: FIXME: Guillaume: Useful ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
| `- warning: FIXME: Guillaume: Useful ?
9 | #warning("FIXME: Guillaume: documentation in whole file")
10 |
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:9:10: warning: FIXME: Guillaume: documentation in whole file
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
9 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
10 |
11 | /// The bounds of the number of elements one can get when requesting a paginated list of resources.
/host/spi-builder-workspace/Sources/AsyncResources.swift:8:10: warning: FIXME: Guillaume: documentation in whole file
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
9 |
10 | /// A type that provides async access to a paginated list of resources.
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Networking.swift:153:62: error: cannot find type 'URLRequest' in scope
151 | // MARK: - Building the URLRequest
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
154 | var urlRequest = URLRequest(url: url)
155 |
/host/spi-builder-workspace/Sources/Payload.swift:44:14: warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
42 | let hasMore: Bool
43 |
44 | #warning("FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed")
| `- warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
45 | }
46 |
/host/spi-builder-workspace/Sources/Relationship/RelatedToManyNested.swift:8:10: warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?")
| `- warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
9 |
10 | /// A type defining an attribute of a resource having a "link" to its parent resource.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
/host/spi-builder-workspace/Sources/URLSession.swift:12:63: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
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:13:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
/host/spi-builder-workspace/Sources/URLSession.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | try await data(for: request, delegate: nil)
19 | }
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:22:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 | }
21 |
22 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
[4/32] Compiling SimpleMDM SimpleMDM.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:12:63: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
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:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
/host/spi-builder-workspace/Sources/URLSession.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | try await data(for: request, delegate: nil)
19 | }
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:22:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 | }
21 |
22 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
/host/spi-builder-workspace/Sources/URLSession.swift:18:48: error: 'nil' requires a contextual type
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
18 | try await data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
19 | }
20 | }
[5/32] Compiling SimpleMDM URL+CustomInit.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:12:63: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
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:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
/host/spi-builder-workspace/Sources/URLSession.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | try await data(for: request, delegate: nil)
19 | }
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:22:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 | }
21 |
22 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
/host/spi-builder-workspace/Sources/URLSession.swift:18:48: error: 'nil' requires a contextual type
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
18 | try await data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
19 | }
20 | }
[6/32] Compiling SimpleMDM URLSession.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:12:63: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
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:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
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:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
/host/spi-builder-workspace/Sources/URLSession.swift:17:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | try await data(for: request, delegate: nil)
19 | }
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:22:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
20 | }
21 |
22 | extension URLSession: URLSessionProtocol {}
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 |
/host/spi-builder-workspace/Sources/URLSession.swift:18:48: error: 'nil' requires a contextual type
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
18 | try await data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
19 | }
20 | }
[7/32] Compiling SimpleMDM DeviceGroup.swift
[8/32] Compiling SimpleMDM InstalledApp.swift
[9/32] Compiling SimpleMDM ManagedConfig.swift
[10/32] Compiling SimpleMDM CustomAttribute.swift
[11/32] Compiling SimpleMDM CustomAttributeValue.swift
[12/32] Compiling SimpleMDM CustomConfigurationProfile.swift
[13/32] Compiling SimpleMDM Device.swift
[14/32] Compiling SimpleMDM PushCertificate.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[15/32] Compiling SimpleMDM Resource.generated.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[16/32] Compiling SimpleMDM Resource.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[17/32] Compiling SimpleMDM AsyncPaginatedResources.swift
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:8:10: warning: FIXME: Guillaume: Useful ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
| `- warning: FIXME: Guillaume: Useful ?
9 | #warning("FIXME: Guillaume: documentation in whole file")
10 |
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:9:10: warning: FIXME: Guillaume: documentation in whole file
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
9 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
10 |
11 | /// The bounds of the number of elements one can get when requesting a paginated list of resources.
/host/spi-builder-workspace/Sources/AsyncResources.swift:8:10: warning: FIXME: Guillaume: documentation in whole file
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
9 |
10 | /// A type that provides async access to a paginated list of resources.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[18/32] Compiling SimpleMDM AsyncResources.swift
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:8:10: warning: FIXME: Guillaume: Useful ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
| `- warning: FIXME: Guillaume: Useful ?
9 | #warning("FIXME: Guillaume: documentation in whole file")
10 |
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:9:10: warning: FIXME: Guillaume: documentation in whole file
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
9 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
10 |
11 | /// The bounds of the number of elements one can get when requesting a paginated list of resources.
/host/spi-builder-workspace/Sources/AsyncResources.swift:8:10: warning: FIXME: Guillaume: documentation in whole file
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
9 |
10 | /// A type that provides async access to a paginated list of resources.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[19/32] Compiling SimpleMDM AsyncSequence+Collect.swift
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:8:10: warning: FIXME: Guillaume: Useful ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
| `- warning: FIXME: Guillaume: Useful ?
9 | #warning("FIXME: Guillaume: documentation in whole file")
10 |
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:9:10: warning: FIXME: Guillaume: documentation in whole file
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
9 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
10 |
11 | /// The bounds of the number of elements one can get when requesting a paginated list of resources.
/host/spi-builder-workspace/Sources/AsyncResources.swift:8:10: warning: FIXME: Guillaume: documentation in whole file
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
9 |
10 | /// A type that provides async access to a paginated list of resources.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[20/32] Compiling SimpleMDM Cursor.swift
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:8:10: warning: FIXME: Guillaume: Useful ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
| `- warning: FIXME: Guillaume: Useful ?
9 | #warning("FIXME: Guillaume: documentation in whole file")
10 |
/host/spi-builder-workspace/Sources/AsyncPaginatedResources.swift:9:10: warning: FIXME: Guillaume: documentation in whole file
7 |
8 | #warning("FIXME: Guillaume: Useful ?")
9 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
10 |
11 | /// The bounds of the number of elements one can get when requesting a paginated list of resources.
/host/spi-builder-workspace/Sources/AsyncResources.swift:8:10: warning: FIXME: Guillaume: documentation in whole file
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: documentation in whole file")
| `- warning: FIXME: Guillaume: documentation in whole file
9 |
10 | /// A type that provides async access to a paginated list of resources.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[21/32] Compiling SimpleMDM Payload.swift
/host/spi-builder-workspace/Sources/Payload.swift:44:14: warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
42 | let hasMore: Bool
43 |
44 | #warning("FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed")
| `- warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
45 | }
46 |
/host/spi-builder-workspace/Sources/Relationship/RelatedToManyNested.swift:8:10: warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?")
| `- warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
9 |
10 | /// A type defining an attribute of a resource having a "link" to its parent resource.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[22/32] Compiling SimpleMDM RelatedToMany.swift
/host/spi-builder-workspace/Sources/Payload.swift:44:14: warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
42 | let hasMore: Bool
43 |
44 | #warning("FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed")
| `- warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
45 | }
46 |
/host/spi-builder-workspace/Sources/Relationship/RelatedToManyNested.swift:8:10: warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?")
| `- warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
9 |
10 | /// A type defining an attribute of a resource having a "link" to its parent resource.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[23/32] Compiling SimpleMDM RelatedToManyNested.swift
/host/spi-builder-workspace/Sources/Payload.swift:44:14: warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
42 | let hasMore: Bool
43 |
44 | #warning("FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed")
| `- warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
45 | }
46 |
/host/spi-builder-workspace/Sources/Relationship/RelatedToManyNested.swift:8:10: warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?")
| `- warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
9 |
10 | /// A type defining an attribute of a resource having a "link" to its parent resource.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[24/32] Compiling SimpleMDM RelatedToOne.swift
/host/spi-builder-workspace/Sources/Payload.swift:44:14: warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
42 | let hasMore: Bool
43 |
44 | #warning("FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed")
| `- warning: FIXME: Guillaume: Nested resource custom_attribute_values of device seems to not include has_more when listed
45 | }
46 |
/host/spi-builder-workspace/Sources/Relationship/RelatedToManyNested.swift:8:10: warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
6 | import Foundation
7 |
8 | #warning("FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?")
| `- warning: FIXME: Guillaume: Same implementation as AsyncResources, but with parendId. Do we need this ?
9 |
10 | /// A type defining an attribute of a resource having a "link" to its parent resource.
/host/spi-builder-workspace/Sources/SimpleMDM.swift:29:16: warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
27 | // This is only kept mutable for tests so we can replace the shared instance with a custom one with mocked
28 | // sub-components (e.g. Networking).
29 | static var shared = SimpleMDM()
| |- warning: static property 'shared' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'shared' to a 'let' constant to make 'Sendable' shared state immutable
| |- 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
30 |
31 | // MARK: - Sub-components
[25/32] Compiling SimpleMDM Relation.swift
[26/32] Compiling SimpleMDM Account.swift
[27/32] Compiling SimpleMDM App.swift
[28/32] Compiling SimpleMDM AppGroup.swift
[29/32] Compiling SimpleMDM Decoding.swift
/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 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Networking.swift:153:62: error: cannot find type 'URLRequest' in scope
151 | // MARK: - Building the URLRequest
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
154 | var urlRequest = URLRequest(url: url)
155 |
/host/spi-builder-workspace/Sources/Networking.swift:27:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:27:50: error: cannot infer contextual base in reference to member 'default'
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:154:26: error: cannot find 'URLRequest' in scope
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
154 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
155 |
156 | guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/URLSession.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
[30/32] Compiling SimpleMDM Error.swift
/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 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Networking.swift:153:62: error: cannot find type 'URLRequest' in scope
151 | // MARK: - Building the URLRequest
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
154 | var urlRequest = URLRequest(url: url)
155 |
/host/spi-builder-workspace/Sources/Networking.swift:27:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:27:50: error: cannot infer contextual base in reference to member 'default'
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:154:26: error: cannot find 'URLRequest' in scope
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
154 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
155 |
156 | guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/URLSession.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
[31/32] Compiling SimpleMDM Version.swift
/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 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Networking.swift:153:62: error: cannot find type 'URLRequest' in scope
151 | // MARK: - Building the URLRequest
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
154 | var urlRequest = URLRequest(url: url)
155 |
/host/spi-builder-workspace/Sources/Networking.swift:27:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:27:50: error: cannot infer contextual base in reference to member 'default'
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:154:26: error: cannot find 'URLRequest' in scope
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
154 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
155 |
156 | guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/URLSession.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
[32/32] Compiling SimpleMDM Networking.swift
/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 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:28: 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 data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
14 | }
/host/spi-builder-workspace/Sources/URLSession.swift:13:28: error: cannot find type 'URLRequest' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/URLSession.swift:13:50: error: cannot find type 'URLSessionTaskDelegate' in scope
11 | internal protocol URLSessionProtocol {
12 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
13 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
14 | }
15 |
/host/spi-builder-workspace/Sources/Networking.swift:153:62: error: cannot find type 'URLRequest' in scope
151 | // MARK: - Building the URLRequest
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
154 | var urlRequest = URLRequest(url: url)
155 |
/host/spi-builder-workspace/Sources/Networking.swift:27:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:27:50: error: cannot infer contextual base in reference to member 'default'
25 |
26 | convenience init() {
27 | let session = URLSession(configuration: .default)
| `- error: cannot infer contextual base in reference to member 'default'
28 | self.init(urlSession: session)
29 | }
/host/spi-builder-workspace/Sources/Networking.swift:154:26: error: cannot find 'URLRequest' in scope
152 |
153 | private func buildURLRequest(withURL url: URL) throws -> URLRequest {
154 | var urlRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
155 |
156 | guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/URLSession.swift:17:28: error: cannot find type 'URLRequest' in scope
15 |
16 | extension URLSessionProtocol {
17 | func data(for request: URLRequest) async throws -> (Data, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
18 | try await data(for: request, delegate: nil)
19 | }
BUILD FAILURE 6.0 linux