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 0.10.0 (f5557f), with Swift 6.1 for Linux on 26 Apr 2025 23:19:56 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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: 0.10.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/guillaumealgis/SimpleMDM-Swift
 * tag               0.10.0     -> FETCH_HEAD
HEAD is now at f5557fb Bump version 0.9.0 -> 0.10.0
Cloned https://github.com/guillaumealgis/SimpleMDM-Swift.git
Revision (git rev-parse @):
f5557fb43306c33e2537aec76d35c47ca97b607d
SUCCESS checkout https://github.com/guillaumealgis/SimpleMDM-Swift.git at 0.10.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.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" : [
    {
      "identity" : "promisekit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.8.0",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/PromiseKit.git"
    }
  ],
  "manifest_display_name" : "SimpleMDM-Swift",
  "name" : "SimpleMDM-Swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.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",
      "sources" : [
        "APIKeyTests.swift",
        "CursorTests.swift",
        "DecodingTests.swift",
        "FieldTypes/VersionTests.swift",
        "NetworkingTests.swift",
        "PromiseKit/SimpleMDM+PromiseKitTests.swift",
        "PromiseKit/SimpleMDMSingleton+PromiseKitTests.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/URLSessionMock.swift",
        "Tools/Utils.swift"
      ],
      "target_dependencies" : [
        "SimpleMDM"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SimpleMDM",
      "module_type" : "SwiftTarget",
      "name" : "SimpleMDM",
      "path" : "Sources",
      "product_dependencies" : [
        "PromiseKit"
      ],
      "product_memberships" : [
        "SimpleMDM"
      ],
      "sources" : [
        "Cursor.swift",
        "Decoding.swift",
        "Error.swift",
        "Extensions/SimpleMDM+PromiseKit.swift",
        "FieldTypes/Version.swift",
        "Networking.swift",
        "Payload.swift",
        "Relationship.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.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
Fetching https://github.com/mxcl/PromiseKit.git
[1/17186] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit.git from cache (1.00s)
Computing version for https://github.com/mxcl/PromiseKit.git
Computed https://github.com/mxcl/PromiseKit.git at 6.22.1 (1.47s)
Creating working copy for https://github.com/mxcl/PromiseKit.git
Working copy of https://github.com/mxcl/PromiseKit.git resolved at 6.22.1
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/19] Emitting module PromiseKit
[5/21] Compiling PromiseKit Async.swift
[6/21] Compiling PromiseKit Box.swift
[7/21] Compiling PromiseKit Catchable.swift
[8/21] Compiling PromiseKit race.swift
[9/21] Compiling PromiseKit when.swift
[10/21] Compiling PromiseKit firstly.swift
[11/21] Compiling PromiseKit hang.swift
[12/21] Compiling PromiseKit Thenable.swift
[13/21] Compiling PromiseKit after.swift
[14/21] Compiling PromiseKit Promise.swift
[15/21] Compiling PromiseKit Resolver.swift
[16/21] Compiling PromiseKit CustomStringConvertible.swift
[17/21] Compiling PromiseKit Error.swift
[18/21] Compiling PromiseKit Guarantee.swift
[19/21] Compiling PromiseKit LogEvent.swift
[20/21] Compiling PromiseKit Combine.swift
[21/21] Compiling PromiseKit Configuration.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/44] Emitting module SimpleMDM
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
   |              `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 |     // MARK: - Type properties
18 |
   :
32 |     }
33 |
34 |     internal static let shared = SimpleMDM()
   |                         |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: 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
35 |
36 |     // MARK: - Instance properties
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
[24/47] Compiling SimpleMDM DeviceGroup.swift
[25/47] Compiling SimpleMDM InstalledApp.swift
[26/47] Compiling SimpleMDM ManagedConfig.swift
[27/47] Compiling SimpleMDM SimpleMDM.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
   |              `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 |     // MARK: - Type properties
18 |
   :
32 |     }
33 |
34 |     internal static let shared = SimpleMDM()
   |                         |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: 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
35 |
36 |     // MARK: - Instance properties
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                 `- error: cannot find type 'URLRequest' in scope
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 |         return task
[28/47] Compiling SimpleMDM URL+CustomInit.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
   |              `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 |     // MARK: - Type properties
18 |
   :
32 |     }
33 |
34 |     internal static let shared = SimpleMDM()
   |                         |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: 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
35 |
36 |     // MARK: - Instance properties
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                 `- error: cannot find type 'URLRequest' in scope
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 |         return task
[29/47] Compiling SimpleMDM URLSession.swift
/host/spi-builder-workspace/Sources/SimpleMDM.swift:34:25: warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | /// The main static object representing the SimpleMDM API. Use this to set your private API key.
16 | public class SimpleMDM: NSObject {
   |              `- note: class 'SimpleMDM' does not conform to the 'Sendable' protocol
17 |     // MARK: - Type properties
18 |
   :
32 |     }
33 |
34 |     internal static let shared = SimpleMDM()
   |                         |- warning: static property 'shared' is not concurrency-safe because non-'Sendable' type 'SimpleMDM' may have shared mutable state; this is an error in the Swift 6 language mode
   |                         |- note: 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
35 |
36 |     // MARK: - Instance properties
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                 `- error: cannot find type 'URLRequest' in scope
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 |         return task
[30/47] Compiling SimpleMDM Cursor.swift
/host/spi-builder-workspace/Sources/Cursor.swift:66:13: warning: capture of 'self' with non-sendable type 'Cursor<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 35 | ///         }
 36 | ///     }
 37 | public class Cursor<T: ListableResource> {
    |              `- note: generic class 'Cursor' does not conform to the 'Sendable' protocol
 38 |     /// Whether the server has more resources available to be fetched.
 39 |     public private(set) var hasMore = true
    :
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |             `- warning: capture of 'self' with non-sendable type 'Cursor<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Cursor.swift:66:32: warning: capture of 'networking' with non-sendable type 'Networking' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |                                `- warning: capture of 'networking' with non-sendable type 'Networking' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Networking.swift:26:16: note: class 'Networking' does not conform to the 'Sendable' protocol
 24 | /// - Note: You should not instanciate this class directly, but instead use the global instance `SimpleMDM.networking`.
 25 | ///   This allows the library to re-use a single connection, improving performances.
 26 | internal class Networking {
    |                `- note: class 'Networking' does not conform to the 'Sendable' protocol
 27 |     var apiKey: String? {
 28 |         didSet {
/host/spi-builder-workspace/Sources/Cursor.swift:66:70: warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |                                                                      |- warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Decoding.swift:16:48: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
14 |     init() {
15 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
16 |         decoder.dateDecodingStrategy = .custom(decodeRFC3339Date)
   |                                                `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
17 |     }
18 |
[31/47] Compiling SimpleMDM Decoding.swift
/host/spi-builder-workspace/Sources/Cursor.swift:66:13: warning: capture of 'self' with non-sendable type 'Cursor<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 35 | ///         }
 36 | ///     }
 37 | public class Cursor<T: ListableResource> {
    |              `- note: generic class 'Cursor' does not conform to the 'Sendable' protocol
 38 |     /// Whether the server has more resources available to be fetched.
 39 |     public private(set) var hasMore = true
    :
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |             `- warning: capture of 'self' with non-sendable type 'Cursor<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Cursor.swift:66:32: warning: capture of 'networking' with non-sendable type 'Networking' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |                                `- warning: capture of 'networking' with non-sendable type 'Networking' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Networking.swift:26:16: note: class 'Networking' does not conform to the 'Sendable' protocol
 24 | /// - Note: You should not instanciate this class directly, but instead use the global instance `SimpleMDM.networking`.
 25 | ///   This allows the library to re-use a single connection, improving performances.
 26 | internal class Networking {
    |                `- note: class 'Networking' does not conform to the 'Sendable' protocol
 27 |     var apiKey: String? {
 28 |         didSet {
/host/spi-builder-workspace/Sources/Cursor.swift:66:70: warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |                                                                      |- warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Decoding.swift:16:48: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
14 |     init() {
15 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
16 |         decoder.dateDecodingStrategy = .custom(decodeRFC3339Date)
   |                                                `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
17 |     }
18 |
[32/47] Compiling SimpleMDM Error.swift
/host/spi-builder-workspace/Sources/Cursor.swift:66:13: warning: capture of 'self' with non-sendable type 'Cursor<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 35 | ///         }
 36 | ///     }
 37 | public class Cursor<T: ListableResource> {
    |              `- note: generic class 'Cursor' does not conform to the 'Sendable' protocol
 38 |     /// Whether the server has more resources available to be fetched.
 39 |     public private(set) var hasMore = true
    :
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |             `- warning: capture of 'self' with non-sendable type 'Cursor<T>' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Cursor.swift:66:32: warning: capture of 'networking' with non-sendable type 'Networking' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |                                `- warning: capture of 'networking' with non-sendable type 'Networking' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Networking.swift:26:16: note: class 'Networking' does not conform to the 'Sendable' protocol
 24 | /// - Note: You should not instanciate this class directly, but instead use the global instance `SimpleMDM.networking`.
 25 | ///   This allows the library to re-use a single connection, improving performances.
 26 | internal class Networking {
    |                `- note: class 'Networking' does not conform to the 'Sendable' protocol
 27 |     var apiKey: String? {
 28 |         didSet {
/host/spi-builder-workspace/Sources/Cursor.swift:66:70: warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
 64 |
 65 |         serialQueue.async {
 66 |             self.fetchNextData(networking, limit: limit, completion: completion)
    |                                                                      |- warning: capture of 'completion' with non-sendable type 'CompletionClosure<[T]>' (aka '(Result<Array<T>>) -> ()') in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                                                                      `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/Decoding.swift:16:48: warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
14 |     init() {
15 |         decoder.keyDecodingStrategy = .convertFromSnakeCase
16 |         decoder.dateDecodingStrategy = .custom(decodeRFC3339Date)
   |                                                `- warning: converting non-sendable function value to '@Sendable (any Decoder) throws -> Date' may introduce data races
17 |     }
18 |
[33/47] Compiling SimpleMDM Payload.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[34/47] Compiling SimpleMDM Relationship.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[35/47] Compiling SimpleMDM Account.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[36/47] Compiling SimpleMDM SimpleMDM+PromiseKit.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                                                  `- error: cannot infer contextual base in reference to member 'default'
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
170 |
171 |         guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 |         let urlRequest: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
184 |         do {
185 |             urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 |         }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 |         }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
211 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 |         case 200:
213 |             return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             return .failure(SimpleMDMError.doesNotExist)
218 |         default:
219 |             return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |         }
221 |     }
[37/47] Compiling SimpleMDM Version.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                                                  `- error: cannot infer contextual base in reference to member 'default'
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
170 |
171 |         guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 |         let urlRequest: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
184 |         do {
185 |             urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 |         }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 |         }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
211 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 |         case 200:
213 |             return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             return .failure(SimpleMDMError.doesNotExist)
218 |         default:
219 |             return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |         }
221 |     }
[38/47] Compiling SimpleMDM Networking.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                                                  `- error: cannot infer contextual base in reference to member 'default'
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
170 |
171 |         guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 |         let urlRequest: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
184 |         do {
185 |             urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 |         }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 |         }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
211 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 |         case 200:
213 |             return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             return .failure(SimpleMDMError.doesNotExist)
218 |         default:
219 |             return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |         }
221 |     }
[39/47] Compiling SimpleMDM App.swift
[40/47] Compiling SimpleMDM AppGroup.swift
[41/47] Compiling SimpleMDM CustomAttribute.swift
[42/47] Compiling SimpleMDM CustomAttributeValue.swift
[43/47] Compiling SimpleMDM CustomConfigurationProfile.swift
[44/47] Compiling SimpleMDM Device.swift
[45/47] Compiling SimpleMDM PushCertificate.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[46/47] Compiling SimpleMDM Resource.generated.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[47/47] Compiling SimpleMDM Resource.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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
[2/17] Emitting module PromiseKit
[3/19] Compiling PromiseKit firstly.swift
[4/19] Compiling PromiseKit hang.swift
[5/19] Compiling PromiseKit Thenable.swift
[6/19] Compiling PromiseKit after.swift
[7/19] Compiling PromiseKit Guarantee.swift
[8/19] Compiling PromiseKit LogEvent.swift
[9/19] Compiling PromiseKit CustomStringConvertible.swift
[10/19] Compiling PromiseKit Error.swift
[11/19] Compiling PromiseKit Promise.swift
[12/19] Compiling PromiseKit Resolver.swift
[13/19] Compiling PromiseKit Combine.swift
[14/19] Compiling PromiseKit Configuration.swift
[15/19] Compiling PromiseKit Async.swift
[16/19] Compiling PromiseKit Box.swift
[17/19] Compiling PromiseKit Catchable.swift
[18/19] Compiling PromiseKit race.swift
[19/19] Compiling PromiseKit when.swift
[21/42] Compiling SimpleMDM App.swift
[22/42] Compiling SimpleMDM AppGroup.swift
[23/42] Compiling SimpleMDM CustomAttribute.swift
[24/45] Compiling SimpleMDM DeviceGroup.swift
[25/45] Compiling SimpleMDM InstalledApp.swift
[26/45] Compiling SimpleMDM ManagedConfig.swift
[27/45] Compiling SimpleMDM CustomAttributeValue.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/45] Compiling SimpleMDM CustomConfigurationProfile.swift
[29/45] Compiling SimpleMDM Device.swift
[30/45] Emitting module SimpleMDM
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
[31/45] Compiling SimpleMDM SimpleMDM+PromiseKit.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                                                  `- error: cannot infer contextual base in reference to member 'default'
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
170 |
171 |         guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 |         let urlRequest: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
184 |         do {
185 |             urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 |         }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 |         }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
211 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 |         case 200:
213 |             return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             return .failure(SimpleMDMError.doesNotExist)
218 |         default:
219 |             return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |         }
221 |     }
[32/45] Compiling SimpleMDM Version.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                                                  `- error: cannot infer contextual base in reference to member 'default'
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
170 |
171 |         guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 |         let urlRequest: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
184 |         do {
185 |             urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 |         }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 |         }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
211 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 |         case 200:
213 |             return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             return .failure(SimpleMDMError.doesNotExist)
218 |         default:
219 |             return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |         }
221 |     }
[33/45] Compiling SimpleMDM Networking.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/Networking.swift:168:62: error: cannot find type 'URLRequest' in scope
166 |     // MARK: - Building the URLRequest
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
    |                                                              `- error: cannot find type 'URLRequest' in scope
169 |         var urlRequest = URLRequest(url: url)
170 |
/host/spi-builder-workspace/Sources/Networking.swift:206:49: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
204 |     }
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
    |                                                 `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Networking.swift:41:23: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                       `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:41:50: error: cannot infer contextual base in reference to member 'default'
 39 |
 40 |     convenience init() {
 41 |         let session = URLSession(configuration: .default)
    |                                                  `- error: cannot infer contextual base in reference to member 'default'
 42 |         self.init(urlSession: session)
 43 |     }
/host/spi-builder-workspace/Sources/Networking.swift:169:26: error: cannot find 'URLRequest' in scope
167 |
168 |     private func buildURLRequest(withURL url: URL) throws -> URLRequest {
169 |         var urlRequest = URLRequest(url: url)
    |                          `- error: cannot find 'URLRequest' in scope
170 |
171 |         guard let base64APIKey = base64APIKey else {
/host/spi-builder-workspace/Sources/Networking.swift:183:25: error: cannot find type 'URLRequest' in scope
181 |
182 |     private func getData(atURL url: URL, completion: @escaping (_ result: NetworkingResult) -> Void) {
183 |         let urlRequest: URLRequest
    |                         `- error: cannot find type 'URLRequest' in scope
184 |         do {
185 |             urlRequest = try buildURLRequest(withURL: url)
/host/spi-builder-workspace/Sources/Networking.swift:207:43: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
205 |
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
    |                                           `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
209 |         }
/host/spi-builder-workspace/Sources/Networking.swift:208:74: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
206 |     private func handleResponse(_ httpResponse: HTTPURLResponse, data: Data) -> NetworkingResult {
207 |         guard let mimeType = httpResponse.mimeType, mimeType == "application/json" else {
208 |             return .failure(NetworkError.unexpectedMimeType(httpResponse.mimeType))
    |                                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'mimeType'
209 |         }
210 |
/host/spi-builder-workspace/Sources/Networking.swift:211:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
209 |         }
210 |
211 |         switch httpResponse.statusCode {
    |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
212 |         case 200:
213 |             return .success(data)
/host/spi-builder-workspace/Sources/Networking.swift:219:65: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
217 |             return .failure(SimpleMDMError.doesNotExist)
218 |         default:
219 |             return .decodableDataFailure(httpCode: httpResponse.statusCode, data: data)
    |                                                                 `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
220 |         }
221 |     }
[34/45] Compiling SimpleMDM SimpleMDM.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                 `- error: cannot find type 'URLRequest' in scope
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 |         return task
[35/45] Compiling SimpleMDM URL+CustomInit.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                 `- error: cannot find type 'URLRequest' in scope
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 |         return task
[36/45] Compiling SimpleMDM URLSession.swift
/host/spi-builder-workspace/Sources/URLSession.swift:12:33: error: cannot find type 'URLRequest' in scope
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                 `- error: cannot find type 'URLRequest' in scope
13 | }
14 |
/host/spi-builder-workspace/Sources/URLSession.swift:12:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | /// Internal protocol used to make the networking part of the library easier to inject.
11 | internal protocol URLSessionProtocol {
12 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
   |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | }
14 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/URLSession.swift:15:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
13 | }
14 |
15 | extension URLSession: URLSessionProtocol {
   | `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
/host/spi-builder-workspace/Sources/URLSession.swift:29:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
27 | }
28 |
29 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
   | `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
30 |
/host/spi-builder-workspace/Sources/URLSession.swift:16:33: error: cannot find type 'URLRequest' in scope
14 |
15 | extension URLSession: URLSessionProtocol {
16 |     func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol {
   |                                 `- error: cannot find type 'URLRequest' in scope
17 |         let task: URLSessionDataTask = dataTask(with: request, completionHandler: completionHandler)
18 |         return task
[37/45] Compiling SimpleMDM Payload.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[38/45] Compiling SimpleMDM Relationship.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[39/45] Compiling SimpleMDM Account.swift
/host/spi-builder-workspace/Sources/Relationship.swift:251:17: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
249 |     ///   - index: The index of the resource to fetch in the collection.
250 |     ///   - completion: A completion handler called with the fetched resource, or an error.
251 |     public func get(id: Element.ID, completion: @escaping (Result<Element>) -> Void) {
    |                 `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
252 |         get(SimpleMDM.shared.networking, id: id, completion: completion)
253 |     }
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[40/45] Compiling SimpleMDM Cursor.swift
[41/45] Compiling SimpleMDM Decoding.swift
[42/45] Compiling SimpleMDM Error.swift
[43/45] Compiling SimpleMDM PushCertificate.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[44/45] Compiling SimpleMDM Resource.generated.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
[45/45] Compiling SimpleMDM Resource.swift
/host/spi-builder-workspace/Sources/Resources/Resource.swift:9:18: warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
  7 |
  8 | /// A completion clusure used to return a Result type asynchronously.
  9 | public typealias CompletionClosure<Value> = (Result<Value>) -> Void
    |                  `- warning: cannot use generic enum 'Result' here; 'PromiseKit' was not imported by this file
 10 |
 11 | /// A protocol adopted by all resources types of the library.
/host/spi-builder-workspace/.build/checkouts/PromiseKit/Sources/Resolver.swift:97:13: note: generic enum declared here
 95 | #endif
 96 |
 97 | public enum Result<T> {
    |             `- note: generic enum declared here
 98 |     case fulfilled(T)
 99 |     case rejected(Error)
BUILD FAILURE 6.1 linux