The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SimpleMDM-Swift, reference main (6de0dc), with Swift 6.1 for Linux on 26 Apr 2025 23:19:39 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.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.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.1
Building package at path:  $PWD
https://github.com/guillaumealgis/SimpleMDM-Swift.git
https://github.com/guillaumealgis/SimpleMDM-Swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SimpleMDM-Swift",
  "name" : "SimpleMDM-Swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "SimpleMDM",
      "targets" : [
        "SimpleMDM"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "SimpleMDM_Tests",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMDM-Tests",
      "path" : "Tests",
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Account.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/AppGroup_ProductivityApps.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/AppGroups.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/App_Evernote.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/App_GoogleCalendar.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/App_SimpleMDM.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/App_Trello.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Apps.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/CustomAttribute_EmailAddress.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/CustomAttributes.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/CustomConfigurationProfile_MunkiConfiguration.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/CustomConfigurationProfiles.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/DeviceGroup_Executives.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/DeviceGroup_Interns.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/DeviceGroups.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Device_MikesiPhone.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Device_MikesiPhone_CustomAttributeValues.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Devices.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Generic/ResourceMock_326.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Generic/ResourceMock_37.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Generic/ResourceMock_78.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Generic/ResourceWithRelationsMock_42.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Generic/ResourcesMock.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/Generic/UniqueResourceMock.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/InstalledApp_Dropbox.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/ManagedConfigs.json",
          "rule" : {
            "process" : {
            }
          }
        },
        {
          "path" : "/host/spi-builder-workspace/Tests/Fixtures/PushCertificate.json",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "APIKeyTests.swift",
        "AsyncPaginatedResourcesTests.swift",
        "AsyncResourcesTests.swift",
        "DecodingTests.swift",
        "FieldTypes/VersionTests.swift",
        "NetworkingTests.swift",
        "Resources/AccountTests.swift",
        "Resources/AppGroupTests.swift",
        "Resources/AppTests.swift",
        "Resources/CustomAttributeTests.swift",
        "Resources/CustomConfigurationProfileTests.swift",
        "Resources/DeviceGroupTests.swift",
        "Resources/DeviceTests.swift",
        "Resources/InstalledAppTests.swift",
        "Resources/PushCertificateTests.swift",
        "Resources/ResourcesTests.swift",
        "SimpleMDMSingletonTests.swift",
        "Tools/ResourceMock.swift",
        "Tools/TimeInterval+Milliseconds.swift",
        "Tools/URLSessionMock.swift",
        "Tools/Utils.swift",
        "Tools/XCTest+Async.swift"
      ],
      "target_dependencies" : [
        "SimpleMDM"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimpleMDM",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMDM",
      "path" : "Sources",
      "product_memberships" : [
        "SimpleMDM"
      ],
      "sources" : [
        "AsyncPaginatedResources.swift",
        "AsyncResources.swift",
        "AsyncSequence+Collect.swift",
        "Cursor.swift",
        "Decoding.swift",
        "Error.swift",
        "FieldTypes/Version.swift",
        "Networking.swift",
        "Payload.swift",
        "Relationship/RelatedToMany.swift",
        "Relationship/RelatedToManyNested.swift",
        "Relationship/RelatedToOne.swift",
        "Relationship/Relation.swift",
        "Resources/Account.swift",
        "Resources/App.swift",
        "Resources/AppGroup.swift",
        "Resources/CustomAttribute.swift",
        "Resources/CustomAttributeValue.swift",
        "Resources/CustomConfigurationProfile.swift",
        "Resources/Device.swift",
        "Resources/DeviceGroup.swift",
        "Resources/InstalledApp.swift",
        "Resources/ManagedConfig.swift",
        "Resources/PushCertificate.swift",
        "Resources/Resource.generated.swift",
        "Resources/Resource.swift",
        "SimpleMDM.swift",
        "URL+CustomInit.swift",
        "URLSession.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/29] Compiling SimpleMDM DeviceGroup.swift
[4/29] Compiling SimpleMDM InstalledApp.swift
[5/29] Compiling SimpleMDM ManagedConfig.swift
[6/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.
[7/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.
[8/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.
[9/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.
error: emit-module command failed with exit code 1 (use -v to see invocation)
[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 Relation.swift
[15/32] Compiling SimpleMDM Account.swift
[16/32] Compiling SimpleMDM App.swift
[17/32] Compiling SimpleMDM AppGroup.swift
[18/32] Compiling SimpleMDM PushCertificate.swift
[19/32] Compiling SimpleMDM Resource.generated.swift
[20/32] Compiling SimpleMDM Resource.swift
[21/32] 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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- 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 |
[22/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 |     }
[23/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 |     }
[24/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 |     }
[25/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 |     }
[26/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.
[27/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.
[28/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.
[29/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.
[30/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- 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 | }
[31/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- 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 | }
[32/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: add '@MainActor' to make static property 'shared' part of global actor 'MainActor'
   |                `- 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 | }
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/28] 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/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 |
[3/31] Compiling SimpleMDM Relation.swift
[4/31] Compiling SimpleMDM Account.swift
[5/31] Compiling SimpleMDM App.swift
[6/31] Compiling SimpleMDM AppGroup.swift
[7/31] Compiling SimpleMDM SimpleMDM.swift
/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 | }
[8/31] Compiling SimpleMDM URL+CustomInit.swift
/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 | }
[9/31] Compiling SimpleMDM URLSession.swift
/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 | }
[10/31] 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.
[11/31] 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.
[12/31] 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.
[13/31] 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.
[14/31] 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.
[15/31] 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.
[16/31] 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.
[17/31] 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.
[18/31] Compiling SimpleMDM Decoding.swift
/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 |     }
[19/31] Compiling SimpleMDM Error.swift
/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 |     }
[20/31] Compiling SimpleMDM Version.swift
/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 |     }
[21/31] Compiling SimpleMDM Networking.swift
/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 |     }
[22/31] Compiling SimpleMDM CustomAttribute.swift
[23/31] Compiling SimpleMDM CustomAttributeValue.swift
[24/31] Compiling SimpleMDM CustomConfigurationProfile.swift
[25/31] Compiling SimpleMDM Device.swift
[26/31] Compiling SimpleMDM DeviceGroup.swift
[27/31] Compiling SimpleMDM InstalledApp.swift
[28/31] Compiling SimpleMDM ManagedConfig.swift
[29/31] Compiling SimpleMDM PushCertificate.swift
[30/31] Compiling SimpleMDM Resource.generated.swift
[31/31] Compiling SimpleMDM Resource.swift
BUILD FAILURE 6.1 linux