The Swift Package Index logo.Swift Package Index

Build Information

Failed to build APIAlerts, reference 1.3.0 (5a3649), with Swift 6.1 for Wasm on 9 Jul 2026 17:51:01 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886769-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apialerts/apialerts-swift.git
Reference: 1.3.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/apialerts/apialerts-swift
 * tag               1.3.0      -> FETCH_HEAD
HEAD is now at 5a3649b 1.3.0 - Support Linux / server-side Swift (#7)
Cloned https://github.com/apialerts/apialerts-swift.git
Revision (git rev-parse @):
5a3649b3e3df1e397aff251dd16f69ef800c7c34
SUCCESS checkout https://github.com/apialerts/apialerts-swift.git at 1.3.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/apialerts/apialerts-swift.git
https://github.com/apialerts/apialerts-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-log.git
[1/7644] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.49s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.14.0 (0.73s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.14.0
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/14] Compiling Logging LoggingSystem.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[5/15] Compiling Logging Logger.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[6/15] Compiling Logging MetadataProvider.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[7/15] Compiling Logging SwiftLogNoOpLogHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[8/15] Compiling Logging Locks.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[9/15] Compiling Logging MultiplexLogHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[10/15] Compiling Logging StreamLogHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[11/15] Emitting module Logging
unable to find node: pound
unable to find node: pound
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[12/15] Compiling Logging LogEvent.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[13/15] Compiling Logging LogHandler.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[14/15] Compiling Logging Logger+Attributes.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[15/15] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[17/26] Compiling APIAlerts Network.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:7:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 | struct Network {
 7 |     var session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |     var integration: String
 9 |     var version: String
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/apialerts-swift/Network/Network.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
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/apialerts-swift/Network/Network.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:29:23: error: cannot find 'URLRequest' in scope
27 |         }
28 |
29 |         var request = URLRequest(url: url, timeoutInterval: timeoutSeconds)
   |                       `- error: cannot find 'URLRequest' in scope
30 |         request.httpMethod = "POST"
31 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:43:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |         let data: Data
43 |         let response: URLResponse
   |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         do {
45 |             (data, response) = try await session.data(for: request)
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/apialerts-swift/Network/Network.swift:45:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 |         let response: URLResponse
44 |         do {
45 |             (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
46 |         } catch {
47 |             return .failure(.networkError(error.localizedDescription))
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:50:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
48 |         }
49 |
50 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
51 |             return .failure(.invalidResponse)
52 |         }
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:50:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         }
49 |
50 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failure(.invalidResponse)
52 |         }
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/apialerts-swift/Network/Network.swift:54:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         }
53 |
54 |         switch httpResponse.statusCode {
   |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         case 200:
56 |             do {
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:71:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |         case 403: return .failure(.httpError(403, "forbidden"))
70 |         case 429: return .failure(.httpError(429, "rate limit exceeded"))
71 |         default: return .failure(.httpError(httpResponse.statusCode, "unexpected status: \(httpResponse.statusCode)"))
   |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 |         }
73 |     }
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:71:105: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |         case 403: return .failure(.httpError(403, "forbidden"))
70 |         case 429: return .failure(.httpError(429, "rate limit exceeded"))
71 |         default: return .failure(.httpError(httpResponse.statusCode, "unexpected status: \(httpResponse.statusCode)"))
   |                                                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 |         }
73 |     }
[18/27] Compiling APIAlerts SendResult.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[19/27] Compiling APIAlerts ApiAlertsClientProtocol.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[20/27] Compiling APIAlerts ApiAlertsError.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[21/27] Emitting module APIAlerts
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/apialerts-swift/APIAlerts.swift:23:82: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
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/apialerts-swift/APIAlerts.swift:23:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/host/spi-builder-workspace/Sources/apialerts-swift/ApiAlertsClient.swift:19:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.apiKey = apiKey
21 |         self.debug = debug
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/apialerts-swift/ApiAlertsClient.swift:19:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |         self.apiKey = apiKey
21 |         self.debug = debug
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:7:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 | struct Network {
 7 |     var session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |     var integration: String
 9 |     var version: String
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/apialerts-swift/Network/Network.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
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/apialerts-swift/Network/Network.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
[22/27] Compiling APIAlerts APIAlerts.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/apialerts-swift/APIAlerts.swift:23:82: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
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/apialerts-swift/APIAlerts.swift:23:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/host/spi-builder-workspace/Sources/apialerts-swift/ApiAlertsClient.swift:19:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.apiKey = apiKey
21 |         self.debug = debug
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/apialerts-swift/ApiAlertsClient.swift:19:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |         self.apiKey = apiKey
21 |         self.debug = debug
[23/27] Compiling APIAlerts ApiAlertsClient.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/host/spi-builder-workspace/Sources/apialerts-swift/APIAlerts.swift:23:82: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
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/apialerts-swift/APIAlerts.swift:23:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/host/spi-builder-workspace/Sources/apialerts-swift/ApiAlertsClient.swift:19:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.apiKey = apiKey
21 |         self.debug = debug
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/apialerts-swift/ApiAlertsClient.swift:19:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |         self.apiKey = apiKey
21 |         self.debug = debug
[24/27] Compiling APIAlerts EventRequest.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[25/27] Compiling APIAlerts Constants.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[26/27] Compiling APIAlerts EventResponse.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[27/27] Compiling APIAlerts Event.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886769-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:1ad245dad3d2ae0004e1afbc92334bd39884ed9ca587cf04d0a8d5f640fb02e9
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] Compiling Logging LogEvent.swift
[3/12] Compiling Logging LogHandler.swift
[4/12] Compiling Logging Logger+Attributes.swift
[5/12] Compiling Logging SwiftLogNoOpLogHandler.swift
[6/12] Compiling Logging Locks.swift
[7/13] Compiling Logging MetadataProvider.swift
[8/13] Compiling Logging LoggingSystem.swift
[9/13] Compiling Logging Logger.swift
[10/13] Compiling Logging Logger+With.swift
unable to find node: pound
unable to find node: pound
[11/13] Compiling Logging MultiplexLogHandler.swift
[12/13] Compiling Logging StreamLogHandler.swift
[13/13] Emitting module Logging
unable to find node: pound
unable to find node: pound
[15/24] Compiling APIAlerts Network.swift
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:7:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 | struct Network {
 7 |     var session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |     var integration: String
 9 |     var version: String
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/apialerts-swift/Network/Network.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
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/apialerts-swift/Network/Network.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:29:23: error: cannot find 'URLRequest' in scope
27 |         }
28 |
29 |         var request = URLRequest(url: url, timeoutInterval: timeoutSeconds)
   |                       `- error: cannot find 'URLRequest' in scope
30 |         request.httpMethod = "POST"
31 |         request.setValue("Bearer \(apiKey)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:43:23: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
41 |
42 |         let data: Data
43 |         let response: URLResponse
   |                       `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
44 |         do {
45 |             (data, response) = try await session.data(for: request)
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/apialerts-swift/Network/Network.swift:45:50: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
43 |         let response: URLResponse
44 |         do {
45 |             (data, response) = try await session.data(for: request)
   |                                                  `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
46 |         } catch {
47 |             return .failure(.networkError(error.localizedDescription))
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:50:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
48 |         }
49 |
50 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                           `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
51 |             return .failure(.invalidResponse)
52 |         }
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:50:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 |         }
49 |
50 |         guard let httpResponse = response as? HTTPURLResponse else {
   |                                               `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 |             return .failure(.invalidResponse)
52 |         }
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/apialerts-swift/Network/Network.swift:54:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
52 |         }
53 |
54 |         switch httpResponse.statusCode {
   |                             `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
55 |         case 200:
56 |             do {
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:71:58: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |         case 403: return .failure(.httpError(403, "forbidden"))
70 |         case 429: return .failure(.httpError(429, "rate limit exceeded"))
71 |         default: return .failure(.httpError(httpResponse.statusCode, "unexpected status: \(httpResponse.statusCode)"))
   |                                                          `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 |         }
73 |     }
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:71:105: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
69 |         case 403: return .failure(.httpError(403, "forbidden"))
70 |         case 429: return .failure(.httpError(429, "rate limit exceeded"))
71 |         default: return .failure(.httpError(httpResponse.statusCode, "unexpected status: \(httpResponse.statusCode)"))
   |                                                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
72 |         }
73 |     }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/25] Emitting module APIAlerts
/host/spi-builder-workspace/Sources/apialerts-swift/APIAlerts.swift:23:82: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
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/apialerts-swift/APIAlerts.swift:23:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/host/spi-builder-workspace/Sources/apialerts-swift/ApiAlertsClient.swift:19:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.apiKey = apiKey
21 |         self.debug = debug
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/apialerts-swift/ApiAlertsClient.swift:19:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |         self.apiKey = apiKey
21 |         self.debug = debug
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:7:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 5 |
 6 | struct Network {
 7 |     var session: URLSession
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 8 |     var integration: String
 9 |     var version: String
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/apialerts-swift/Network/Network.swift:13:18: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
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/apialerts-swift/Network/Network.swift:13:32: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
[17/25] Compiling APIAlerts APIAlerts.swift
/host/spi-builder-workspace/Sources/apialerts-swift/APIAlerts.swift:23:82: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
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/apialerts-swift/APIAlerts.swift:23:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/host/spi-builder-workspace/Sources/apialerts-swift/ApiAlertsClient.swift:19:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.apiKey = apiKey
21 |         self.debug = debug
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/apialerts-swift/ApiAlertsClient.swift:19:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |         self.apiKey = apiKey
21 |         self.debug = debug
[18/25] Compiling APIAlerts ApiAlertsClient.swift
/host/spi-builder-workspace/Sources/apialerts-swift/APIAlerts.swift:23:82: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                  `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
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/apialerts-swift/APIAlerts.swift:23:96: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
21 |     ///   - debug: Log success and warnings (critical errors always log).
22 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
23 |     public static func configure(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                                                `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/host/spi-builder-workspace/Sources/apialerts-swift/ApiAlertsClient.swift:19:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 |         self.apiKey = apiKey
21 |         self.debug = debug
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/apialerts-swift/ApiAlertsClient.swift:19:79: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 |     ///   - debug: Log success and warnings (errors always log).
18 |     ///   - session: `URLSession` for delivery; inject one for pooling, proxies, or test mocks.
19 |     public init(_ apiKey: String, debug: Bool = false, session: URLSession = .shared) {
   |                                                                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 |         self.apiKey = apiKey
21 |         self.debug = debug
[19/25] Compiling APIAlerts EventRequest.swift
[20/25] Compiling APIAlerts EventResponse.swift
[21/25] Compiling APIAlerts ApiAlertsClientProtocol.swift
[22/25] Compiling APIAlerts ApiAlertsError.swift
[23/25] Compiling APIAlerts Constants.swift
[24/25] Compiling APIAlerts Event.swift
[25/25] Compiling APIAlerts SendResult.swift
BUILD FAILURE 6.1 wasm