The Swift Package Index logo.Swift Package Index

Build Information

Failed to build altertable-swift, reference main (b893c3), with Swift 6.3 for Wasm on 23 Apr 2026 11:16:10 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/altertable-ai/altertable-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/altertable-ai/altertable-swift
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at b893c3d ci: validate PR titles for release-please (#33)
Submodule path 'specs': checked out '3a1195e48e40c4f629f11e7181ae098b5d330ecd'
Submodule 'specs' (https://github.com/altertable-ai/altertable-client-specs.git) registered for path 'specs'
Cloning into '/host/spi-builder-workspace/specs'...
Cloned https://github.com/altertable-ai/altertable-swift.git
Revision (git rev-parse @):
b893c3d0f69f9d4a73158db1c2615e764b052bcc
SUCCESS checkout https://github.com/altertable-ai/altertable-swift.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/altertable-ai/altertable-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/8] Copying PrivacyInfo.xcprivacy
[1/8] Write sources
[3/8] Write swift-version-24593BA9C3E375BF.txt
[5/23] Compiling Altertable Logger.swift
[6/23] Compiling Altertable Utils.swift
[7/25] Compiling Altertable Storage.swift
[8/25] Compiling Altertable Context.swift
[9/25] Compiling Altertable Altertable+ScreenViews.swift
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:19:25: error: cannot find 'DispatchQueue' in scope
 17 | public final class Altertable: @unchecked Sendable {
 18 |     /// All mutable state is accessed exclusively on this queue.
 19 |     private let queue = DispatchQueue(label: "ai.altertable.sdk", qos: .utility)
    |                         `- error: cannot find 'DispatchQueue' in scope
 20 |
 21 |     private var config: AltertableConfig
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:19:73: error: cannot infer contextual base in reference to member 'utility'
 17 | public final class Altertable: @unchecked Sendable {
 18 |     /// All mutable state is accessed exclusively on this queue.
 19 |     private let queue = DispatchQueue(label: "ai.altertable.sdk", qos: .utility)
    |                                                                         `- error: cannot infer contextual base in reference to member 'utility'
 20 |
 21 |     private var config: AltertableConfig
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:70:68: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |     }
 69 |
 70 |     init(apiKey: String, config: AltertableConfig? = nil, session: URLSession? = nil) {
    |                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |         var internalConfig = config ?? AltertableConfig()
 72 |
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/Altertable/Core/Altertable.swift:118:55: error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
116 |     deinit {
117 |         if let token = backgroundObserver {
118 |             NotificationCenter.default.removeObserver(token)
    |                                                       `- error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
119 |         }
120 |         // Remove any waiting callbacks if we never held ownership
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:55:26: error: cannot find type 'DispatchQueue' in scope
 53 |         flushIntervalMs: Int,
 54 |         maxBatchSize: Int,
 55 |         altertableQueue: DispatchQueue,
    |                          `- error: cannot find type 'DispatchQueue' in scope
 56 |         sendChunk: @escaping (HomogeneousChunk, @escaping (Result<Void, Error>) -> Void) -> Void
 57 |     ) {
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:458:38: error: cannot infer type of closure parameter 'chunk' without a type annotation
456 |             maxBatchSize: config.maxBatchSize,
457 |             altertableQueue: queue,
458 |             sendChunk: { [weak self] chunk, completion in
    |                                      `- error: cannot infer type of closure parameter 'chunk' without a type annotation
459 |                 guard let self else {
460 |                     completion(.failure(AltertableSendError.clientDeallocated))
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:458:45: error: cannot infer type of closure parameter 'completion' without a type annotation
456 |             maxBatchSize: config.maxBatchSize,
457 |             altertableQueue: queue,
458 |             sendChunk: { [weak self] chunk, completion in
    |                                             `- error: cannot infer type of closure parameter 'completion' without a type annotation
459 |                 guard let self else {
460 |                     completion(.failure(AltertableSendError.clientDeallocated))
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:460:33: error: cannot infer contextual base in reference to member 'failure'
458 |             sendChunk: { [weak self] chunk, completion in
459 |                 guard let self else {
460 |                     completion(.failure(AltertableSendError.clientDeallocated))
    |                                 `- error: cannot infer contextual base in reference to member 'failure'
461 |                     return
462 |                 }
[10/25] Compiling Altertable Altertable.swift
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:19:25: error: cannot find 'DispatchQueue' in scope
 17 | public final class Altertable: @unchecked Sendable {
 18 |     /// All mutable state is accessed exclusively on this queue.
 19 |     private let queue = DispatchQueue(label: "ai.altertable.sdk", qos: .utility)
    |                         `- error: cannot find 'DispatchQueue' in scope
 20 |
 21 |     private var config: AltertableConfig
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:19:73: error: cannot infer contextual base in reference to member 'utility'
 17 | public final class Altertable: @unchecked Sendable {
 18 |     /// All mutable state is accessed exclusively on this queue.
 19 |     private let queue = DispatchQueue(label: "ai.altertable.sdk", qos: .utility)
    |                                                                         `- error: cannot infer contextual base in reference to member 'utility'
 20 |
 21 |     private var config: AltertableConfig
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:70:68: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |     }
 69 |
 70 |     init(apiKey: String, config: AltertableConfig? = nil, session: URLSession? = nil) {
    |                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |         var internalConfig = config ?? AltertableConfig()
 72 |
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/Altertable/Core/Altertable.swift:118:55: error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
116 |     deinit {
117 |         if let token = backgroundObserver {
118 |             NotificationCenter.default.removeObserver(token)
    |                                                       `- error: cannot convert value of type 'AnyObject' to expected argument type 'NotificationCenter.ObservationToken'
119 |         }
120 |         // Remove any waiting callbacks if we never held ownership
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:55:26: error: cannot find type 'DispatchQueue' in scope
 53 |         flushIntervalMs: Int,
 54 |         maxBatchSize: Int,
 55 |         altertableQueue: DispatchQueue,
    |                          `- error: cannot find type 'DispatchQueue' in scope
 56 |         sendChunk: @escaping (HomogeneousChunk, @escaping (Result<Void, Error>) -> Void) -> Void
 57 |     ) {
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:458:38: error: cannot infer type of closure parameter 'chunk' without a type annotation
456 |             maxBatchSize: config.maxBatchSize,
457 |             altertableQueue: queue,
458 |             sendChunk: { [weak self] chunk, completion in
    |                                      `- error: cannot infer type of closure parameter 'chunk' without a type annotation
459 |                 guard let self else {
460 |                     completion(.failure(AltertableSendError.clientDeallocated))
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:458:45: error: cannot infer type of closure parameter 'completion' without a type annotation
456 |             maxBatchSize: config.maxBatchSize,
457 |             altertableQueue: queue,
458 |             sendChunk: { [weak self] chunk, completion in
    |                                             `- error: cannot infer type of closure parameter 'completion' without a type annotation
459 |                 guard let self else {
460 |                     completion(.failure(AltertableSendError.clientDeallocated))
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:460:33: error: cannot infer contextual base in reference to member 'failure'
458 |             sendChunk: { [weak self] chunk, completion in
459 |                 guard let self else {
460 |                     completion(.failure(AltertableSendError.clientDeallocated))
    |                                 `- error: cannot infer contextual base in reference to member 'failure'
461 |                     return
462 |                 }
[11/25] Compiling Altertable AltertableConfig.swift
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:26:37: error: cannot find type 'DispatchWorkItem' in scope
 24 |     private var bufferGeneration: Int = 0
 25 |
 26 |     private var flushTimerWorkItem: DispatchWorkItem?
    |                                     `- error: cannot find type 'DispatchWorkItem' in scope
 27 |     private var isFlushTimerRunning = false
 28 |     /// When `false`, threshold/timer/manual flush do not drain the FIFO (used when tracking consent is not granted).
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:30:34: error: cannot find type 'DispatchQueue' in scope
 28 |     /// When `false`, threshold/timer/manual flush do not drain the FIFO (used when tracking consent is not granted).
 29 |     private var isSendingEnabled = true
 30 |     private let altertableQueue: DispatchQueue
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 31 |
 32 |     /// Sends started by the periodic timer — excluded from ``flush(completion:)`` drain.
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:55:26: error: cannot find type 'DispatchQueue' in scope
 53 |         flushIntervalMs: Int,
 54 |         maxBatchSize: Int,
 55 |         altertableQueue: DispatchQueue,
    |                          `- error: cannot find type 'DispatchQueue' in scope
 56 |         sendChunk: @escaping (HomogeneousChunk, @escaping (Result<Void, Error>) -> Void) -> Void
 57 |     ) {
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:143:24: error: cannot find 'DispatchWorkItem' in scope
141 |         guard isFlushTimerRunning, flushIntervalMs > 0 else { return }
142 |
143 |         let workItem = DispatchWorkItem { [weak self] in
    |                        `- error: cannot find 'DispatchWorkItem' in scope
144 |             guard let self else { return }
145 |             guard self.isFlushTimerRunning else { return }
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:151:47: error: cannot call value of non-function type 'ContinuousClock.Instant'
149 |         }
150 |         flushTimerWorkItem = workItem
151 |         altertableQueue.asyncAfter(deadline: .now() + .milliseconds(flushIntervalMs), execute: workItem)
    |                                               `- error: cannot call value of non-function type 'ContinuousClock.Instant'
152 |     }
153 |
[12/25] Compiling Altertable Batcher.swift
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:26:37: error: cannot find type 'DispatchWorkItem' in scope
 24 |     private var bufferGeneration: Int = 0
 25 |
 26 |     private var flushTimerWorkItem: DispatchWorkItem?
    |                                     `- error: cannot find type 'DispatchWorkItem' in scope
 27 |     private var isFlushTimerRunning = false
 28 |     /// When `false`, threshold/timer/manual flush do not drain the FIFO (used when tracking consent is not granted).
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:30:34: error: cannot find type 'DispatchQueue' in scope
 28 |     /// When `false`, threshold/timer/manual flush do not drain the FIFO (used when tracking consent is not granted).
 29 |     private var isSendingEnabled = true
 30 |     private let altertableQueue: DispatchQueue
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 31 |
 32 |     /// Sends started by the periodic timer — excluded from ``flush(completion:)`` drain.
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:55:26: error: cannot find type 'DispatchQueue' in scope
 53 |         flushIntervalMs: Int,
 54 |         maxBatchSize: Int,
 55 |         altertableQueue: DispatchQueue,
    |                          `- error: cannot find type 'DispatchQueue' in scope
 56 |         sendChunk: @escaping (HomogeneousChunk, @escaping (Result<Void, Error>) -> Void) -> Void
 57 |     ) {
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:143:24: error: cannot find 'DispatchWorkItem' in scope
141 |         guard isFlushTimerRunning, flushIntervalMs > 0 else { return }
142 |
143 |         let workItem = DispatchWorkItem { [weak self] in
    |                        `- error: cannot find 'DispatchWorkItem' in scope
144 |             guard let self else { return }
145 |             guard self.isFlushTimerRunning else { return }
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:151:47: error: cannot call value of non-function type 'ContinuousClock.Instant'
149 |         }
150 |         flushTimerWorkItem = workItem
151 |         altertableQueue.asyncAfter(deadline: .now() + .milliseconds(flushIntervalMs), execute: workItem)
    |                                               `- error: cannot call value of non-function type 'ContinuousClock.Instant'
152 |     }
153 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[13/25] Emitting module Altertable
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:19:25: error: cannot find 'DispatchQueue' in scope
 17 | public final class Altertable: @unchecked Sendable {
 18 |     /// All mutable state is accessed exclusively on this queue.
 19 |     private let queue = DispatchQueue(label: "ai.altertable.sdk", qos: .utility)
    |                         `- error: cannot find 'DispatchQueue' in scope
 20 |
 21 |     private var config: AltertableConfig
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:19:73: error: cannot infer contextual base in reference to member 'utility'
 17 | public final class Altertable: @unchecked Sendable {
 18 |     /// All mutable state is accessed exclusively on this queue.
 19 |     private let queue = DispatchQueue(label: "ai.altertable.sdk", qos: .utility)
    |                                                                         `- error: cannot infer contextual base in reference to member 'utility'
 20 |
 21 |     private var config: AltertableConfig
/host/spi-builder-workspace/Sources/Altertable/Core/Altertable.swift:70:68: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 68 |     }
 69 |
 70 |     init(apiKey: String, config: AltertableConfig? = nil, session: URLSession? = nil) {
    |                                                                    `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 71 |         var internalConfig = config ?? AltertableConfig()
 72 |
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/Altertable/Core/Batcher.swift:26:37: error: cannot find type 'DispatchWorkItem' in scope
 24 |     private var bufferGeneration: Int = 0
 25 |
 26 |     private var flushTimerWorkItem: DispatchWorkItem?
    |                                     `- error: cannot find type 'DispatchWorkItem' in scope
 27 |     private var isFlushTimerRunning = false
 28 |     /// When `false`, threshold/timer/manual flush do not drain the FIFO (used when tracking consent is not granted).
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:30:34: error: cannot find type 'DispatchQueue' in scope
 28 |     /// When `false`, threshold/timer/manual flush do not drain the FIFO (used when tracking consent is not granted).
 29 |     private var isSendingEnabled = true
 30 |     private let altertableQueue: DispatchQueue
    |                                  `- error: cannot find type 'DispatchQueue' in scope
 31 |
 32 |     /// Sends started by the periodic timer — excluded from ``flush(completion:)`` drain.
/host/spi-builder-workspace/Sources/Altertable/Core/Batcher.swift:55:26: error: cannot find type 'DispatchQueue' in scope
 53 |         flushIntervalMs: Int,
 54 |         maxBatchSize: Int,
 55 |         altertableQueue: DispatchQueue,
    |                          `- error: cannot find type 'DispatchQueue' in scope
 56 |         sendChunk: @escaping (HomogeneousChunk, @escaping (Result<Void, Error>) -> Void) -> Void
 57 |     ) {
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | final class Requester {
 29 |     private let apiKey: String
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     // `retryBaseDelay` is a test-only override; guard all access through `delayQueue`.
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/Altertable/Core/Requester.swift:33:30: error: cannot find 'DispatchQueue' in scope
 31 |
 32 |     // `retryBaseDelay` is a test-only override; guard all access through `delayQueue`.
 33 |     private let delayQueue = DispatchQueue(label: "ai.altertable.requester.delay")
    |                              `- error: cannot find 'DispatchQueue' in scope
 34 |     private var _retryBaseDelay: Double = SDKConstants.httpRetryBaseDelaySeconds
 35 |     var retryBaseDelay: Double {
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:40:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     init(apiKey: String, requestTimeout: TimeInterval, session: URLSession? = nil) {
    |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         self.apiKey = apiKey
 42 |
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/Altertable/Core/Requester.swift:125:18: error: cannot find type 'URLRequest' in scope
123 |
124 |     private func execute(
125 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
126 |         attempt: Int,
127 |         maxAttempts: Int,
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:169:18: error: cannot find type 'URLRequest' in scope
167 |
168 |     private func retryOrFail(
169 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
170 |         attempt: Int,
171 |         maxAttempts: Int,
[14/25] Compiling Altertable Requester.swift
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | final class Requester {
 29 |     private let apiKey: String
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     // `retryBaseDelay` is a test-only override; guard all access through `delayQueue`.
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/Altertable/Core/Requester.swift:33:30: error: cannot find 'DispatchQueue' in scope
 31 |
 32 |     // `retryBaseDelay` is a test-only override; guard all access through `delayQueue`.
 33 |     private let delayQueue = DispatchQueue(label: "ai.altertable.requester.delay")
    |                              `- error: cannot find 'DispatchQueue' in scope
 34 |     private var _retryBaseDelay: Double = SDKConstants.httpRetryBaseDelaySeconds
 35 |     var retryBaseDelay: Double {
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:40:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     init(apiKey: String, requestTimeout: TimeInterval, session: URLSession? = nil) {
    |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         self.apiKey = apiKey
 42 |
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/Altertable/Core/Requester.swift:125:18: error: cannot find type 'URLRequest' in scope
123 |
124 |     private func execute(
125 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
126 |         attempt: Int,
127 |         maxAttempts: Int,
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:169:18: error: cannot find type 'URLRequest' in scope
167 |
168 |     private func retryOrFail(
169 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
170 |         attempt: Int,
171 |         maxAttempts: Int,
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:46:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 44 |             self.session = session
 45 |         } else {
 46 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 47 |             // Snapshot timeout at init time — safe because init runs on the
 48 |             // Altertable serial queue before any concurrent access begins.
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:51:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 |             sessionConfig.timeoutIntervalForRequest = requestTimeout
 50 |             sessionConfig.timeoutIntervalForResource = requestTimeout
 51 |             self.session = URLSession(configuration: sessionConfig)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |         }
 53 |     }
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:81:23: error: cannot find 'URLRequest' in scope
 79 |         let url = baseURL.appendingPathComponent(endpoint)
 80 |
 81 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 82 |         request.httpMethod = "POST"
 83 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:107:23: error: cannot find 'URLRequest' in scope
105 |         let url = baseURL.appendingPathComponent(endpoint)
106 |
107 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
108 |         request.httpMethod = "POST"
109 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:66: error: cannot infer type of closure parameter '_' without a type annotation
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                                                                  `- error: cannot infer type of closure parameter '_' without a type annotation
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:69: error: cannot infer type of closure parameter 'response' without a type annotation
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                                                                     `- error: cannot infer type of closure parameter 'response' without a type annotation
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:79: error: cannot infer type of closure parameter 'error' without a type annotation
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                                                                               `- error: cannot infer type of closure parameter 'error' without a type annotation
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:184:9: error: cannot find 'DispatchQueue' in scope
182 |         let jitterFactor = 0.5 + Double.random(in: 0 ..< 1)
183 |         let delay = exponentialDelay * jitterFactor
184 |         DispatchQueue.global().asyncAfter(deadline: .now() + delay) { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
185 |             self?.execute(request: request, attempt: attempt + 1, maxAttempts: maxAttempts, completion: completion)
186 |         }
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:184:54: error: cannot call value of non-function type 'Date'
182 |         let jitterFactor = 0.5 + Double.random(in: 0 ..< 1)
183 |         let delay = exponentialDelay * jitterFactor
184 |         DispatchQueue.global().asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
185 |             self?.execute(request: request, attempt: attempt + 1, maxAttempts: maxAttempts, completion: completion)
186 |         }
[15/25] Compiling Altertable SDKConstants.swift
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:30:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 | final class Requester {
 29 |     private let apiKey: String
 30 |     private let session: URLSession
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |
 32 |     // `retryBaseDelay` is a test-only override; guard all access through `delayQueue`.
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/Altertable/Core/Requester.swift:33:30: error: cannot find 'DispatchQueue' in scope
 31 |
 32 |     // `retryBaseDelay` is a test-only override; guard all access through `delayQueue`.
 33 |     private let delayQueue = DispatchQueue(label: "ai.altertable.requester.delay")
    |                              `- error: cannot find 'DispatchQueue' in scope
 34 |     private var _retryBaseDelay: Double = SDKConstants.httpRetryBaseDelaySeconds
 35 |     var retryBaseDelay: Double {
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:40:65: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 38 |     }
 39 |
 40 |     init(apiKey: String, requestTimeout: TimeInterval, session: URLSession? = nil) {
    |                                                                 `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 41 |         self.apiKey = apiKey
 42 |
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/Altertable/Core/Requester.swift:125:18: error: cannot find type 'URLRequest' in scope
123 |
124 |     private func execute(
125 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
126 |         attempt: Int,
127 |         maxAttempts: Int,
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:169:18: error: cannot find type 'URLRequest' in scope
167 |
168 |     private func retryOrFail(
169 |         request: URLRequest,
    |                  `- error: cannot find type 'URLRequest' in scope
170 |         attempt: Int,
171 |         maxAttempts: Int,
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:46:57: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 44 |             self.session = session
 45 |         } else {
 46 |             let sessionConfig = URLSessionConfiguration.default
    |                                                         `- error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
 47 |             // Snapshot timeout at init time — safe because init runs on the
 48 |             // Altertable serial queue before any concurrent access begins.
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:51:28: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 49 |             sessionConfig.timeoutIntervalForRequest = requestTimeout
 50 |             sessionConfig.timeoutIntervalForResource = requestTimeout
 51 |             self.session = URLSession(configuration: sessionConfig)
    |                            `- error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
 52 |         }
 53 |     }
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:81:23: error: cannot find 'URLRequest' in scope
 79 |         let url = baseURL.appendingPathComponent(endpoint)
 80 |
 81 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
 82 |         request.httpMethod = "POST"
 83 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:107:23: error: cannot find 'URLRequest' in scope
105 |         let url = baseURL.appendingPathComponent(endpoint)
106 |
107 |         var request = URLRequest(url: url)
    |                       `- error: cannot find 'URLRequest' in scope
108 |         request.httpMethod = "POST"
109 |         request.setValue("application/json", forHTTPHeaderField: "Content-Type")
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                            `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:66: error: cannot infer type of closure parameter '_' without a type annotation
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                                                                  `- error: cannot infer type of closure parameter '_' without a type annotation
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:69: error: cannot infer type of closure parameter 'response' without a type annotation
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                                                                     `- error: cannot infer type of closure parameter 'response' without a type annotation
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:130:79: error: cannot infer type of closure parameter 'error' without a type annotation
128 |         completion: @escaping (Result<Void, Error>) -> Void
129 |     ) {
130 |         let task = session.dataTask(with: request) { [weak self] _, response, error in
    |                                                                               `- error: cannot infer type of closure parameter 'error' without a type annotation
131 |             guard let self else { return }
132 |
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:184:9: error: cannot find 'DispatchQueue' in scope
182 |         let jitterFactor = 0.5 + Double.random(in: 0 ..< 1)
183 |         let delay = exponentialDelay * jitterFactor
184 |         DispatchQueue.global().asyncAfter(deadline: .now() + delay) { [weak self] in
    |         `- error: cannot find 'DispatchQueue' in scope
185 |             self?.execute(request: request, attempt: attempt + 1, maxAttempts: maxAttempts, completion: completion)
186 |         }
/host/spi-builder-workspace/Sources/Altertable/Core/Requester.swift:184:54: error: cannot call value of non-function type 'Date'
182 |         let jitterFactor = 0.5 + Double.random(in: 0 ..< 1)
183 |         let delay = exponentialDelay * jitterFactor
184 |         DispatchQueue.global().asyncAfter(deadline: .now() + delay) { [weak self] in
    |                                                      `- error: cannot call value of non-function type 'Date'
185 |             self?.execute(request: request, attempt: attempt + 1, maxAttempts: maxAttempts, completion: completion)
186 |         }
[16/25] Compiling Altertable SessionManager.swift
[17/25] Compiling Altertable ScreenViewIntegration.swift
[18/25] Compiling Altertable Models.swift
[19/25] Compiling Altertable QueueStorage.swift
[20/25] Compiling Altertable Validator.swift
[21/25] Compiling Altertable resource_bundle_accessor.swift
BUILD FAILURE 6.3 wasm