Build Information
Failed to build PerfectNotifications, reference 6.0.0 (6a9fdd), with Swift 6.4 for Wasm on 28 Oct 2026 11:08:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-3":/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.0-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-notifications.git
Reference: 6.0.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/perfectlysoft/perfect-notifications
* tag 6.0.0 -> FETCH_HEAD
HEAD is now at 6a9fdd3 Merge pull request #20 from PerfectlySoft/release-6.0.0
Cloned https://github.com/perfectlysoft/perfect-notifications.git
Revision (git rev-parse @):
6a9fdd3841e3e669cc773d17523c6744b4c069e6
SUCCESS checkout https://github.com/perfectlysoft/perfect-notifications.git at 6.0.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/perfectlysoft/perfect-notifications.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-3":/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.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:0ad19d16955074ecc72bbe910025b19c4e4614184c1a48afc82660d4c7620121
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-crypto.git
[1/18859] Fetching swift-crypto
Fetched https://github.com/apple/swift-crypto.git (1.21s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (2.20s)
Fetching https://github.com/apple/swift-asn1.git
[1/2051] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.61s)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 4.5.2
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 274]
[Planning deferred tasks]
[50 / 444] CryptoBoringWrapper
[51 / 444] CCryptoBoringSSL
[52 / 444] CCryptoBoringSSL
[56 / 444] CCryptoBoringSSL
[58 / 444] CCryptoBoringSSL
[64 / 444] CCryptoBoringSSL
[67 / 444] CCryptoBoringSSL
[68 / 444] CCryptoBoringSSL
[71 / 444] CryptoBoringWrapper
[78 / 444] CCryptoBoringSSL
[81 / 444] CCryptoBoringSSL
[83 / 444] CCryptoBoringSSL
[86 / 444] CCryptoBoringSSL
[88 / 444] CCryptoBoringSSL
[91 / 444] CCryptoBoringSSL
[94 / 444] CCryptoBoringSSL
[101 / 444] CCryptoBoringSSL
[105 / 444] CCryptoBoringSSL
[108 / 444] CCryptoBoringSSL
[112 / 444] CCryptoBoringSSL
[114 / 444] CCryptoBoringSSL
[117 / 444] CCryptoBoringSSL
[120 / 444] CCryptoBoringSSL
[122 / 444] CCryptoBoringSSL
[124 / 444] CCryptoBoringSSL
[129 / 444] CCryptoBoringSSL
[130 / 444] CCryptoBoringSSL
[132 / 444] CCryptoBoringSSL
[135 / 444] CCryptoBoringSSL
[138 / 444] CCryptoBoringSSL
[139 / 444] CCryptoBoringSSL
[144 / 444] CCryptoBoringSSL
[147 / 444] CCryptoBoringSSL
[150 / 444] CCryptoBoringSSL
[161 / 444] CCryptoBoringSSL
[170 / 444] CCryptoBoringSSL
[182 / 444] CCryptoBoringSSL
[185 / 444] CCryptoBoringSSL
[186 / 444] CCryptoBoringSSL
[189 / 444] CCryptoBoringSSL
[190 / 444] CCryptoBoringSSL
[192 / 444] CCryptoBoringSSL
[197 / 444] CCryptoBoringSSL
[201 / 444] CCryptoBoringSSL
[203 / 444] CCryptoBoringSSL
[204 / 444] CCryptoBoringSSL
[209 / 444] CCryptoBoringSSL
[212 / 444] CCryptoBoringSSL
[215 / 444] CCryptoBoringSSL
[218 / 444] CCryptoBoringSSL
[221 / 444] CCryptoBoringSSL
[222 / 444] CCryptoBoringSSL
[225 / 444] CCryptoBoringSSL
[230 / 444] CCryptoBoringSSL
[235 / 444] CCryptoBoringSSL
[240 / 444] CCryptoBoringSSL
[243 / 444] CCryptoBoringSSL
[245 / 444] CCryptoBoringSSL
[249 / 444] CCryptoBoringSSL
[252 / 444] CCryptoBoringSSL
[255 / 444] CCryptoBoringSSL
[260 / 444] CCryptoBoringSSL
[272 / 444] CCryptoBoringSSL
[279 / 444] CCryptoBoringSSL
[282 / 444] CCryptoBoringSSL
[287 / 444] CCryptoBoringSSL
[290 / 444] CCryptoBoringSSL
[292 / 444] CCryptoBoringSSL
[295 / 444] CCryptoBoringSSL
[297 / 444] CCryptoBoringSSL
[298 / 444] CCryptoBoringSSL
[303 / 444] CCryptoBoringSSL
[305 / 444] CCryptoBoringSSL
[308 / 444] CCryptoBoringSSL
[309 / 444] CCryptoBoringSSL
[312 / 444] CCryptoBoringSSL
[314 / 444] CCryptoBoringSSL
[318 / 444] CCryptoBoringSSL
[320 / 444] CCryptoBoringSSL
[321 / 444] CCryptoBoringSSL
[324 / 444] CCryptoBoringSSL
[327 / 444] CCryptoBoringSSL
[328 / 444] CCryptoBoringSSL
[332 / 444] CCryptoBoringSSL
[339 / 444] CCryptoBoringSSL
[348 / 444] CCryptoBoringSSL
[355 / 444] CCryptoBoringSSL
[359 / 444] CCryptoBoringSSL
[361 / 444] CCryptoBoringSSL
[364 / 444] CCryptoBoringSSL
[366 / 444] CCryptoBoringSSL
[368 / 444] CCryptoBoringSSL
[372 / 444] CCryptoBoringSSL
[373 / 444] CCryptoBoringSSL
[379 / 444] CCryptoBoringSSL
[387 / 444] CCryptoBoringSSL
[398 / 444] CCryptoBoringSSL
[403 / 444] CCryptoBoringSSL
[405 / 444] CCryptoBoringSSL
[409 / 444] CCryptoBoringSSL
[410 / 444] CCryptoBoringSSL
[415 / 444] CCryptoBoringSSL
[417 / 444] CryptoBoringWrapper
[417 / 444] CCryptoBoringSSL
[421 / 444] CryptoBoringWrapper
[422 / 444] CCryptoBoringSSL
[426 / 445] CXKCP
[428 / 454] Crypto
[428 / 454] CryptoBoringWrapper
[431 / 454] Crypto
[437 / 454] Crypto
[438 / 454] Crypto
[439 / 454] Crypto-product
[441 / 455] CryptoBoringWrapper
[443 / 456]
[445 / 465] PerfectNotifications
error: SwiftCompile normal wasm32 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift:165:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m163 |[0;0m public init(keyID: String, teamID: String, privateKeyPath: String,
[0;36m164 |[0;0m environment: Environment = .sandbox,
[0;36m165 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m166 |[0;0m timeout: TimeInterval = APNSClient.defaultTimeout) throws {
[0;36m167 |[0;0m try Self.validate(environment: environment, timeout: timeout)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift:165:43: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m163 |[0;0m public init(keyID: String, teamID: String, privateKeyPath: String,
[0;36m164 |[0;0m environment: Environment = .sandbox,
[0;36m165 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m166 |[0;0m timeout: TimeInterval = APNSClient.defaultTimeout) throws {
[0;36m167 |[0;0m try Self.validate(environment: environment, timeout: timeout)
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift:165:43: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m163 |[0;0m public init(keyID: String, teamID: String, privateKeyPath: String,
[0;36m164 |[0;0m environment: Environment = .sandbox,
[0;36m165 |[0;0m urlSession: URLSession = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m166 |[0;0m timeout: TimeInterval = APNSClient.defaultTimeout) throws {
[0;36m167 |[0;0m try Self.validate(environment: environment, timeout: timeout)
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift:177:29: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m175 |[0;0m public init(keyID: String, teamID: String, pemString: String,
[0;36m176 |[0;0m environment: Environment = .sandbox,
[0;36m177 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m178 |[0;0m timeout: TimeInterval = APNSClient.defaultTimeout) throws {
[0;36m179 |[0;0m try Self.validate(environment: environment, timeout: timeout)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift:177:43: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m175 |[0;0m public init(keyID: String, teamID: String, pemString: String,
[0;36m176 |[0;0m environment: Environment = .sandbox,
[0;36m177 |[0;0m urlSession: URLSession = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m178 |[0;0m timeout: TimeInterval = APNSClient.defaultTimeout) throws {
[0;36m179 |[0;0m try Self.validate(environment: environment, timeout: timeout)
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift:177:43: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m175 |[0;0m public init(keyID: String, teamID: String, pemString: String,
[0;36m176 |[0;0m environment: Environment = .sandbox,
[0;36m177 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m178 |[0;0m timeout: TimeInterval = APNSClient.defaultTimeout) throws {
[0;36m179 |[0;0m try Self.validate(environment: environment, timeout: timeout)
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift:186:78: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m184 |[0;0m }
[0;36m185 |[0;0m
[0;36m186 |[0;0m init(credentials: APNSCredentials, environment: Environment, urlSession: [4;39mURLSession[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m187 |[0;0m timeout: TimeInterval = APNSClient.defaultTimeout) throws {
[0;36m188 |[0;0m try Self.validate(environment: environment, timeout: timeout)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:27:26: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m25 |[0;0m /// trust evaluation (certificate pinning, a private CA in tests) keeps working.
[0;36m26 |[0;0m final class APNSTransport: Sendable {
[0;36m27 |[0;0m private let session: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m private let delegate: SessionDelegate
[0;36m29 |[0;0m
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:30:25: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m28 |[0;0m private let delegate: SessionDelegate
[0;36m29 |[0;0m
[0;36m30 |[0;0m init(basedOn given: [4;39mURLSession[0;0m, maxBodySize: Int) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m31 |[0;0m delegate = SessionDelegate(forwardingTo: given, maxBodySize: maxBodySize)
[0;36m32 |[0;0m session = URLSession(configuration: given.configuration, delegate: delegate, delegateQueue: nil)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:45:26: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m43 |[0;0m /// `CancellationError` when the calling task is cancelled, without waiting for
[0;36m44 |[0;0m /// `URLSession` to wind the transfer down.
[0;36m45 |[0;0m func send(_ request: [4;39mURLRequest[0;0m, deadline seconds: TimeInterval) async throws -> (Data, HTTPURLResponse) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m46 |[0;0m let flight = InFlight(limit: delegate.maxBodySize)
[0;36m47 |[0;0m return try await withTaskCancellationHandler {
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:45:93: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m43 |[0;0m /// `CancellationError` when the calling task is cancelled, without waiting for
[0;36m44 |[0;0m /// `URLSession` to wind the transfer down.
[0;36m45 |[0;0m func send(_ request: URLRequest, deadline seconds: TimeInterval) async throws -> (Data, [4;39mHTTPURLResponse[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m46 |[0;0m let flight = InFlight(limit: delegate.maxBodySize)
[0;36m47 |[0;0m return try await withTaskCancellationHandler {
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:27:17: [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming class 'APNSTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m25 |[0;0m /// trust evaluation (certificate pinning, a private CA in tests) keeps working.
[0;36m26 |[0;0m final class APNSTransport: Sendable {
[0;36m27 |[0;0m private let session: URLSession
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'session' of 'Sendable'-conforming class 'APNSTransport' has non-Sendable type 'AnyObject'[0;0m
[0;36m28 |[0;0m private let delegate: SessionDelegate
[0;36m29 |[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:81:58: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m79 |[0;0m let limit: Int
[0;36m80 |[0;0m private let lock = NSLock()
[0;36m81 |[0;0m private var continuation: CheckedContinuation<(Data, [4;39mHTTPURLResponse[0;0m), any Error>?
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m82 |[0;0m private var pending: Result<(Data, HTTPURLResponse), any Error>?
[0;36m83 |[0;0m private var task: URLSessionTask?
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:82:40: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m80 |[0;0m private let lock = NSLock()
[0;36m81 |[0;0m private var continuation: CheckedContinuation<(Data, HTTPURLResponse), any Error>?
[0;36m82 |[0;0m private var pending: Result<(Data, [4;39mHTTPURLResponse[0;0m), any Error>?
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m83 |[0;0m private var task: URLSessionTask?
[0;36m84 |[0;0m private var timer: DispatchSourceTimer?
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:83:23: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m81 |[0;0m private var continuation: CheckedContinuation<(Data, HTTPURLResponse), any Error>?
[0;36m82 |[0;0m private var pending: Result<(Data, HTTPURLResponse), any Error>?
[0;36m83 |[0;0m private var task: [4;39mURLSessionTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m84 |[0;0m private var timer: DispatchSourceTimer?
[0;36m85 |[0;0m /// Set while the delegate is answering a redirect; a cancel requested meanwhile waits.
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:84:24: [1;31merror: [1;39mcannot find type 'DispatchSourceTimer' in scope[0;0m
[0;36m82 |[0;0m private var pending: Result<(Data, HTTPURLResponse), any Error>?
[0;36m83 |[0;0m private var task: URLSessionTask?
[0;36m84 |[0;0m private var timer: [4;39mDispatchSourceTimer[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchSourceTimer' in scope[0;0m
[0;36m85 |[0;0m /// Set while the delegate is answering a redirect; a cancel requested meanwhile waits.
[0;36m86 |[0;0m private var answeringRedirect = false
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:87:33: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m85 |[0;0m /// Set while the delegate is answering a redirect; a cancel requested meanwhile waits.
[0;36m86 |[0;0m private var answeringRedirect = false
[0;36m87 |[0;0m private var deferredCancel: [4;39mURLSessionTask[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m88 |[0;0m private var done = false
[0;36m89 |[0;0m private var data = Data()
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:90:27: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m88 |[0;0m private var done = false
[0;36m89 |[0;0m private var data = Data()
[0;36m90 |[0;0m private var response: [4;39mHTTPURLResponse[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m init(limit: Int) { self.limit = limit }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:96:49: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m94 |[0;0m /// Returns `false` if the request already finished (it was cancelled first); the
[0;36m95 |[0;0m /// continuation has then been resumed.
[0;36m96 |[0;0m func attach(_ c: CheckedContinuation<(Data, [4;39mHTTPURLResponse[0;0m), any Error>) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m97 |[0;0m let early: Result<(Data, HTTPURLResponse), any Error>? = lock.withLock {
[0;36m98 |[0;0m if let pending { return pending }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:107:45: [1;31merror: [1;39mcannot find type 'DispatchSourceTimer' in scope[0;0m
[0;36m105 |[0;0m
[0;36m106 |[0;0m /// Returns `false` if the request finished in the meantime.
[0;36m107 |[0;0m func start(task: URLSessionTask, timer: [4;39mDispatchSourceTimer[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'DispatchSourceTimer' in scope[0;0m
[0;36m108 |[0;0m lock.withLock {
[0;36m109 |[0;0m guard !done else { return false }
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:107:22: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m105 |[0;0m
[0;36m106 |[0;0m /// Returns `false` if the request finished in the meantime.
[0;36m107 |[0;0m func start(task: [4;39mURLSessionTask[0;0m, timer: DispatchSourceTimer) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m108 |[0;0m lock.withLock {
[0;36m109 |[0;0m guard !done else { return false }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:116:31: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m114 |[0;0m }
[0;36m115 |[0;0m
[0;36m116 |[0;0m func received(_ response: [4;39mURLResponse[0;0m) -> Bool {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m117 |[0;0m guard let http = response as? HTTPURLResponse else {
[0;36m118 |[0;0m finish(.failure(APNSClientError.invalidResponse))
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:158:41: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m156 |[0;0m /// Resolves the request once: resumes the caller, then cancels the transfer (off the
[0;36m157 |[0;0m /// caller's thread) if it is still running.
[0;36m158 |[0;0m func finish(_ result: Result<(Data, [4;39mHTTPURLResponse[0;0m), any Error>) {
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m159 |[0;0m let (c, task, timer): (CheckedContinuation<(Data, HTTPURLResponse), any Error>?, URLSessionTask?, DispatchSourceTimer?) = lock.withLock {
[0;36m160 |[0;0m guard !done else { return (nil, nil, nil) }
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:210:48: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m208 |[0;0m // MARK: - Session delegate
[0;36m209 |[0;0m
[0;36m210 |[0;0m private final class SessionDelegate: NSObject, [4;39mURLSessionDataDelegate[0;0m, @unchecked Sendable {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m211 |[0;0m let maxBodySize: Int
[0;36m212 |[0;0m /// The caller's session, passed to its delegate when forwarding challenges.
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:213:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m211 |[0;0m let maxBodySize: Int
[0;36m212 |[0;0m /// The caller's session, passed to its delegate when forwarding challenges.
[0;36m213 |[0;0m private let callerSession: [4;39mURLSession[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m214 |[0;0m private let lock = NSLock()
[0;36m215 |[0;0m private var flights: [Int: InFlight] = [:]
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:217:38: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m215 |[0;0m private var flights: [Int: InFlight] = [:]
[0;36m216 |[0;0m
[0;36m217 |[0;0m init(forwardingTo callerSession: [4;39mURLSession[0;0m, maxBodySize: Int) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m218 |[0;0m self.callerSession = callerSession
[0;36m219 |[0;0m self.maxBodySize = maxBodySize
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:222:49: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m220 |[0;0m }
[0;36m221 |[0;0m
[0;36m222 |[0;0m func register(_ flight: InFlight, for task: [4;39mURLSessionTask[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m223 |[0;0m lock.withLock { flights[task.taskIdentifier] = flight }
[0;36m224 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:226:29: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m224 |[0;0m }
[0;36m225 |[0;0m
[0;36m226 |[0;0m func unregister(_ task: [4;39mURLSessionTask[0;0m) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m227 |[0;0m _ = lock.withLock { flights.removeValue(forKey: task.taskIdentifier) }
[0;36m228 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:230:33: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m228 |[0;0m }
[0;36m229 |[0;0m
[0;36m230 |[0;0m private func flight(_ task: [4;39mURLSessionTask[0;0m) -> InFlight? {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m231 |[0;0m lock.withLock { flights[task.taskIdentifier] }
[0;36m232 |[0;0m }
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:237:72: [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m235 |[0;0m
[0;36m236 |[0;0m func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: URLResponse,
[0;36m237 |[0;0m completionHandler: @escaping @Sendable ([4;39mURLSession[0;0m.ResponseDisposition) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39m'ResponseDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m238 |[0;0m let keep = flight(dataTask)?.received(response) ?? false
[0;36m239 |[0;0m completionHandler(keep ? .allow : .cancel)
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:236:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m234 |[0;0m // MARK: Data
[0;36m235 |[0;0m
[0;36m236 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive response: URLResponse,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m237 |[0;0m completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void) {
[0;36m238 |[0;0m let keep = flight(dataTask)?.received(response) ?? false
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:236:54: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m234 |[0;0m // MARK: Data
[0;36m235 |[0;0m
[0;36m236 |[0;0m func urlSession(_ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive response: URLResponse,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m237 |[0;0m completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void) {
[0;36m238 |[0;0m let keep = flight(dataTask)?.received(response) ?? false
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:236:95: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m234 |[0;0m // MARK: Data
[0;36m235 |[0;0m
[0;36m236 |[0;0m func urlSession(_ session: URLSession, dataTask: URLSessionDataTask, didReceive response: [4;39mURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m237 |[0;0m completionHandler: @escaping @Sendable (URLSession.ResponseDisposition) -> Void) {
[0;36m238 |[0;0m let keep = flight(dataTask)?.received(response) ?? false
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:242:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m240 |[0;0m }
[0;36m241 |[0;0m
[0;36m242 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, dataTask: URLSessionDataTask, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m243 |[0;0m flight(dataTask)?.received(data)
[0;36m244 |[0;0m }
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:242:54: [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m240 |[0;0m }
[0;36m241 |[0;0m
[0;36m242 |[0;0m func urlSession(_ session: URLSession, dataTask: [4;39mURLSessionDataTask[0;0m, didReceive data: Data) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m243 |[0;0m flight(dataTask)?.received(data)
[0;36m244 |[0;0m }
Foundation.URLSessionDataTask:2:18: [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionDataTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionDataTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:246:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m244 |[0;0m }
[0;36m245 |[0;0m
[0;36m246 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didCompleteWithError error: (any Error)?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m247 |[0;0m let f = lock.withLock { flights.removeValue(forKey: task.taskIdentifier) }
[0;36m248 |[0;0m f?.completed(error: error)
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:246:50: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m244 |[0;0m }
[0;36m245 |[0;0m
[0;36m246 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didCompleteWithError error: (any Error)?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m247 |[0;0m let f = lock.withLock { flights.removeValue(forKey: task.taskIdentifier) }
[0;36m248 |[0;0m f?.completed(error: error)
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:254:41: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m252 |[0;0m
[0;36m253 |[0;0m func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
[0;36m254 |[0;0m newRequest request: [4;39mURLRequest[0;0m, completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m255 |[0;0m if let flight = flight(task) {
[0;36m256 |[0;0m flight.refuseRedirect { completionHandler(nil) }
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:254:93: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m252 |[0;0m
[0;36m253 |[0;0m func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
[0;36m254 |[0;0m newRequest request: URLRequest, completionHandler: @escaping @Sendable ([4;39mURLRequest[0;0m?) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m255 |[0;0m if let flight = flight(task) {
[0;36m256 |[0;0m flight.refuseRedirect { completionHandler(nil) }
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:253:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m251 |[0;0m // MARK: Redirects: never followed
[0;36m252 |[0;0m
[0;36m253 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m254 |[0;0m newRequest request: URLRequest, completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
[0;36m255 |[0;0m if let flight = flight(task) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:253:50: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m251 |[0;0m // MARK: Redirects: never followed
[0;36m252 |[0;0m
[0;36m253 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, willPerformHTTPRedirection response: HTTPURLResponse,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m254 |[0;0m newRequest request: URLRequest, completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
[0;36m255 |[0;0m if let flight = flight(task) {
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:253:103: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m251 |[0;0m // MARK: Redirects: never followed
[0;36m252 |[0;0m
[0;36m253 |[0;0m func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: [4;39mHTTPURLResponse[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m254 |[0;0m newRequest request: URLRequest, completionHandler: @escaping @Sendable (URLRequest?) -> Void) {
[0;36m255 |[0;0m if let flight = flight(task) {
Foundation.HTTPURLResponse:2:18: [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias HTTPURLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'HTTPURLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:278:72: [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m276 |[0;0m #else
[0;36m277 |[0;0m func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge,
[0;36m278 |[0;0m completionHandler: @escaping @Sendable ([4;39mURLSession[0;0m.AuthChallengeDisposition, URLCredential?) -> Void) {
[0;36m|[0;0m `- [1;31merror: [1;39m'AuthChallengeDisposition' is not a member type of type 'Foundation.URLSession' (aka 'AnyObject')[0;0m
[0;36m279 |[0;0m let forward = callerSession.delegate
[0;36m280 |[0;0m if (forward as? URLSessionTaskDelegate)?.urlSession?(callerSession, task: task, didReceive: challenge,
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:277:32: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m275 |[0;0m }
[0;36m276 |[0;0m #else
[0;36m277 |[0;0m func urlSession(_ session: [4;39mURLSession[0;0m, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m278 |[0;0m completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
[0;36m279 |[0;0m let forward = callerSession.delegate
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:277:50: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m275 |[0;0m }
[0;36m276 |[0;0m #else
[0;36m277 |[0;0m func urlSession(_ session: URLSession, task: [4;39mURLSessionTask[0;0m, didReceive challenge: URLAuthenticationChallenge,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m278 |[0;0m completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
[0;36m279 |[0;0m let forward = callerSession.delegate
Foundation.URLSessionTask:2:18: [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSessionTask = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionTask' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift:277:88: [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m275 |[0;0m }
[0;36m276 |[0;0m #else
[0;36m277 |[0;0m func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: [4;39mURLAuthenticationChallenge[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLAuthenticationChallenge' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m278 |[0;0m completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void) {
[0;36m279 |[0;0m let forward = callerSession.delegate
Foundation.URLAuthenticationChallenge:2:18: [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLAuthenticationChallenge = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLAuthenticationChallenge' has been explicitly marked unavailable here[0;0m
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/PerfectNotifications/APNSClient.swift /host/spi-builder-workspace/Sources/PerfectNotifications/APNSCredentials.swift /host/spi-builder-workspace/Sources/PerfectNotifications/APNSJSONValue.swift /host/spi-builder-workspace/Sources/PerfectNotifications/APNSNotification.swift /host/spi-builder-workspace/Sources/PerfectNotifications/APNSPushType.swift /host/spi-builder-workspace/Sources/PerfectNotifications/APNSResponse.swift /host/spi-builder-workspace/Sources/PerfectNotifications/APNSTransport.swift /host/spi-builder-workspace/Sources/PerfectNotifications/APNSValidation.swift -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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 -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_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.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCPShims/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCP/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSLShims/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/include/module.modulemap -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/checkouts/swift-crypto/Sources/CXKCPShims/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CXKCP/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSLShims/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-crypto/Sources/CCryptoBoringSSL/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name PerfectNotifications -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/Objects-normal/wasm32/PerfectNotifications_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/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/Objects-normal/wasm32/Modules/PerfectNotifications.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/Objects-normal/wasm32/Modules/PerfectNotifications.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/Objects-normal/wasm32/PerfectNotifications-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/Objects-normal/wasm32/PerfectNotifications-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/Objects-normal/wasm32/PerfectNotifications-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/PerfectNotifications.build/Debug-webassembly-wasm32/PerfectNotifications-t.build/Objects-normal/wasm32/Modules/PerfectNotifications.swiftmodule
error: Build failed
BUILD FAILURE 6.4 wasm