Build Information
Failed to build JellyfinAPI, reference 3.4.0 (e69dd0), with Swift 6.4 for Linux on 30 Oct 2026 20:08:48 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/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:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jellyfin/jellyfin-sdk-swift.git
Reference: 3.4.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/jellyfin/jellyfin-sdk-swift
* tag 3.4.0 -> FETCH_HEAD
HEAD is now at e69dd03 Fix token sign out, session lifetime
Cloned https://github.com/jellyfin/jellyfin-sdk-swift.git
Revision (git rev-parse @):
e69dd0358ad33148aded867661e27d71de29d0c3
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/jellyfin/jellyfin-sdk-swift.git at 3.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.4
Building package at path: $PWD
https://github.com/jellyfin/jellyfin-sdk-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886768-1":/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:linux-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
linux-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:ad3afec1d6cff9a88dbd06b5b923cd7d46d6f55cc44d4c49fe48cde94ee812a7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:linux-6.4-latest
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/kean/Get
[1/2351] Fetching get
[542/5218] Fetching get, swift-nio-transport-services
Fetched https://github.com/kean/Get (0.44s)
Fetched https://github.com/apple/swift-nio-transport-services.git (0.45s)
Computing version for https://github.com/kean/Get
Computed https://github.com/kean/Get at 2.2.1 (1.34s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.28.0 (0.16s)
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-atomics.git
[1/1893] Fetching swift-atomics
[1894/88601] Fetching swift-atomics, swift-nio
Fetched https://github.com/apple/swift-atomics.git (4.30s)
Fetched https://github.com/apple/swift-nio.git (4.33s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.1 (4.48s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.104.0 (0.25s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/7394] Fetching swift-system
[1998/36779] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git (1.29s)
Fetched https://github.com/apple/swift-collections.git (1.29s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (1.48s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.5 (0.24s)
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.28.0
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.104.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.5
Creating working copy for https://github.com/kean/Get
Working copy of https://github.com/kean/Get resolved at 2.2.1
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Downloading binary artifact https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip
[0/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (16 KB / 6.1 MB)
[0/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (33 KB / 6.1 MB)
[0/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (49 KB / 6.1 MB)
[1/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (66 KB / 6.1 MB)
[1/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (82 KB / 6.1 MB)
[1/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (98 KB / 6.1 MB)
[1/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (115 KB / 6.1 MB)
[2/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (131 KB / 6.1 MB)
[2/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (147 KB / 6.1 MB)
[2/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (164 KB / 6.1 MB)
[2/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (180 KB / 6.1 MB)
[3/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (197 KB / 6.1 MB)
[3/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (213 KB / 6.1 MB)
[3/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (229 KB / 6.1 MB)
[4/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (246 KB / 6.1 MB)
[4/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (262 KB / 6.1 MB)
[4/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (279 KB / 6.1 MB)
[4/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (295 KB / 6.1 MB)
[5/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (311 KB / 6.1 MB)
[5/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (344 KB / 6.1 MB)
[5/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (360 KB / 6.1 MB)
[6/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (377 KB / 6.1 MB)
[6/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (426 KB / 6.1 MB)
[7/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (442 KB / 6.1 MB)
[8/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (492 KB / 6.1 MB)
[8/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (508 KB / 6.1 MB)
[9/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (557 KB / 6.1 MB)
[9/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (573 KB / 6.1 MB)
[10/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (617 KB / 6.1 MB)
[10/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (634 KB / 6.1 MB)
[10/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (650 KB / 6.1 MB)
[11/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (699 KB / 6.1 MB)
[12/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (749 KB / 6.1 MB)
[13/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (798 KB / 6.1 MB)
[13/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (814 KB / 6.1 MB)
[14/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (863 KB / 6.1 MB)
[14/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (896 KB / 6.1 MB)
[14/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (912 KB / 6.1 MB)
[15/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (945 KB / 6.1 MB)
[15/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (978 KB / 6.1 MB)
[16/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (994 KB / 6.1 MB)
[17/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1 MB / 6.1 MB)
[18/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.1 MB / 6.1 MB)
[18/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.2 MB / 6.1 MB)
[20/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.3 MB / 6.1 MB)
[23/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.4 MB / 6.1 MB)
[24/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.5 MB / 6.1 MB)
[25/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.6 MB / 6.1 MB)
[27/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.7 MB / 6.1 MB)
[29/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.8 MB / 6.1 MB)
[30/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (1.9 MB / 6.1 MB)
[32/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2 MB / 6.1 MB)
[33/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.1 MB / 6.1 MB)
[35/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.2 MB / 6.1 MB)
[37/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.3 MB / 6.1 MB)
[38/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.4 MB / 6.1 MB)
[40/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.5 MB / 6.1 MB)
[41/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.6 MB / 6.1 MB)
[43/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.7 MB / 6.1 MB)
[45/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.8 MB / 6.1 MB)
[47/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (2.9 MB / 6.1 MB)
[48/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3 MB / 6.1 MB)
[50/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.1 MB / 6.1 MB)
[51/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.2 MB / 6.1 MB)
[53/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.3 MB / 6.1 MB)
[55/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.4 MB / 6.1 MB)
[57/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.5 MB / 6.1 MB)
[58/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.6 MB / 6.1 MB)
[61/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.7 MB / 6.1 MB)
[62/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.8 MB / 6.1 MB)
[63/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (3.9 MB / 6.1 MB)
[66/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (4 MB / 6.1 MB)
[67/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (4.1 MB / 6.1 MB)
[69/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (4.3 MB / 6.1 MB)
[73/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (4.5 MB / 6.1 MB)
[76/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (4.7 MB / 6.1 MB)
[79/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (4.9 MB / 6.1 MB)
[81/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5 MB / 6.1 MB)
[83/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.1 MB / 6.1 MB)
[85/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.2 MB / 6.1 MB)
[86/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.3 MB / 6.1 MB)
[87/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.4 MB / 6.1 MB)
[90/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.5 MB / 6.1 MB)
[91/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.6 MB / 6.1 MB)
[92/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.7 MB / 6.1 MB)
[94/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.8 MB / 6.1 MB)
[96/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (5.9 MB / 6.1 MB)
[98/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (6 MB / 6.1 MB)
[100/100] Downloading https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (6.1 MB / 6.1 MB)
Downloaded https://github.com/LePips/openapi-generator/releases/download/v0.8.0/openapi-generator.artifactbundle.zip (0.62s)
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 749]
[Planning deferred tasks]
[Starting]
[1 / 261]
[142 / 265]
[154 / 286] CNIOWASI
[157 / 286] CNIOOpenBSD
[159 / 286] _NIODataStructures
[169 / 286] _NIOBase64
[171 / 286] InternalCollectionsUtilities
[173 / 286] InternalCollectionsUtilities
[184 / 286] SpanPreview
[187 / 286] InternalCollectionsUtilities
[189 / 287] _NIOBase64
[190 / 287] Get-product
[191 / 287] InternalCollectionsUtilities
[196 / 295] NIOConcurrencyHelpers
[197 / 295] CNIOLinux
[201 / 296] Get
[208 / 296] NIOConcurrencyHelpers
[216 / 302] CNIOFreeBSD
[219 / 303] CNIOFreeBSD
[236 / 305] NIOConcurrencyHelpers
[248 / 316] Atomics
[253 / 325] DequeModule
[256 / 325] DequeModule
[257 / 325] DequeModule
[259 / 325] DequeModule
[261 / 325] Atomics
[261 / 325] DequeModule
[267 / 326] Atomics
[269 / 326] DequeModule
[269 / 327] DequeModule
[278 / 328] NIOCore
[287 / 337] NIOCore
[301 / 344] NIOPosix
[305 / 353] NIOEmbedded
[308 / 353] NIOEmbedded
[309 / 353] NIOEmbedded
[313 / 353] NIOEmbedded
[315 / 354] NIOPosix
[315 / 354] NIOEmbedded
[319 / 354] NIOPosix
[327 / 357] NIO
[337 / 365] NIOTLS
[345 / 365] NIOTLS
[351 / 375] NIOTransportServices
[360 / 375] NIOTransportServices
[365 / 378] NIOPosix
[369 / 379] NIO
[371 / 379] JellyfinAPI
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/JellyfinClient.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile JellyfinClient.swift
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile JellyfinSocket.swift
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile PassthroughAPIClientDelegate.swift
/host/spi-builder-workspace/Sources/JellyfinClient.swift:25:39: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m23 |[0;0m
[0;36m24 |[0;0m private var _apiClient: APIClient!
[0;36m25 |[0;0m private let sessionConfiguration: [4;39mURLSessionConfiguration[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m26 |[0;0m private let sessionDelegate: URLSessionDelegate?
[0;36m27 |[0;0m private var passthroughDelegate: PassthroughAPIClientDelegate
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/JellyfinClient.swift:26:34: [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m24 |[0;0m private var _apiClient: APIClient!
[0;36m25 |[0;0m private let sessionConfiguration: URLSessionConfiguration
[0;36m26 |[0;0m private let sessionDelegate: [4;39mURLSessionDelegate[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m27 |[0;0m private var passthroughDelegate: PassthroughAPIClientDelegate
[0;36m28 |[0;0m
/host/spi-builder-workspace/Sources/JellyfinClient.swift:37:26: [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m35 |[0;0m delegate: APIClientDelegate? = nil,
[0;36m36 |[0;0m sessionConfiguration: URLSessionConfiguration = .default,
[0;36m37 |[0;0m sessionDelegate: [4;39mURLSessionDelegate[0;0m? = nil
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDelegate' in scope[0;0m
[0;36m38 |[0;0m ) {
[0;36m39 |[0;0m self.configuration = configuration
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:31: [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m34 |[0;0m configuration: Configuration,
[0;36m35 |[0;0m delegate: APIClientDelegate? = nil,
[0;36m36 |[0;0m sessionConfiguration: [4;39mURLSessionConfiguration[0;0m = .default,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m sessionDelegate: URLSessionDelegate? = nil
[0;36m38 |[0;0m ) {
Foundation.URLSessionConfiguration:2:18: [1;39mnote: [1;39m'URLSessionConfiguration' 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 URLSessionConfiguration = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSessionConfiguration' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m34 |[0;0m configuration: Configuration,
[0;36m35 |[0;0m delegate: APIClientDelegate? = nil,
[0;36m36 |[0;0m sessionConfiguration: URLSessionConfiguration = .default,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m37 |[0;0m sessionDelegate: URLSessionDelegate? = nil
[0;36m38 |[0;0m ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:36:58: [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m34 |[0;0m configuration: Configuration,
[0;36m35 |[0;0m delegate: APIClientDelegate? = nil,
[0;36m36 |[0;0m sessionConfiguration: URLSessionConfiguration = [4;39m.default[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'[0;0m
[0;36m37 |[0;0m sessionDelegate: URLSessionDelegate? = nil
[0;36m38 |[0;0m ) {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:72:30: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m70 |[0;0m // MARK: - Configuration
[0;36m71 |[0;0m
[0;36m72 |[0;0m func makeURLSession() -> [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;36m73 |[0;0m URLSession(
[0;36m74 |[0;0m configuration: sessionConfiguration,
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/JellyfinClient.swift:138:19: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m136 |[0;0m public func send<T: Decodable & Sendable & Decodable>(
[0;36m137 |[0;0m _ request: Request<T>,
[0;36m138 |[0;0m delegate: [4;39mURLSessionDataDelegate[0;0m? = nil,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m139 |[0;0m configure: ((inout URLRequest) throws -> Void)? = nil
[0;36m140 |[0;0m ) async throws -> Response<T> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:139:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m137 |[0;0m _ request: Request<T>,
[0;36m138 |[0;0m delegate: URLSessionDataDelegate? = nil,
[0;36m139 |[0;0m configure: ((inout [4;39mURLRequest[0;0m) throws -> Void)? = nil
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m140 |[0;0m ) async throws -> Response<T> {
[0;36m141 |[0;0m nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:148:19: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m146 |[0;0m public func send(
[0;36m147 |[0;0m _ request: Request<Void>,
[0;36m148 |[0;0m delegate: [4;39mURLSessionDataDelegate[0;0m? = nil,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m149 |[0;0m configure: ((inout URLRequest) throws -> Void)? = nil
[0;36m150 |[0;0m ) async throws -> Response<Void> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:149:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m147 |[0;0m _ request: Request<Void>,
[0;36m148 |[0;0m delegate: URLSessionDataDelegate? = nil,
[0;36m149 |[0;0m configure: ((inout [4;39mURLRequest[0;0m) throws -> Void)? = nil
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m150 |[0;0m ) async throws -> Response<Void> {
[0;36m151 |[0;0m nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:157:19: [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m155 |[0;0m public func data(
[0;36m156 |[0;0m for request: Request<some Any>,
[0;36m157 |[0;0m delegate: [4;39mURLSessionDataDelegate[0;0m? = nil,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDataDelegate' in scope[0;0m
[0;36m158 |[0;0m configure: ((inout URLRequest) throws -> Void)? = nil
[0;36m159 |[0;0m ) async throws -> Response<Data> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:158:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m156 |[0;0m for request: Request<some Any>,
[0;36m157 |[0;0m delegate: URLSessionDataDelegate? = nil,
[0;36m158 |[0;0m configure: ((inout [4;39mURLRequest[0;0m) throws -> Void)? = nil
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m159 |[0;0m ) async throws -> Response<Data> {
[0;36m160 |[0;0m nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:166:19: [1;31merror: [1;39mcannot find type 'URLSessionDownloadDelegate' in scope[0;0m
[0;36m164 |[0;0m public func download(
[0;36m165 |[0;0m for request: Request<some Any>,
[0;36m166 |[0;0m delegate: [4;39mURLSessionDownloadDelegate[0;0m? = nil,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDownloadDelegate' in scope[0;0m
[0;36m167 |[0;0m configure: ((inout URLRequest) throws -> Void)? = nil
[0;36m168 |[0;0m ) async throws -> Response<URL> {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:167:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m165 |[0;0m for request: Request<some Any>,
[0;36m166 |[0;0m delegate: URLSessionDownloadDelegate? = nil,
[0;36m167 |[0;0m configure: ((inout [4;39mURLRequest[0;0m) throws -> Void)? = nil
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m168 |[0;0m ) async throws -> Response<URL> {
[0;36m169 |[0;0m nonisolated(unsafe) let configure = configure
/host/spi-builder-workspace/Sources/JellyfinClient.swift:175:19: [1;31merror: [1;39mcannot find type 'URLSessionDownloadDelegate' in scope[0;0m
[0;36m173 |[0;0m public func download(
[0;36m174 |[0;0m resumeFrom resumeData: Data,
[0;36m175 |[0;0m delegate: [4;39mURLSessionDownloadDelegate[0;0m? = nil
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionDownloadDelegate' in scope[0;0m
[0;36m176 |[0;0m ) async throws -> Response<URL> {
[0;36m177 |[0;0m try await _apiClient.download(resumeFrom: resumeData, delegate: delegate)
/host/spi-builder-workspace/Sources/JellyfinClient.swift:40:58: [1;31merror: [1;39mvalue of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'[0;0m
[0;36m38 |[0;0m ) {
[0;36m39 |[0;0m self.configuration = configuration
[0;36m40 |[0;0m self.sessionConfiguration = [4;39msessionConfiguration[0;0m.[4;39mcopy[0;0m() as! URLSessionConfiguration
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'copy'[0;0m
[0;36m41 |[0;0m self.sessionDelegate = sessionDelegate
[0;36m42 |[0;0m
/host/spi-builder-workspace/Sources/JellyfinClient.swift:49:50: [1;31merror: [1;39m'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'[0;0m
[0;36m47 |[0;0m self._apiClient = APIClient(baseURL: configuration.url) { configuration in
[0;36m48 |[0;0m configuration.delegate = passthroughDelegate
[0;36m49 |[0;0m configuration.sessionConfiguration = sessionConfiguration
[0;36m|[0;0m |- [1;31merror: [1;39m'Foundation.URLSessionConfiguration' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionConfiguration'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdid you mean to use 'as!' to force downcast?[0;0m
[0;36m50 |[0;0m configuration.sessionDelegate = sessionDelegate
[0;36m51 |[0;0m
/host/spi-builder-workspace/Sources/JellyfinClient.swift:73:9: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m71 |[0;0m
[0;36m72 |[0;0m func makeURLSession() -> URLSession {
[0;36m73 |[0;0m [4;39mURLSession[0;0m(
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m74 |[0;0m configuration: sessionConfiguration,
[0;36m75 |[0;0m delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/JellyfinClient.swift:73:9: [1;31merror: [1;39mreturn expression of type '_' expected to be an instance of a class or class-constrained type[0;0m
[0;36m71 |[0;0m
[0;36m72 |[0;0m func makeURLSession() -> URLSession {
[0;36m73 |[0;0m [4;39mURLSession([0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mreturn expression of type '_' expected to be an instance of a class or class-constrained type[0;0m
[0;36m74 |[0;0m configuration: sessionConfiguration,
[0;36m75 |[0;0m delegate: sessionDelegate,
/host/spi-builder-workspace/Sources/JellyfinClient.swift:170:37: [1;31merror: [1;39mvalue of type 'APIClient' has no member 'download'[0;0m
[0;36m168 |[0;0m ) async throws -> Response<URL> {
[0;36m169 |[0;0m nonisolated(unsafe) let configure = configure
[0;36m170 |[0;0m return try await [4;39m_apiClient[0;0m.[4;39mdownload[0;0m(for: request, delegate: delegate, configure: configure)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'APIClient' has no member 'download'[0;0m
[0;36m171 |[0;0m }
[0;36m172 |[0;0m
/host/spi-builder-workspace/Sources/JellyfinClient.swift:177:30: [1;31merror: [1;39mvalue of type 'APIClient' has no member 'download'[0;0m
[0;36m175 |[0;0m delegate: URLSessionDownloadDelegate? = nil
[0;36m176 |[0;0m ) async throws -> Response<URL> {
[0;36m177 |[0;0m try await [4;39m_apiClient[0;0m.[4;39mdownload[0;0m(resumeFrom: resumeData, delegate: delegate)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'APIClient' has no member 'download'[0;0m
[0;36m178 |[0;0m }
[0;36m179 |[0;0m }
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:28: [1;33mwarning: [1;39mno 'async' operations occur within 'await' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m219 |[0;0m func signIn(username: String, password: String) async throws -> AuthenticationResult {
[0;36m220 |[0;0m let request = Paths.authenticateUserByName(.init(pw: password, username: username))
[0;36m221 |[0;0m let response = try await send(request).value
[0;36m|[0;0m `- [1;33mwarning: [1;39mno 'async' operations occur within 'await' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m222 |[0;0m
[0;36m223 |[0;0m if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:221:24: [1;33mwarning: [1;39mno calls to throwing functions occur within 'try' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m219 |[0;0m func signIn(username: String, password: String) async throws -> AuthenticationResult {
[0;36m220 |[0;0m let request = Paths.authenticateUserByName(.init(pw: password, username: username))
[0;36m221 |[0;0m let response = try await send(request).value
[0;36m|[0;0m `- [1;33mwarning: [1;39mno calls to throwing functions occur within 'try' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m222 |[0;0m
[0;36m223 |[0;0m if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:28: [1;33mwarning: [1;39mno 'async' operations occur within 'await' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m242 |[0;0m func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
[0;36m243 |[0;0m let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
[0;36m244 |[0;0m let response = try await send(request).value
[0;36m|[0;0m `- [1;33mwarning: [1;39mno 'async' operations occur within 'await' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m245 |[0;0m
[0;36m246 |[0;0m if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinClient.swift:244:24: [1;33mwarning: [1;39mno calls to throwing functions occur within 'try' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m242 |[0;0m func signIn(quickConnectSecret: String) async throws -> AuthenticationResult {
[0;36m243 |[0;0m let request = Paths.authenticateWithQuickConnect(.init(secret: quickConnectSecret))
[0;36m244 |[0;0m let response = try await send(request).value
[0;36m|[0;0m `- [1;33mwarning: [1;39mno calls to throwing functions occur within 'try' expression[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker\UnnecessaryEffectMarker]8;;\]
[0;36m245 |[0;0m
[0;36m246 |[0;0m if let accessToken = response.accessToken {
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:559:24: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m557 |[0;0m
[0;36m558 |[0;0m func listen(
[0;36m559 |[0;0m webSocketTask: [4;39mURLSessionWebSocketTask[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m560 |[0;0m url: URL,
[0;36m561 |[0;0m wakeupStream: AsyncStream<Void>,
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:655:43: [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m653 |[0;0m }
[0;36m654 |[0;0m
[0;36m655 |[0;0m static func extractData(from message: [4;39mURLSessionWebSocketTask[0;0m.Message) -> Data? {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLSessionWebSocketTask' in scope[0;0m
[0;36m656 |[0;0m switch message {
[0;36m657 |[0;0m case let .string(text):
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:502:28: [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'[0;0m
[0;36m500 |[0;0m
[0;36m501 |[0;0m // Runs after the close below so the frame flushes instead of being cut off.
[0;36m502 |[0;0m defer { [4;39murlSession[0;0m.[4;39mfinishTasksAndInvalidate[0;0m() }
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'[0;0m
[0;36m503 |[0;0m
[0;36m504 |[0;0m var request = URLRequest(url: url)
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:504:23: [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m502 |[0;0m defer { urlSession.finishTasksAndInvalidate() }
[0;36m503 |[0;0m
[0;36m504 |[0;0m var request = [4;39mURLRequest[0;0m(url: url)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m505 |[0;0m request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
[0;36m506 |[0;0m
/host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift:507:40: [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'[0;0m
[0;36m505 |[0;0m request.setValue(client.authorizationHeaders, forHTTPHeaderField: "Authorization")
[0;36m506 |[0;0m
[0;36m507 |[0;0m let webSocketTask = [4;39murlSession[0;0m.[4;39mwebSocketTask[0;0m(with: request)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'webSocketTask'[0;0m
[0;36m508 |[0;0m webSocketTask.resume()
[0;36m509 |[0;0m
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:19:73: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m17 |[0;0m var actualDelegate: APIClientDelegate?
[0;36m18 |[0;0m
[0;36m19 |[0;0m func client(_ client: APIClient, willSendRequest request: inout [4;39mURLRequest[0;0m) async throws {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m20 |[0;0m
[0;36m21 |[0;0m // Inject required headers
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:29:69: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m }
[0;36m28 |[0;0m
[0;36m29 |[0;0m func client(_ client: APIClient, validateResponse response: [4;39mHTTPURLResponse[0;0m, data: Data, task: URLSessionTask) throws {
[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;36m30 |[0;0m if let actualDelegate {
[0;36m31 |[0;0m try actualDelegate.client(client, validateResponse: response, data: data, task: 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/PassthroughAPIClientDelegate.swift:29:104: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m27 |[0;0m }
[0;36m28 |[0;0m
[0;36m29 |[0;0m func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: [4;39mURLSessionTask[0;0m) throws {
[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;36m30 |[0;0m if let actualDelegate {
[0;36m31 |[0;0m try actualDelegate.client(client, validateResponse: response, data: data, task: 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/PassthroughAPIClientDelegate.swift:39:60: [1;31merror: [1;39m'URLSessionTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m37 |[0;0m }
[0;36m38 |[0;0m
[0;36m39 |[0;0m func client(_ client: APIClient, shouldRetry task: [4;39mURLSessionTask[0;0m, error: Error, attempts: Int) async throws -> 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;36m40 |[0;0m try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
[0;36m41 |[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/PassthroughAPIClientDelegate.swift:31:36: [1;31merror: [1;39mno exact matches in call to instance method 'client'[0;0m
[0;36m29 |[0;0m func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
[0;36m30 |[0;0m if let actualDelegate {
[0;36m31 |[0;0m try actualDelegate.client(client, validateResponse: response, data: data, task: task)
[0;36m|[0;0m `- [1;31merror: [1;39mno exact matches in call to instance method 'client'[0;0m
[0;36m32 |[0;0m } else {
[0;36m33 |[0;0m guard (200 ..< 300).contains(response.statusCode) else {
/host/spi-builder-workspace/.build/checkouts/Get/Sources/Get/APIClientDelegate.swift:33:10: [1;39mnote: [1;39mcandidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)[0;0m
[0;36m31 |[0;0m /// ``APIError/unacceptableStatusCode(_:)`` if the code is outside of
[0;36m32 |[0;0m /// the `200..<300` range.
[0;36m33 |[0;0m func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)[0;0m
[0;36m34 |[0;0m
[0;36m35 |[0;0m /// Gets called after a networking failure. Only one retry attempt is allowed.
[0;36m:[0;0m
[0;36m87 |[0;0m }
[0;36m88 |[0;0m
[0;36m89 |[0;0m func client(_ client: APIClient, validateResponse response: HTTPURLResponse, data: Data, task: URLSessionTask) throws {
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate has partially matching parameter list (APIClient, validateResponse: HTTPURLResponse, data: Data, task: URLSessionTask)[0;0m
[0;36m90 |[0;0m guard (200..<300).contains(response.statusCode) else {
[0;36m91 |[0;0m throw APIError.unacceptableStatusCode(response.statusCode)
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:33:55: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m31 |[0;0m try actualDelegate.client(client, validateResponse: response, data: data, task: task)
[0;36m32 |[0;0m } else {
[0;36m33 |[0;0m guard (200 ..< 300).contains([4;39mresponse[0;0m.[4;39mstatusCode[0;0m) else {
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m34 |[0;0m throw APIError.unacceptableStatusCode(response.statusCode)
[0;36m35 |[0;0m }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:34:68: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m32 |[0;0m } else {
[0;36m33 |[0;0m guard (200 ..< 300).contains(response.statusCode) else {
[0;36m34 |[0;0m throw APIError.unacceptableStatusCode([4;39mresponse[0;0m.[4;39mstatusCode[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m35 |[0;0m }
[0;36m36 |[0;0m }
/host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift:40:67: [1;31merror: [1;39m'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'[0;0m
[0;36m38 |[0;0m
[0;36m39 |[0;0m func client(_ client: APIClient, shouldRetry task: URLSessionTask, error: Error, attempts: Int) async throws -> Bool {
[0;36m40 |[0;0m try await actualDelegate?.client(client, shouldRetry: task, error: error, attempts: attempts) ?? false
[0;36m|[0;0m |- [1;31merror: [1;39m'Foundation.URLSessionTask' (aka 'AnyObject') is not convertible to 'FoundationNetworking.URLSessionTask'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mdid you mean to use 'as!' to force downcast?[0;0m
[0;36m41 |[0;0m }
[0;36m42 |[0;0m
[#UnnecessaryEffectMarker]: <https://docs.swift.org/compiler/documentation/diagnostics/unnecessary-effect-marker>
Failed frontend command:
/usr/bin/swift-frontend -frontend -c -filelist /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/sources-1 -primary-file /host/spi-builder-workspace/Sources/Entities/WebSocketDataMessageInfo.swift -primary-file /host/spi-builder-workspace/Sources/Entities/WebSocketMessage.swift -primary-file /host/spi-builder-workspace/Sources/Entities/WebSocketMessageIDInfo.swift -primary-file /host/spi-builder-workspace/Sources/Entities/WebSocketMessageTypeInfo.swift -primary-file /host/spi-builder-workspace/Sources/Entities/XbmcMetadataOptions.swift -primary-file /host/spi-builder-workspace/Sources/Extensions/AnyJSON.swift -primary-file /host/spi-builder-workspace/Sources/Extensions/Indirect.swift -primary-file /host/spi-builder-workspace/Sources/Extensions/Info.swift -primary-file /host/spi-builder-workspace/Sources/Extensions/Paths.swift -primary-file /host/spi-builder-workspace/Sources/Extensions/StringCodingKey.swift -primary-file /host/spi-builder-workspace/Sources/Extensions/URLQueryEncoder.swift -primary-file /host/spi-builder-workspace/Sources/JellyfinClient.swift -primary-file /host/spi-builder-workspace/Sources/JellyfinDateCoding.swift -primary-file /host/spi-builder-workspace/Sources/JellyfinSocket/ActivityClock.swift -primary-file /host/spi-builder-workspace/Sources/JellyfinSocket/JellyfinSocket.swift -primary-file /host/spi-builder-workspace/Sources/JellyfinSocket/Subscription.swift -primary-file /host/spi-builder-workspace/Sources/PassthroughAPIClientDelegate.swift -primary-file /host/spi-builder-workspace/Sources/Paths/AddItemToPlaylistAPI.swift -primary-file /host/spi-builder-workspace/Sources/Paths/AddListingProviderAPI.swift -primary-file /host/spi-builder-workspace/Sources/Paths/AddMediaPathAPI.swift -primary-file /host/spi-builder-workspace/Sources/Paths/AddToCollectionAPI.swift -primary-file /host/spi-builder-workspace/Sources/Paths/AddTunerHostAPI.swift -primary-file /host/spi-builder-workspace/Sources/Paths/AddUserToSessionAPI.swift -primary-file /host/spi-builder-workspace/Sources/Paths/AddVirtualFolderAPI.swift -supplementary-output-file-map /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/supplementaryOutputs-56 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -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 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOPosix.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOWASI.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOWindows/include/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOLinux.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIODarwin.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOFreeBSD.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOOpenBSD.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOAtomics.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include/module.modulemap -Xcc -fno-omit-frame-pointer -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-nio/Sources/CNIOPosix/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOWASI/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOWindows/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIODarwin/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOFreeBSD/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOOpenBSD/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOAtomics/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name JellyfinAPI -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/JellyfinAPI_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 -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketDataMessageInfo.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketMessage.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketMessageIDInfo.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketMessageTypeInfo.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/XbmcMetadataOptions.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AnyJSON.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Indirect.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Info.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Paths.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/StringCodingKey.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/URLQueryEncoder.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/JellyfinClient.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/JellyfinDateCoding.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/ActivityClock.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/JellyfinSocket.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Subscription.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/PassthroughAPIClientDelegate.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddItemToPlaylistAPI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddListingProviderAPI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddMediaPathAPI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddToCollectionAPI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddTunerHostAPI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddUserToSessionAPI.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddVirtualFolderAPI.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketDataMessageInfo.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketMessage.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketMessageIDInfo.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/WebSocketMessageTypeInfo.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/XbmcMetadataOptions.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AnyJSON.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Indirect.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Info.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Paths.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/StringCodingKey.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/URLQueryEncoder.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/JellyfinClient.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/JellyfinDateCoding.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/ActivityClock.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/JellyfinSocket.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/Subscription.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/PassthroughAPIClientDelegate.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddItemToPlaylistAPI.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddListingProviderAPI.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddMediaPathAPI.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddToCollectionAPI.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddTunerHostAPI.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddUserToSessionAPI.o -index-unit-output-path /JellyfinAPI.build/Debug-linux-x86_64/JellyfinAPI-t.build/Objects-normal/x86_64/AddVirtualFolderAPI.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux