The Swift Package Index logo.Swift Package Index

Build Information

Failed to build FlagsmithOpenFeatureProvider, reference main (1b5cec), with Swift 6.4 for Wasm on 28 Sep 2026 02:19:45 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Flagsmith/flagsmith-openfeature-swift-provider.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/Flagsmith/flagsmith-openfeature-swift-provider
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1b5cec0 chore(main): release 0.2.0 (#2)
Cloned https://github.com/Flagsmith/flagsmith-openfeature-swift-provider.git
Revision (git rev-parse @):
1b5cec0c1041c55cace705bbc7bfdd27928a3cd1
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Flagsmith/flagsmith-openfeature-swift-provider.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.4
Building package at path:  $PWD
https://github.com/Flagsmith/flagsmith-openfeature-swift-provider.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.4-latest swift build --swift-sdk swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/swhitty/FlyingFox.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/open-feature/swift-sdk.git
Fetching https://github.com/Flagsmith/flagsmith-ios-client.git
[1/1877] Fetching swift-sdk
[246/3744] Fetching swift-sdk, flagsmith-ios-client
[1501/11909] Fetching swift-sdk, flagsmith-ios-client, swift-log
[6358/18331] Fetching swift-sdk, flagsmith-ios-client, swift-log, flyingfox
Fetched https://github.com/Flagsmith/flagsmith-ios-client.git (0.51s)
[5727/16464] Fetching swift-sdk, swift-log, flyingfox
Fetched https://github.com/open-feature/swift-sdk.git (0.51s)
[3915/14587] Fetching swift-log, flyingfox
Fetched https://github.com/apple/swift-log.git (0.58s)
Fetched https://github.com/swhitty/FlyingFox.git (0.59s)
Computing version for https://github.com/swhitty/FlyingFox.git
Computed https://github.com/swhitty/FlyingFox.git at 0.27.1 (0.78s)
Computing version for https://github.com/Flagsmith/flagsmith-ios-client.git
Computed https://github.com/Flagsmith/flagsmith-ios-client.git at 3.10.0 (0.15s)
Computing version for https://github.com/open-feature/swift-sdk.git
Computed https://github.com/open-feature/swift-sdk.git at 0.6.0 (1.04s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.20s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.1
Creating working copy for https://github.com/open-feature/swift-sdk.git
Working copy of https://github.com/open-feature/swift-sdk.git resolved at 0.6.0
Creating working copy for https://github.com/swhitty/FlyingFox.git
Working copy of https://github.com/swhitty/FlyingFox.git resolved at 0.27.1
Creating working copy for https://github.com/Flagsmith/flagsmith-ios-client.git
Working copy of https://github.com/Flagsmith/flagsmith-ios-client.git resolved at 3.10.0
Building for debugging...
[Constructing description]
[Planning deferred tasks]
[54 / 99] FlagsmithClient
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Flagsmith.swift:568:35: error: type 'URLCache' (aka 'AnyObject') has no member 'shared'
566 | public final class CacheConfig {
567 |     /// Cache to use when enabled, defaults to the shared app cache
568 |     public var cache: URLCache = .shared
    |                                   `- error: type 'URLCache' (aka 'AnyObject') has no member 'shared'
569 |
570 |     /// Use cached flags as a fallback?
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Flagsmith.swift:568:35: error: value of type '_' expected to be instance of class or class-constrained type
566 | public final class CacheConfig {
567 |     /// Cache to use when enabled, defaults to the shared app cache
568 |     public var cache: URLCache = .shared
    |                                   `- error: value of type '_' expected to be instance of class or class-constrained type
569 |
570 |     /// Use cached flags as a fallback?
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Flagsmith.swift:270:47: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
268 |     }
269 |
270 |     private func isCacheValid(cachedResponse: CachedURLResponse) -> Bool {
    |                                               `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
271 |         guard let httpResponse = cachedResponse.response as? HTTPURLResponse else { return false }
272 |
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Flagsmith.swift:336:1: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
334 | // MARK: - HTTPURLResponse Extensions
335 |
336 | extension HTTPURLResponse {
    | `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
337 |     static let dateFormatter: DateFormatter = {
338 |         let formatter = DateFormatter()
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:14:35: error: cannot find type 'URLSessionDataDelegate' in scope
 12 |
 13 | /// Handles interaction with a **Flagsmith** api.
 14 | final class APIManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                   `- error: cannot find type 'URLSessionDataDelegate' in scope
 15 |     private var _session: URLSession!
 16 |     private var session: URLSession {
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:15:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 | /// Handles interaction with a **Flagsmith** api.
 14 | final class APIManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
 15 |     private var _session: URLSession!
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 |     private var session: URLSession {
 17 |         get {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:16:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 14 | final class APIManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
 15 |     private var _session: URLSession!
 16 |     private var session: URLSession {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 17 |         get {
 18 |             propertiesSerialAccessQueue.sync { _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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:68:37: error: cannot find 'DispatchQueue' in scope
 66 |     private var tasksToCompletionHandlers: [Int: @Sendable (Result<Data, any Error>) -> Void] = [:]
 67 |     private var tasksToData: [Int: Data] = [:]
 68 |     private let serialAccessQueue = DispatchQueue(label: "flagsmithSerialAccessQueue", qos: .default)
    |                                     `- error: cannot find 'DispatchQueue' in scope
 69 |     let propertiesSerialAccessQueue = DispatchQueue(label: "propertiesSerialAccessQueue", qos: .default)
 70 |
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:69:39: error: cannot find 'DispatchQueue' in scope
 67 |     private var tasksToData: [Int: Data] = [:]
 68 |     private let serialAccessQueue = DispatchQueue(label: "flagsmithSerialAccessQueue", qos: .default)
 69 |     let propertiesSerialAccessQueue = DispatchQueue(label: "propertiesSerialAccessQueue", qos: .default)
    |                                       `- error: cannot find 'DispatchQueue' in scope
 70 |
 71 |     override init() {
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:79:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     }
 78 |
 79 |     func urlSession(_: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         serialAccessQueue.sync {
 81 |             if let dataTask = task as? URLSessionDataTask {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:79:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 77 |     }
 78 |
 79 |     func urlSession(_: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 80 |         serialAccessQueue.sync {
 81 |             if let dataTask = task as? URLSessionDataTask {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:96:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     }
 95 |
 96 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |                     completionHandler: @Sendable @escaping (CachedURLResponse?) -> Void)
 98 |     {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:96:48: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     }
 95 |
 96 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse,
    |                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |                     completionHandler: @Sendable @escaping (CachedURLResponse?) -> Void)
 98 |     {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:96:104: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 94 |     }
 95 |
 96 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse,
    |                                                                                                        `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 97 |                     completionHandler: @Sendable @escaping (CachedURLResponse?) -> Void)
 98 |     {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:97:61: error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 95 |
 96 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, willCacheResponse proposedResponse: CachedURLResponse,
 97 |                     completionHandler: @Sendable @escaping (CachedURLResponse?) -> Void)
    |                                                             `- error: 'CachedURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 98 |     {
 99 |         serialAccessQueue.sync {
Foundation.CachedURLResponse:2:18: note: 'CachedURLResponse' 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 CachedURLResponse = AnyObject
  |                  `- note: 'CachedURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:111:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |     }
110 |
111 |     func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |         serialAccessQueue.sync {
113 |             var existingData = tasksToData[dataTask.taskIdentifier] ?? Data()
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:111:46: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
109 |     }
110 |
111 |     func urlSession(_: URLSession, dataTask: URLSessionDataTask, didReceive data: Data) {
    |                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |         serialAccessQueue.sync {
113 |             var existingData = tasksToData[dataTask.taskIdentifier] ?? Data()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:120:62: error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
118 |
119 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: URLResponse,
120 |                     completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
    |                                                              `- error: 'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')
121 |     {
122 |         completionHandler(.allow)
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:119:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     }
118 |
119 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: URLResponse,
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |                     completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
121 |     {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:119:48: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     }
118 |
119 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: URLResponse,
    |                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |                     completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
121 |     {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:119:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
117 |     }
118 |
119 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive _: URLResponse,
    |                                                                                  `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
120 |                     completionHandler: @escaping (URLSession.ResponseDisposition) -> Void)
121 |     {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift:255:58: error: cannot find type 'URLRequest' in scope
253 |     }
254 |
255 |     private func updateLastUpdatedFromRequest(_ request: URLRequest) {
    |                                                          `- error: cannot find type 'URLRequest' in scope
256 |         // Extract the lastUpdatedAt from the updatedAt header
257 |         if let lastUpdatedAt = request.allHTTPHeaderFields?["x-flagsmith-document-updated-at"] {
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/CachedURLResponse.swift:13:1: error: non-nominal type 'CachedURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
11 | #endif
12 |
13 | extension CachedURLResponse {
   | `- error: non-nominal type 'CachedURLResponse' (aka 'AnyObject') cannot be extended [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
14 |     func response(withExpirationDuration duration: Int) -> CachedURLResponse {
15 |         var cachedResponse = self
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/Router.swift:88:72: error: cannot find type 'URLRequest' in scope
 86 |     func request(baseUrl: URL,
 87 |                  apiKey: String,
 88 |                  using encoder: JSONEncoder = JSONEncoder()) throws -> URLRequest
    |                                                                        `- error: cannot find type 'URLRequest' in scope
 89 |     {
 90 |         let urlString = baseUrl.appendingPathComponent(path).absoluteString
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:16:35: error: cannot find type 'URLSessionDataDelegate' in scope
 14 | /// It manages the connection to the SSE endpoint, processes incoming events,
 15 | /// and handles reconnection logic with a backoff strategy.
 16 | final class SSEManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
    |                                   `- error: cannot find type 'URLSessionDataDelegate' in scope
 17 |     private var _session: URLSession!
 18 |     private var session: URLSession {
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:17:27: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 15 | /// and handles reconnection logic with a backoff strategy.
 16 | final class SSEManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
 17 |     private var _session: URLSession!
    |                           `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 18 |     private var session: URLSession {
 19 |         get {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:18:26: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 16 | final class SSEManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
 17 |     private var _session: URLSession!
 18 |     private var session: URLSession {
    |                          `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 19 |         get {
 20 |             propertiesSerialAccessQueue.sync { _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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:29:28: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 27 |     }
 28 |
 29 |     private var _dataTask: URLSessionDataTask?
    |                            `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 30 |     private var dataTask: URLSessionDataTask? {
 31 |         get {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:30:27: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 28 |
 29 |     private var _dataTask: URLSessionDataTask?
 30 |     private var dataTask: URLSessionDataTask? {
    |                           `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 31 |         get {
 32 |             propertiesSerialAccessQueue.sync { _dataTask }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:72:37: error: cannot find 'DispatchQueue' in scope
 70 |
 71 |     private var completionHandler: CompletionHandler<FlagEvent>?
 72 |     private let serialAccessQueue = DispatchQueue(label: "sseFlagsmithSerialAccessQueue", qos: .default)
    |                                     `- error: cannot find 'DispatchQueue' in scope
 73 |     let propertiesSerialAccessQueue = DispatchQueue(label: "ssePropertiesSerialAccessQueue", qos: .default)
 74 |     private let reconnectionDelay = ReconnectionDelay()
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:73:39: error: cannot find 'DispatchQueue' in scope
 71 |     private var completionHandler: CompletionHandler<FlagEvent>?
 72 |     private let serialAccessQueue = DispatchQueue(label: "sseFlagsmithSerialAccessQueue", qos: .default)
 73 |     let propertiesSerialAccessQueue = DispatchQueue(label: "ssePropertiesSerialAccessQueue", qos: .default)
    |                                       `- error: cannot find 'DispatchQueue' in scope
 74 |     private let reconnectionDelay = ReconnectionDelay()
 75 |
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:105:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     // MARK: URLSessionDelegate
104 |
105 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive data: Data) {
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         serialAccessQueue.sync {
107 |             if let message = String(data: data, encoding: .utf8) {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:105:48: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |     // MARK: URLSessionDelegate
104 |
105 |     func urlSession(_: URLSession, dataTask _: URLSessionDataTask, didReceive data: Data) {
    |                                                `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |         serialAccessQueue.sync {
107 |             if let message = String(data: data, encoding: .utf8) {
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:114:24: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     }
113 |
114 |     func urlSession(_: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                        `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |         serialAccessQueue.sync {
116 |             if task != dataTask {
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/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift:114:42: error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
112 |     }
113 |
114 |     func urlSession(_: URLSession, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
    |                                          `- error: 'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
115 |         serialAccessQueue.sync {
116 |             if task != dataTask {
Foundation.URLSessionTask:2:18: note: 'URLSessionTask' 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 URLSessionTask = AnyObject
  |                  `- note: 'URLSessionTask' has been explicitly marked unavailable here
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/DerivedSources/resource_bundle_accessor.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Feature.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Flag.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/FlagEvent.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Flagsmith+Concurrency.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Flagsmith.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/FlagsmithError.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Identity.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/APIManager.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/CachedURLResponse.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/FlagsmithAnalytics.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/ReconnectionDelay.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/Router.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Internal/SSEManager.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Trait.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/Traits.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/TypedValue.swift /host/spi-builder-workspace/.build/checkouts/flagsmith-ios-client/FlagsmithClient/Classes/UnknownTypeValue.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_AVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature StrictConcurrency\=complete -enable-upcoming-feature ExistentialAny -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name FlagsmithClient -package-name flagsmith_ios_client -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/Objects-normal/wasm32/FlagsmithClient_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/Objects-normal/wasm32/Modules/FlagsmithClient.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/Objects-normal/wasm32/Modules/FlagsmithClient.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/Objects-normal/wasm32/FlagsmithClient-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/Objects-normal/wasm32/FlagsmithClient-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/Objects-normal/wasm32/FlagsmithClient-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/FlagsmithClient.build/Debug-webassembly-wasm32/FlagsmithClient-t.build/Objects-normal/wasm32/Modules/FlagsmithClient.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm