The Swift Package Index logo.Swift Package Index

Build Information

Failed to build ZenmanageSwift, reference main (adce34), with Swift 6.3 for Wasm on 10 Nov 2026 07:08:43 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/zenmanage/zenmanage-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/zenmanage/zenmanage-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at adce341 ci: pin GitHub Actions to commit SHAs (#11)
Cloned https://github.com/zenmanage/zenmanage-swift.git
Revision (git rev-parse @):
adce3412c017b77c796cadcf281a695dd9434648
SUCCESS checkout https://github.com/zenmanage/zenmanage-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/zenmanage/zenmanage-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344846-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:3045625b85c7b3a40ef7c4e596cfe3f6119a575d9bb01341bbf4a893a5aa001c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/13] Emitting module Zenmanage
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private let enableUsageReporting: Bool
 20 |     private let logger: any ZenmanageLogger
 21 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private let clientAgent: String
 23 |     private let requestTimeout: TimeInterval
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:116:106: error: cannot find type 'URLRequest' in scope
114 |     }
115 |
116 |     private func makeRequest(url: URL, includeContentType: Bool = true, timeout: TimeInterval? = nil) -> URLRequest {
    |                                                                                                          `- error: cannot find type 'URLRequest' in scope
117 |         var request = URLRequest(url: url)
118 |         request.timeoutInterval = timeout ?? requestTimeout
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:131:35: error: cannot find type 'URLRequest' in scope
129 |     }
130 |
131 |     private func perform(request: URLRequest) async throws -> Data {
    |                                   `- error: cannot find type 'URLRequest' in scope
132 |         let (data, response) = try await urlSession.data(for: request)
133 |
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:11:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     public let apiEndpoint: URL
10 |     public let logger: any ZenmanageLogger
11 |     public let urlSession: URLSession
   |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public let clientAgent: String?
13 |     /// Timeout, in seconds, applied to each rules request. Usage reports use the smaller
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:35: error: value of type '_' expected to be instance of class or class-constrained type
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:4:2: error: Objective-C interoperability is disabled
  2 |
  3 | /// Objective-C compatible attribute wrapper.
  4 | @objc(ZMObjCAttribute)
    |  `- error: Objective-C interoperability is disabled
  5 | public final class ObjCAttribute: NSObject {
  6 |     let attribute: Attribute
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:8:6: error: Objective-C interoperability is disabled
  6 |     let attribute: Attribute
  7 |
  8 |     @objc public let key: String
    |      `- error: Objective-C interoperability is disabled
  9 |     @objc public let values: [String]
 10 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:9:6: error: Objective-C interoperability is disabled
  7 |
  8 |     @objc public let key: String
  9 |     @objc public let values: [String]
    |      `- error: Objective-C interoperability is disabled
 10 |
 11 |     @objc public init(key: String, values: [String] = []) {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:11:6: error: Objective-C interoperability is disabled
  9 |     @objc public let values: [String]
 10 |
 11 |     @objc public init(key: String, values: [String] = []) {
    |      `- error: Objective-C interoperability is disabled
 12 |         self.key = key
 13 |         self.values = values
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:20:2: error: Objective-C interoperability is disabled
 18 |
 19 | /// Objective-C compatible context wrapper.
 20 | @objc(ZMObjCContext)
    |  `- error: Objective-C interoperability is disabled
 21 | public final class ObjCContext: NSObject {
 22 |     let context: Context
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:24:6: error: Objective-C interoperability is disabled
 22 |     let context: Context
 23 |
 24 |     @objc public let type: String
    |      `- error: Objective-C interoperability is disabled
 25 |     @objc public let name: String?
 26 |     @objc public let identifier: String?
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:25:6: error: Objective-C interoperability is disabled
 23 |
 24 |     @objc public let type: String
 25 |     @objc public let name: String?
    |      `- error: Objective-C interoperability is disabled
 26 |     @objc public let identifier: String?
 27 |     @objc public let attributes: [ObjCAttribute]
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:26:6: error: Objective-C interoperability is disabled
 24 |     @objc public let type: String
 25 |     @objc public let name: String?
 26 |     @objc public let identifier: String?
    |      `- error: Objective-C interoperability is disabled
 27 |     @objc public let attributes: [ObjCAttribute]
 28 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:27:6: error: Objective-C interoperability is disabled
 25 |     @objc public let name: String?
 26 |     @objc public let identifier: String?
 27 |     @objc public let attributes: [ObjCAttribute]
    |      `- error: Objective-C interoperability is disabled
 28 |
 29 |     @objc public init(type: String, name: String? = nil, identifier: String? = nil, attributes: [ObjCAttribute] = []) {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:29:6: error: Objective-C interoperability is disabled
 27 |     @objc public let attributes: [ObjCAttribute]
 28 |
 29 |     @objc public init(type: String, name: String? = nil, identifier: String? = nil, attributes: [ObjCAttribute] = []) {
    |      `- error: Objective-C interoperability is disabled
 30 |         self.type = type
 31 |         self.name = name
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:38:6: error: Objective-C interoperability is disabled
 36 |     }
 37 |
 38 |     @objc public static func single(type: String, identifier: String, name: String? = nil) -> ObjCContext {
    |      `- error: Objective-C interoperability is disabled
 39 |         ObjCContext(type: type, name: name, identifier: identifier)
 40 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:44:2: error: Objective-C interoperability is disabled
 42 |
 43 | /// Objective-C compatible defaults wrapper.
 44 | @objc(ZMObjCDefaultsCollection)
    |  `- error: Objective-C interoperability is disabled
 45 | public final class ObjCDefaultsCollection: NSObject {
 46 |     let defaults = DefaultsCollection()
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:48:6: error: Objective-C interoperability is disabled
 46 |     let defaults = DefaultsCollection()
 47 |
 48 |     @objc @discardableResult public func setBool(_ value: Bool, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 49 |         defaults.set(key, bool: value)
 50 |         return self
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:53:6: error: Objective-C interoperability is disabled
 51 |     }
 52 |
 53 |     @objc @discardableResult public func setString(_ value: String, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 54 |         defaults.set(key, string: value)
 55 |         return self
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:58:6: error: Objective-C interoperability is disabled
 56 |     }
 57 |
 58 |     @objc @discardableResult public func setNumber(_ value: NSNumber, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 59 |         defaults.set(key, number: value.doubleValue)
 60 |         return self
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:66:6: error: Objective-C interoperability is disabled
 64 |     /// can't be represented in JSON (anything but strings, numbers, booleans, `NSNull`,
 65 |     /// dictionaries, and arrays) are stored as `null`; any other top-level value is ignored.
 66 |     @objc @discardableResult public func setJson(_ value: Any, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 67 |         if value is NSDictionary || value is NSArray {
 68 |             defaults.set(key, json: JSONValue(foundationValue: value))
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:76:2: error: Objective-C interoperability is disabled
 74 |
 75 | /// Objective-C compatible flag wrapper.
 76 | @objc(ZMObjCFlag)
    |  `- error: Objective-C interoperability is disabled
 77 | public final class ObjCFlag: NSObject {
 78 |     private let flag: Flag
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:80:6: error: Objective-C interoperability is disabled
 78 |     private let flag: Flag
 79 |
 80 |     @objc public let key: String
    |      `- error: Objective-C interoperability is disabled
 81 |     @objc public let name: String
 82 |     @objc public let type: String
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:81:6: error: Objective-C interoperability is disabled
 79 |
 80 |     @objc public let key: String
 81 |     @objc public let name: String
    |      `- error: Objective-C interoperability is disabled
 82 |     @objc public let type: String
 83 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:82:6: error: Objective-C interoperability is disabled
 80 |     @objc public let key: String
 81 |     @objc public let name: String
 82 |     @objc public let type: String
    |      `- error: Objective-C interoperability is disabled
 83 |
 84 |     init(flag: Flag) {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:92:6: error: Objective-C interoperability is disabled
 90 |     }
 91 |
 92 |     @objc public func isEnabled() -> Bool {
    |      `- error: Objective-C interoperability is disabled
 93 |         flag.isEnabled()
 94 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:96:6: error: Objective-C interoperability is disabled
 94 |     }
 95 |
 96 |     @objc public func asBool() -> Bool {
    |      `- error: Objective-C interoperability is disabled
 97 |         flag.asBool()
 98 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:100:6: error: Objective-C interoperability is disabled
 98 |     }
 99 |
100 |     @objc public func asString() -> String {
    |      `- error: Objective-C interoperability is disabled
101 |         flag.asString()
102 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:104:6: error: Objective-C interoperability is disabled
102 |     }
103 |
104 |     @objc public func asNumber() -> NSNumber {
    |      `- error: Objective-C interoperability is disabled
105 |         NSNumber(value: flag.asNumber())
106 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:108:6: error: Objective-C interoperability is disabled
106 |     }
107 |
108 |     @objc public func asJson() -> Any {
    |      `- error: Objective-C interoperability is disabled
109 |         flag.asJson().foundationValue
110 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:161:2: error: Objective-C interoperability is disabled
159 |
160 | /// Objective-C compatible flag manager wrapper.
161 | @objc(ZMObjCFlagManager)
    |  `- error: Objective-C interoperability is disabled
162 | public final class ObjCFlagManager: NSObject {
163 |     private let manager: FlagManager
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:170:6: error: Objective-C interoperability is disabled
168 |     }
169 |
170 |     @objc public func withContext(_ context: ObjCContext) -> ObjCFlagManager {
    |      `- error: Objective-C interoperability is disabled
171 |         ObjCFlagManager(manager: manager.withContext(context.context))
172 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:174:6: error: Objective-C interoperability is disabled
172 |     }
173 |
174 |     @objc public func withDefaults(_ defaults: ObjCDefaultsCollection) -> ObjCFlagManager {
    |      `- error: Objective-C interoperability is disabled
175 |         ObjCFlagManager(manager: manager.withDefaults(defaults.defaults))
176 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:179:6: error: Objective-C interoperability is disabled
177 |
178 |     /// Reports usage of a flag. Fire-and-forget; honours `enableUsageReporting`.
179 |     @objc public func reportUsage(_ key: String, context: ObjCContext? = nil) {
    |      `- error: Objective-C interoperability is disabled
180 |         manager.reportUsage(key, context: context?.context)
181 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:183:6: error: Objective-C interoperability is disabled
181 |     }
182 |
183 |     @objc public func refreshRulesWithCompletion(_ completion: @escaping (NSError?) -> Void) {
    |      `- error: Objective-C interoperability is disabled
184 |         Task {
185 |             do {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:194:6: error: Objective-C interoperability is disabled
192 |     }
193 |
194 |     @objc public func allWithContext(_ context: ObjCContext?, completion: @escaping ([ObjCFlag]?, NSError?) -> Void) {
    |      `- error: Objective-C interoperability is disabled
195 |         let scopedManager = context.map { manager.withContext($0.context) } ?? manager
196 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:207:6: error: Objective-C interoperability is disabled
205 |     }
206 |
207 |     @objc public func single(
    |      `- error: Objective-C interoperability is disabled
208 |         _ key: String,
209 |         defaultValue: NSObject? = nil,
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:247:2: error: Objective-C interoperability is disabled
245 |
246 | /// Objective-C compatible main SDK wrapper.
247 | @objc(ZMObjCZenmanage)
    |  `- error: Objective-C interoperability is disabled
248 | public final class ObjCZenmanage: NSObject {
249 |     private let sdk: Zenmanage
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:251:6: error: Objective-C interoperability is disabled
249 |     private let sdk: Zenmanage
250 |
251 |     @objc public init(
    |      `- error: Objective-C interoperability is disabled
252 |         environmentToken: String,
253 |         cacheTTL: NSNumber = 3600,
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:272:6: error: Objective-C interoperability is disabled
270 |     }
271 |
272 |     @objc public func flags() -> ObjCFlagManager {
    |      `- error: Objective-C interoperability is disabled
273 |         ObjCFlagManager(manager: sdk.flags())
274 |     }
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:35: error: value of type '_' expected to be instance of class or class-constrained type
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
[4/14] Compiling Zenmanage Zenmanage.swift
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:35: error: value of type '_' expected to be instance of class or class-constrained type
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
[5/14] Compiling Zenmanage RuleEngine.swift
[6/14] Compiling Zenmanage Version.swift
[7/14] Compiling Zenmanage FlagManager.swift
[8/14] Compiling Zenmanage Logging.swift
[9/14] Compiling Zenmanage Models.swift
[10/14] Compiling Zenmanage ObjectiveC.swift
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:4:2: error: Objective-C interoperability is disabled
  2 |
  3 | /// Objective-C compatible attribute wrapper.
  4 | @objc(ZMObjCAttribute)
    |  `- error: Objective-C interoperability is disabled
  5 | public final class ObjCAttribute: NSObject {
  6 |     let attribute: Attribute
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:8:6: error: Objective-C interoperability is disabled
  6 |     let attribute: Attribute
  7 |
  8 |     @objc public let key: String
    |      `- error: Objective-C interoperability is disabled
  9 |     @objc public let values: [String]
 10 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:9:6: error: Objective-C interoperability is disabled
  7 |
  8 |     @objc public let key: String
  9 |     @objc public let values: [String]
    |      `- error: Objective-C interoperability is disabled
 10 |
 11 |     @objc public init(key: String, values: [String] = []) {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:11:6: error: Objective-C interoperability is disabled
  9 |     @objc public let values: [String]
 10 |
 11 |     @objc public init(key: String, values: [String] = []) {
    |      `- error: Objective-C interoperability is disabled
 12 |         self.key = key
 13 |         self.values = values
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:20:2: error: Objective-C interoperability is disabled
 18 |
 19 | /// Objective-C compatible context wrapper.
 20 | @objc(ZMObjCContext)
    |  `- error: Objective-C interoperability is disabled
 21 | public final class ObjCContext: NSObject {
 22 |     let context: Context
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:24:6: error: Objective-C interoperability is disabled
 22 |     let context: Context
 23 |
 24 |     @objc public let type: String
    |      `- error: Objective-C interoperability is disabled
 25 |     @objc public let name: String?
 26 |     @objc public let identifier: String?
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:25:6: error: Objective-C interoperability is disabled
 23 |
 24 |     @objc public let type: String
 25 |     @objc public let name: String?
    |      `- error: Objective-C interoperability is disabled
 26 |     @objc public let identifier: String?
 27 |     @objc public let attributes: [ObjCAttribute]
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:26:6: error: Objective-C interoperability is disabled
 24 |     @objc public let type: String
 25 |     @objc public let name: String?
 26 |     @objc public let identifier: String?
    |      `- error: Objective-C interoperability is disabled
 27 |     @objc public let attributes: [ObjCAttribute]
 28 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:27:6: error: Objective-C interoperability is disabled
 25 |     @objc public let name: String?
 26 |     @objc public let identifier: String?
 27 |     @objc public let attributes: [ObjCAttribute]
    |      `- error: Objective-C interoperability is disabled
 28 |
 29 |     @objc public init(type: String, name: String? = nil, identifier: String? = nil, attributes: [ObjCAttribute] = []) {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:29:6: error: Objective-C interoperability is disabled
 27 |     @objc public let attributes: [ObjCAttribute]
 28 |
 29 |     @objc public init(type: String, name: String? = nil, identifier: String? = nil, attributes: [ObjCAttribute] = []) {
    |      `- error: Objective-C interoperability is disabled
 30 |         self.type = type
 31 |         self.name = name
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:38:6: error: Objective-C interoperability is disabled
 36 |     }
 37 |
 38 |     @objc public static func single(type: String, identifier: String, name: String? = nil) -> ObjCContext {
    |      `- error: Objective-C interoperability is disabled
 39 |         ObjCContext(type: type, name: name, identifier: identifier)
 40 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:44:2: error: Objective-C interoperability is disabled
 42 |
 43 | /// Objective-C compatible defaults wrapper.
 44 | @objc(ZMObjCDefaultsCollection)
    |  `- error: Objective-C interoperability is disabled
 45 | public final class ObjCDefaultsCollection: NSObject {
 46 |     let defaults = DefaultsCollection()
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:48:6: error: Objective-C interoperability is disabled
 46 |     let defaults = DefaultsCollection()
 47 |
 48 |     @objc @discardableResult public func setBool(_ value: Bool, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 49 |         defaults.set(key, bool: value)
 50 |         return self
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:53:6: error: Objective-C interoperability is disabled
 51 |     }
 52 |
 53 |     @objc @discardableResult public func setString(_ value: String, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 54 |         defaults.set(key, string: value)
 55 |         return self
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:58:6: error: Objective-C interoperability is disabled
 56 |     }
 57 |
 58 |     @objc @discardableResult public func setNumber(_ value: NSNumber, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 59 |         defaults.set(key, number: value.doubleValue)
 60 |         return self
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:66:6: error: Objective-C interoperability is disabled
 64 |     /// can't be represented in JSON (anything but strings, numbers, booleans, `NSNull`,
 65 |     /// dictionaries, and arrays) are stored as `null`; any other top-level value is ignored.
 66 |     @objc @discardableResult public func setJson(_ value: Any, forKey key: String) -> ObjCDefaultsCollection {
    |      `- error: Objective-C interoperability is disabled
 67 |         if value is NSDictionary || value is NSArray {
 68 |             defaults.set(key, json: JSONValue(foundationValue: value))
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:76:2: error: Objective-C interoperability is disabled
 74 |
 75 | /// Objective-C compatible flag wrapper.
 76 | @objc(ZMObjCFlag)
    |  `- error: Objective-C interoperability is disabled
 77 | public final class ObjCFlag: NSObject {
 78 |     private let flag: Flag
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:80:6: error: Objective-C interoperability is disabled
 78 |     private let flag: Flag
 79 |
 80 |     @objc public let key: String
    |      `- error: Objective-C interoperability is disabled
 81 |     @objc public let name: String
 82 |     @objc public let type: String
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:81:6: error: Objective-C interoperability is disabled
 79 |
 80 |     @objc public let key: String
 81 |     @objc public let name: String
    |      `- error: Objective-C interoperability is disabled
 82 |     @objc public let type: String
 83 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:82:6: error: Objective-C interoperability is disabled
 80 |     @objc public let key: String
 81 |     @objc public let name: String
 82 |     @objc public let type: String
    |      `- error: Objective-C interoperability is disabled
 83 |
 84 |     init(flag: Flag) {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:92:6: error: Objective-C interoperability is disabled
 90 |     }
 91 |
 92 |     @objc public func isEnabled() -> Bool {
    |      `- error: Objective-C interoperability is disabled
 93 |         flag.isEnabled()
 94 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:96:6: error: Objective-C interoperability is disabled
 94 |     }
 95 |
 96 |     @objc public func asBool() -> Bool {
    |      `- error: Objective-C interoperability is disabled
 97 |         flag.asBool()
 98 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:100:6: error: Objective-C interoperability is disabled
 98 |     }
 99 |
100 |     @objc public func asString() -> String {
    |      `- error: Objective-C interoperability is disabled
101 |         flag.asString()
102 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:104:6: error: Objective-C interoperability is disabled
102 |     }
103 |
104 |     @objc public func asNumber() -> NSNumber {
    |      `- error: Objective-C interoperability is disabled
105 |         NSNumber(value: flag.asNumber())
106 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:108:6: error: Objective-C interoperability is disabled
106 |     }
107 |
108 |     @objc public func asJson() -> Any {
    |      `- error: Objective-C interoperability is disabled
109 |         flag.asJson().foundationValue
110 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:161:2: error: Objective-C interoperability is disabled
159 |
160 | /// Objective-C compatible flag manager wrapper.
161 | @objc(ZMObjCFlagManager)
    |  `- error: Objective-C interoperability is disabled
162 | public final class ObjCFlagManager: NSObject {
163 |     private let manager: FlagManager
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:170:6: error: Objective-C interoperability is disabled
168 |     }
169 |
170 |     @objc public func withContext(_ context: ObjCContext) -> ObjCFlagManager {
    |      `- error: Objective-C interoperability is disabled
171 |         ObjCFlagManager(manager: manager.withContext(context.context))
172 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:174:6: error: Objective-C interoperability is disabled
172 |     }
173 |
174 |     @objc public func withDefaults(_ defaults: ObjCDefaultsCollection) -> ObjCFlagManager {
    |      `- error: Objective-C interoperability is disabled
175 |         ObjCFlagManager(manager: manager.withDefaults(defaults.defaults))
176 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:179:6: error: Objective-C interoperability is disabled
177 |
178 |     /// Reports usage of a flag. Fire-and-forget; honours `enableUsageReporting`.
179 |     @objc public func reportUsage(_ key: String, context: ObjCContext? = nil) {
    |      `- error: Objective-C interoperability is disabled
180 |         manager.reportUsage(key, context: context?.context)
181 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:183:6: error: Objective-C interoperability is disabled
181 |     }
182 |
183 |     @objc public func refreshRulesWithCompletion(_ completion: @escaping (NSError?) -> Void) {
    |      `- error: Objective-C interoperability is disabled
184 |         Task {
185 |             do {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:194:6: error: Objective-C interoperability is disabled
192 |     }
193 |
194 |     @objc public func allWithContext(_ context: ObjCContext?, completion: @escaping ([ObjCFlag]?, NSError?) -> Void) {
    |      `- error: Objective-C interoperability is disabled
195 |         let scopedManager = context.map { manager.withContext($0.context) } ?? manager
196 |
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:207:6: error: Objective-C interoperability is disabled
205 |     }
206 |
207 |     @objc public func single(
    |      `- error: Objective-C interoperability is disabled
208 |         _ key: String,
209 |         defaultValue: NSObject? = nil,
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:247:2: error: Objective-C interoperability is disabled
245 |
246 | /// Objective-C compatible main SDK wrapper.
247 | @objc(ZMObjCZenmanage)
    |  `- error: Objective-C interoperability is disabled
248 | public final class ObjCZenmanage: NSObject {
249 |     private let sdk: Zenmanage
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:251:6: error: Objective-C interoperability is disabled
249 |     private let sdk: Zenmanage
250 |
251 |     @objc public init(
    |      `- error: Objective-C interoperability is disabled
252 |         environmentToken: String,
253 |         cacheTTL: NSNumber = 3600,
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:272:6: error: Objective-C interoperability is disabled
270 |     }
271 |
272 |     @objc public func flags() -> ObjCFlagManager {
    |      `- error: Objective-C interoperability is disabled
273 |         ObjCFlagManager(manager: sdk.flags())
274 |     }
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:134:20: error: cannot find 'CFGetTypeID' in scope
132 |             self = .string(value as String)
133 |         case let value as NSNumber:
134 |             self = CFGetTypeID(value) == CFBooleanGetTypeID() ? .boolean(value.boolValue) : .number(value.doubleValue)
    |                    `- error: cannot find 'CFGetTypeID' in scope
135 |         default:
136 |             self = .null
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:134:42: error: cannot find 'CFBooleanGetTypeID' in scope
132 |             self = .string(value as String)
133 |         case let value as NSNumber:
134 |             self = CFGetTypeID(value) == CFBooleanGetTypeID() ? .boolean(value.boolValue) : .number(value.doubleValue)
    |                                          `- error: cannot find 'CFBooleanGetTypeID' in scope
135 |         default:
136 |             self = .null
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:223:24: error: cannot find 'CFGetTypeID' in scope
221 |                     flag = try await scopedManager.single(key, defaultValue: value as String)
222 |                 case let value as NSNumber:
223 |                     if CFGetTypeID(value) == CFBooleanGetTypeID() {
    |                        `- error: cannot find 'CFGetTypeID' in scope
224 |                         flag = try await scopedManager.single(key, defaultValue: value.boolValue)
225 |                     } else {
/host/spi-builder-workspace/Sources/Zenmanage/ObjectiveC.swift:223:46: error: cannot find 'CFBooleanGetTypeID' in scope
221 |                     flag = try await scopedManager.single(key, defaultValue: value as String)
222 |                 case let value as NSNumber:
223 |                     if CFGetTypeID(value) == CFBooleanGetTypeID() {
    |                                              `- error: cannot find 'CFBooleanGetTypeID' in scope
224 |                         flag = try await scopedManager.single(key, defaultValue: value.boolValue)
225 |                     } else {
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
/host/spi-builder-workspace/Sources/Zenmanage/Zenmanage.swift:27:35: error: value of type '_' expected to be instance of class or class-constrained type
25 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
26 |         logger: any ZenmanageLogger = NullLogger(),
27 |         urlSession: URLSession = .shared,
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
28 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
29 |     ) throws {
[11/14] Compiling Zenmanage Configuration.swift
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:11:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     public let apiEndpoint: URL
10 |     public let logger: any ZenmanageLogger
11 |     public let urlSession: URLSession
   |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public let clientAgent: String?
13 |     /// Timeout, in seconds, applied to each rules request. Usage reports use the smaller
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:35: error: value of type '_' expected to be instance of class or class-constrained type
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
[12/14] Compiling Zenmanage Errors.swift
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:11:28: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 9 |     public let apiEndpoint: URL
10 |     public let logger: any ZenmanageLogger
11 |     public let urlSession: URLSession
   |                            `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
12 |     public let clientAgent: String?
13 |     /// Timeout, in seconds, applied to each rules request. Usage reports use the smaller
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                     `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:35: error: value of type '_' expected to be instance of class or class-constrained type
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
/host/spi-builder-workspace/Sources/Zenmanage/Configuration.swift:29:35: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
27 |         apiEndpoint: URL = URL(string: "https://api.zenmanage.com")!,
28 |         logger: any ZenmanageLogger = NullLogger(),
29 |         urlSession: URLSession = .shared,
   |                                   `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
30 |         clientAgent: String? = nil,
31 |         requestTimeout: TimeInterval = ZenmanageConfiguration.defaultRequestTimeout
[13/14] Compiling Zenmanage APIClient.swift
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private let enableUsageReporting: Bool
 20 |     private let logger: any ZenmanageLogger
 21 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private let clientAgent: String
 23 |     private let requestTimeout: TimeInterval
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:116:106: error: cannot find type 'URLRequest' in scope
114 |     }
115 |
116 |     private func makeRequest(url: URL, includeContentType: Bool = true, timeout: TimeInterval? = nil) -> URLRequest {
    |                                                                                                          `- error: cannot find type 'URLRequest' in scope
117 |         var request = URLRequest(url: url)
118 |         request.timeoutInterval = timeout ?? requestTimeout
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:131:35: error: cannot find type 'URLRequest' in scope
129 |     }
130 |
131 |     private func perform(request: URLRequest) async throws -> Data {
    |                                   `- error: cannot find type 'URLRequest' in scope
132 |         let (data, response) = try await urlSession.data(for: request)
133 |
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:117:23: error: cannot find 'URLRequest' in scope
115 |
116 |     private func makeRequest(url: URL, includeContentType: Bool = true, timeout: TimeInterval? = nil) -> URLRequest {
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.timeoutInterval = timeout ?? requestTimeout
119 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:132:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
130 |
131 |     private func perform(request: URLRequest) async throws -> Data {
132 |         let (data, response) = try await urlSession.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
133 |
134 |         guard let httpResponse = response as? HTTPURLResponse else {
[14/14] Compiling Zenmanage Cache.swift
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |     private let enableUsageReporting: Bool
 20 |     private let logger: any ZenmanageLogger
 21 |     private let urlSession: URLSession
    |                             `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 22 |     private let clientAgent: String
 23 |     private let requestTimeout: TimeInterval
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:116:106: error: cannot find type 'URLRequest' in scope
114 |     }
115 |
116 |     private func makeRequest(url: URL, includeContentType: Bool = true, timeout: TimeInterval? = nil) -> URLRequest {
    |                                                                                                          `- error: cannot find type 'URLRequest' in scope
117 |         var request = URLRequest(url: url)
118 |         request.timeoutInterval = timeout ?? requestTimeout
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:131:35: error: cannot find type 'URLRequest' in scope
129 |     }
130 |
131 |     private func perform(request: URLRequest) async throws -> Data {
    |                                   `- error: cannot find type 'URLRequest' in scope
132 |         let (data, response) = try await urlSession.data(for: request)
133 |
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:117:23: error: cannot find 'URLRequest' in scope
115 |
116 |     private func makeRequest(url: URL, includeContentType: Bool = true, timeout: TimeInterval? = nil) -> URLRequest {
117 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
118 |         request.timeoutInterval = timeout ?? requestTimeout
119 |         request.httpMethod = "GET"
/host/spi-builder-workspace/Sources/Zenmanage/APIClient.swift:132:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
130 |
131 |     private func perform(request: URLRequest) async throws -> Data {
132 |         let (data, response) = try await urlSession.data(for: request)
    |                                                     `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
133 |
134 |         guard let httpResponse = response as? HTTPURLResponse else {
BUILD FAILURE 6.3 wasm