The Swift Package Index logo.Swift Package Index

Build Information

Failed to build APIAlerts, reference main (5a3649), with Swift 6.2 for Wasm on 9 Jul 2026 17:57:45 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 0e64495ecc1688c3b3e031a5ef1348b5c05091ae
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apialerts/apialerts-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/apialerts/apialerts-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/apialerts/apialerts-swift.git
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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:dc8dffc38f1d92eca7ee5312617822470123661393ed20672e77964f9dcaaffb
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-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.45s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.14.0 (0.62s)
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 Logger.swift
[5/14] Compiling Logging LoggingSystem.swift
[6/14] Compiling Logging Logger+With.swift
[7/15] Compiling Logging Logger+Attributes.swift
[8/15] Compiling Logging LogEvent.swift
[9/15] Compiling Logging LogHandler.swift
[10/15] Compiling Logging MetadataProvider.swift
[11/15] Emitting module Logging
[12/15] Compiling Logging MultiplexLogHandler.swift
[13/15] Compiling Logging StreamLogHandler.swift
[14/15] Compiling Logging SwiftLogNoOpLogHandler.swift
[15/15] Compiling Logging Locks.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[17/26] 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/APIAlerts.swift:23:96: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
20 |         self.apiKey = apiKey
21 |         self.debug = debug
/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,
/host/spi-builder-workspace/Sources/apialerts-swift/Network/Network.swift:13:32: error: value of type '_' expected to be instance of class or class-constrained type
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
14 |         integration: String = integrationName,
15 |         version: String = integrationVersion,
[18/27] Compiling APIAlerts ApiAlertsClientProtocol.swift
[19/27] Compiling APIAlerts ApiAlertsError.swift
[20/27] 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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/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/ApiAlertsClient.swift:19:79: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
20 |         self.apiKey = apiKey
21 |         self.debug = debug
[21/27] 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: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
24 |         guard _sharedClient == nil else { return }
25 |         _sharedClient = ApiAlertsClient(apiKey, debug: debug, session: session)
/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/ApiAlertsClient.swift:19:79: error: value of type '_' expected to be instance of class or class-constrained type
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: value of type '_' expected to be instance of class or class-constrained type
20 |         self.apiKey = apiKey
21 |         self.debug = debug
[22/27] Compiling APIAlerts EventResponse.swift
[23/27] 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:13:32: error: value of type '_' expected to be instance of class or class-constrained type
11 |
12 |     init(
13 |         session: URLSession = .shared,
   |                                `- error: value of type '_' expected to be instance of class or class-constrained type
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 |     }
[24/27] Compiling APIAlerts SendResult.swift
[25/27] Compiling APIAlerts Constants.swift
[26/27] Compiling APIAlerts Event.swift
[27/27] Compiling APIAlerts EventRequest.swift
BUILD FAILURE 6.2 wasm