Build Information
Failed to build MLXAudio, reference main (c7755e), with Swift 6.4 for Wasm on 21 Nov 2026 23:55:38 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Neywa-Labs/mlx-audio-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/Neywa-Labs/mlx-audio-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c7755e2 Keep the base letter of accented letters in the Soprano normalizer (#415)
Cloned https://github.com/Neywa-Labs/mlx-audio-swift.git
Revision (git rev-parse @):
c7755e2504181a771941bb6f9f26ea79b3cdfce3
SUCCESS checkout https://github.com/Neywa-Labs/mlx-audio-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/Neywa-Labs/mlx-audio-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344849-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d7b72fae8894fba3c2632fd7068ea480e9b111160d8dd7b4d9df5fbcfe7a40ee
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/facebook/zstd.git
Fetching https://github.com/huggingface/swift-transformers.git
Fetching https://github.com/ml-explore/mlx-swift.git
Fetching https://github.com/huggingface/swift-huggingface.git
[1/7545] Fetching swift-transformers
[228/10700] Fetching swift-transformers, swift-huggingface
Fetched https://github.com/huggingface/swift-huggingface.git (0.51s)
[981/7545] Fetching swift-transformers
[7546/95957] Fetching swift-transformers, zstd
[11967/113713] Fetching swift-transformers, zstd, mlx-swift
Fetched https://github.com/huggingface/swift-transformers.git (1.33s)
Fetched https://github.com/ml-explore/mlx-swift.git (1.33s)
[30945/88412] Fetching zstd
Fetched https://github.com/facebook/zstd.git (3.25s)
Computing version for https://github.com/facebook/zstd.git
Computed https://github.com/facebook/zstd.git at 1.5.7 (4.14s)
Computing version for https://github.com/huggingface/swift-huggingface.git
Computed https://github.com/huggingface/swift-huggingface.git at 1.0.1 (0.16s)
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/mattt/EventSource.git
[1/333] Fetching eventsource
[261/19320] Fetching eventsource, swift-crypto
Fetched https://github.com/mattt/EventSource.git (1.16s)
Fetched https://github.com/apple/swift-crypto.git (1.17s)
Computing version for https://github.com/huggingface/swift-transformers.git
Computed https://github.com/huggingface/swift-transformers.git at 1.4.0 (1.33s)
Fetching https://github.com/huggingface/swift-jinja.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/ibireme/yyjson.git
[1/2381] Fetching swift-jinja
Fetched https://github.com/huggingface/swift-jinja.git (0.48s)
[1/30425] Fetching swift-collections
[2/35779] Fetching swift-collections, yyjson
Fetched https://github.com/ibireme/yyjson.git (1.28s)
Fetched https://github.com/apple/swift-collections.git (1.29s)
Computing version for https://github.com/ml-explore/mlx-swift.git
Computed https://github.com/ml-explore/mlx-swift.git at 0.33.0 (1.54s)
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-argument-parser
[1/6862] Fetching swift-numerics
[6863/26304] Fetching swift-numerics, swift-argument-parser
Fetched https://github.com/apple/swift-numerics (0.82s)
Fetched https://github.com/apple/swift-argument-parser (0.82s)
Computing version for https://github.com/ibireme/yyjson.git
Computed https://github.com/ibireme/yyjson.git at 0.13.0 (0.97s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.13s)
Computing version for https://github.com/huggingface/swift-jinja.git
Computed https://github.com/huggingface/swift-jinja.git at 3.2.1 (0.13s)
Computing version for https://github.com/mattt/EventSource.git
Computed https://github.com/mattt/EventSource.git at 1.6.0 (0.13s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.14s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.6 (0.22s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 4.5.2 (0.91s)
Fetching https://github.com/apple/swift-asn1.git
[1/2082] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.37s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.55s)
Creating working copy for https://github.com/facebook/zstd.git
Working copy of https://github.com/facebook/zstd.git resolved at 1.5.7
Creating working copy for https://github.com/ml-explore/mlx-swift.git
Working copy of https://github.com/ml-explore/mlx-swift.git resolved at 0.33.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
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.4
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.6
Creating working copy for https://github.com/huggingface/swift-jinja.git
Working copy of https://github.com/huggingface/swift-jinja.git resolved at 3.2.1
Creating working copy for https://github.com/mattt/EventSource.git
Working copy of https://github.com/mattt/EventSource.git resolved at 1.6.0
Creating working copy for https://github.com/huggingface/swift-huggingface.git
Working copy of https://github.com/huggingface/swift-huggingface.git resolved at 1.0.1
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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
Creating working copy for https://github.com/huggingface/swift-transformers.git
Working copy of https://github.com/huggingface/swift-transformers.git resolved at 1.4.0
Creating working copy for https://github.com/ibireme/yyjson.git
Working copy of https://github.com/ibireme/yyjson.git resolved at 0.13.0
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/MLXAudioTTS/Models/BreezeTTS/README.md
/host/spi-builder-workspace/Sources/MLXAudioTTS/Models/IrodoriTTS/README.md
/host/spi-builder-workspace/Sources/MLXAudioTTS/Models/MossTTS/README.md
/host/spi-builder-workspace/Sources/MLXAudioTTS/Models/OmniVoice/README.md
/host/spi-builder-workspace/Sources/MLXAudioTTS/Models/Spark/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/MLXAudioSTT/Models/MingASR/README.md
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/Sources/MLXAudioSTS/Models/DeepFilterNet/README.md
Building for debugging...
[Computing dependencies]
[Provisioning 3 / 76]
[Pre-planning 1 / 1770]
[Planning 1007 / 1770]
[Planning deferred tasks]
[Constructing 676 / 4326]
[Starting]
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/arg_reduce.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/conv.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/dot.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gated_delta_update.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gated_delta_update_vjp.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/gather_mm_offsets.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/layer_norm.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/random.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rms_norm.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/rope.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/scaled_dot_product_attention_vjp.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/searchsorted.metal' of type 'sourcecode.metal' for architecture 'wasm32'
warning: no rule to process file '/host/spi-builder-workspace/.build/checkouts/mlx-swift/Source/Cmlx/mlx-generated/metal/steel/attn/kernels/steel_attention.metal' of type 'sourcecode.metal' for architecture 'wasm32'
[169 / 1277] InternalCollectionsUtilities
[238 / 1277] libzstd
[244 / 1277] libzstd
[256 / 1277] libzstd
[271 / 1287] libzstd
[275 / 1287] RealModule
[275 / 1287] libzstd
[283 / 1287] RealModule
[295 / 1312] CryptoBoringWrapper
[297 / 1312] InternalCollectionsUtilities
[299 / 1312] RealModule
[301 / 1313] RealModule
[311 / 1313] OrderedCollections
[313 / 1313] InternalCollectionsUtilities
[324 / 1313] InternalCollectionsUtilities
[326 / 1314] InternalCollectionsUtilities
[337 / 1317] CXKCPShims
[340 / 1317] ArgumentParserToolInfo
[344 / 1317] ArgumentParserToolInfo
[349 / 1317] CCryptoBoringSSL
[352 / 1317] CCryptoBoringSSL
[354 / 1318] CCryptoBoringSSL
[357 / 1319] CCryptoBoringSSL
[359 / 1319] CCryptoBoringSSL
[366 / 1319] CCryptoBoringSSL
[371 / 1319] CXKCP
[373 / 1319] CCryptoBoringSSL
[376 / 1319] CCryptoBoringSSL
[380 / 1319] CCryptoBoringSSL
[383 / 1319] CCryptoBoringSSL
[386 / 1319] CCryptoBoringSSL
[389 / 1319] CCryptoBoringSSL
[397 / 1319] CCryptoBoringSSL
[403 / 1319] CCryptoBoringSSL
[404 / 1319] CCryptoBoringSSL
[408 / 1319] CCryptoBoringSSL
[410 / 1319] CCryptoBoringSSL
[414 / 1319] CCryptoBoringSSL
[418 / 1319] CCryptoBoringSSL
[419 / 1319] CCryptoBoringSSL
[425 / 1319] CCryptoBoringSSL
[429 / 1319] CCryptoBoringSSL
[433 / 1319] CCryptoBoringSSL
[435 / 1319] CCryptoBoringSSL
[439 / 1319] CCryptoBoringSSL
[441 / 1319] CCryptoBoringSSL
[443 / 1319] CCryptoBoringSSL
[449 / 1319] CCryptoBoringSSL
[455 / 1319] CCryptoBoringSSL
[465 / 1319] CCryptoBoringSSL
[479 / 1319] CCryptoBoringSSL
[484 / 1319] CCryptoBoringSSL
[488 / 1319] CCryptoBoringSSL
[492 / 1319] CCryptoBoringSSL
[497 / 1319] CCryptoBoringSSL
[500 / 1319] CCryptoBoringSSL
[504 / 1319] CCryptoBoringSSL
[507 / 1319] CCryptoBoringSSL
[509 / 1319] CCryptoBoringSSL
[513 / 1319] CCryptoBoringSSL
[517 / 1319] CCryptoBoringSSL
[519 / 1319] CCryptoBoringSSL
[520 / 1319] CCryptoBoringSSL
[523 / 1319] CCryptoBoringSSL
[527 / 1319] CCryptoBoringSSL
[531 / 1319] CCryptoBoringSSL
[539 / 1319] CCryptoBoringSSL
[544 / 1319] CCryptoBoringSSL
[545 / 1319] CCryptoBoringSSL
[551 / 1319] CCryptoBoringSSL
[554 / 1319] CCryptoBoringSSL
[556 / 1319] CCryptoBoringSSL
[563 / 1319] CCryptoBoringSSL
[576 / 1319] CCryptoBoringSSL
[580 / 1319] CCryptoBoringSSL
[584 / 1319] CCryptoBoringSSL
[591 / 1319] CCryptoBoringSSL
[592 / 1319] CCryptoBoringSSL
[598 / 1319] CCryptoBoringSSL
[600 / 1319] CCryptoBoringSSL
[606 / 1319] CCryptoBoringSSL
[609 / 1319] CCryptoBoringSSL
[612 / 1319] CCryptoBoringSSL
[614 / 1319] CCryptoBoringSSL
[617 / 1319] CCryptoBoringSSL
[620 / 1319] CCryptoBoringSSL
[622 / 1319] CCryptoBoringSSL
[623 / 1319] CCryptoBoringSSL
[628 / 1319] CCryptoBoringSSL
[630 / 1319] CCryptoBoringSSL
[638 / 1319] CCryptoBoringSSL
[646 / 1319] CCryptoBoringSSL
[652 / 1319] CCryptoBoringSSL
[655 / 1319] CCryptoBoringSSL
[660 / 1319] CCryptoBoringSSL
[663 / 1319] CCryptoBoringSSL
[667 / 1319] CCryptoBoringSSL
[672 / 1319] CCryptoBoringSSL
[676 / 1319] CCryptoBoringSSL
[687 / 1319] CCryptoBoringSSL
[697 / 1319] CCryptoBoringSSL
[701 / 1319] CCryptoBoringSSL
[703 / 1319] CCryptoBoringSSL
[704 / 1319] CCryptoBoringSSL
[708 / 1319] CCryptoBoringSSL
[710 / 1319] CCryptoBoringSSL
[711 / 1319] CCryptoBoringSSL
[714 / 1319] CCryptoBoringSSL
[721 / 1319] CCryptoBoringSSL
[727 / 1339] OrderedCollections
[737 / 1339] OrderedCollections
[739 / 1339] CCryptoBoringSSL
[741 / 1339] OrderedCollections
[742 / 1339] Numerics
[745 / 1339] ComplexModule
[747 / 1339] CCryptoBoringSSL
[761 / 1345] Numerics
[768 / 1364] Crypto
[768 / 1365] OrderedCollections
[770 / 1365] OrderedCollections
[777 / 1365] OrderedCollections
[791 / 1366] Crypto-product
[792 / 1366] HuggingFace
[793 / 1366] HuggingFace
[797 / 1366] ComplexModule
[798 / 1366] Crypto
[803 / 1366] ArgumentParser-product
[804 / 1366] encuda-product
[809 / 1383] Jinja
[810 / 1383] encuda-product
[815 / 1383] Jinja
[817 / 1384] Jinja
[820 / 1385] Jinja
[822 / 1385] Jinja
[823 / 1386] encuda-product
[830 / 1386] Crypto
[833 / 1396] HuggingFace
[834 / 1396] HuggingFace
[836 / 1396] HuggingFace
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URLSessionConfiguration+Background.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile URLSessionConfiguration+Background.swift
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile FileLock.swift
[837 / 1396] HuggingFace
error: SwiftCompile normal wasm32 /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile HTTPClient.swift
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift:8:12: [1;31merror: [1;39mFileLock is only supported on Darwin and Linux (Glibc) platforms.[0;0m
[0;36m6 |[0;0m import Glibc
[0;36m7 |[0;0m #else
[0;36m8 |[0;0m #error([4;39m"FileLock is only supported on Darwin and Linux (Glibc) platforms."[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mFileLock is only supported on Darwin and Linux (Glibc) platforms.[0;0m
[0;36m9 |[0;0m #endif
[0;36m10 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URLSessionConfiguration+Background.swift:8:5: [1;31merror: [1;39mnon-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m6 |[0;0m
[0;36m7 |[0;0m #if !canImport(FoundationNetworking)
[0;36m8 |[0;0m extension [4;39mURLSessionConfiguration[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSessionConfiguration' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m9 |[0;0m /// Whether this is a background configuration,
[0;36m10 |[0;0m /// created with `URLSessionConfiguration.background(withIdentifier:)`.
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:30:18: [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
[0;36m29 |[0;0m /// The underlying URL session.
[0;36m30 |[0;0m 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;36m31 |[0;0m
[0;36m32 |[0;0m /// Whether the client invalidates `session` when it is deallocated,
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:54:18: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m52 |[0;0m userAgent: String? = nil,
[0;36m53 |[0;0m tokenProvider: TokenProvider = .environment,
[0;36m54 |[0;0m session: [4;39mURLSession[0;0m = URLSession(configuration: .default),
[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;36m55 |[0;0m invalidatesSession: Bool = false
[0;36m56 |[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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:54:31: [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m52 |[0;0m userAgent: String? = nil,
[0;36m53 |[0;0m tokenProvider: TokenProvider = .environment,
[0;36m54 |[0;0m session: URLSession = [4;39mURLSession[0;0m(configuration: .default),
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers[0;0m
[0;36m55 |[0;0m invalidatesSession: Bool = false
[0;36m56 |[0;0m ) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:54:31: [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m52 |[0;0m userAgent: String? = nil,
[0;36m53 |[0;0m tokenProvider: TokenProvider = .environment,
[0;36m54 |[0;0m session: URLSession = [4;39mURLSession(configuration: .default)[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mdefault argument value of type '_' cannot be converted to type 'AnyObject'[0;0m
[0;36m55 |[0;0m invalidatesSession: Bool = false
[0;36m56 |[0;0m ) {
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:102:54: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m100 |[0;0m }
[0;36m101 |[0;0m
[0;36m102 |[0;0m private func performFetch<T: Decodable>(request: [4;39mURLRequest[0;0m) async throws -> T {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m103 |[0;0m let (data, response) = try await session.data(for: request)
[0;36m104 |[0;0m let httpResponse = try validateResponse(response, data: data)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:189:64: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m187 |[0;0m private func performFetchStream<T: Decodable & Sendable>(
[0;36m188 |[0;0m _ method: HTTPMethod,
[0;36m189 |[0;0m requestBuilder: @escaping @Sendable () async throws -> [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m190 |[0;0m ) -> AsyncThrowingStream<T, Swift.Error> {
[0;36m191 |[0;0m AsyncThrowingStream { @Sendable continuation in
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:189:25: [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m187 |[0;0m private func performFetchStream<T: Decodable & Sendable>(
[0;36m188 |[0;0m _ method: HTTPMethod,
[0;36m189 |[0;0m requestBuilder: @escaping @Sendable () async throws -> URLRequest
[0;36m|[0;0m `- [1;31merror: [1;39m'@escaping' only applies to function types[0;0m
[0;36m190 |[0;0m ) -> AsyncThrowingStream<T, Swift.Error> {
[0;36m191 |[0;0m AsyncThrowingStream { @Sendable continuation in
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:307:44: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m305 |[0;0m }
[0;36m306 |[0;0m
[0;36m307 |[0;0m private func performFetchData(request: [4;39mURLRequest[0;0m) async throws -> Data {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m308 |[0;0m let (data, response) = try await session.data(for: request)
[0;36m309 |[0;0m let _ = try validateResponse(response, data: data)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:319:23: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m317 |[0;0m params: [String: Value]? = nil,
[0;36m318 |[0;0m headers: [String: String]? = nil
[0;36m319 |[0;0m ) async throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m320 |[0;0m var urlComponents = URLComponents(url: host, resolvingAgainstBaseURL: true)
[0;36m321 |[0;0m urlComponents?.path = path
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:331:23: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m329 |[0;0m params: [String: Value]? = nil,
[0;36m330 |[0;0m headers: [String: String]? = nil
[0;36m331 |[0;0m ) async throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m332 |[0;0m let urlComponents = URLComponents(url: url, resolvingAgainstBaseURL: true)
[0;36m333 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:342:23: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m340 |[0;0m params: [String: Value]? = nil,
[0;36m341 |[0;0m headers: [String: String]? = nil
[0;36m342 |[0;0m ) async throws -> [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m343 |[0;0m var urlComponents = urlComponents
[0;36m344 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:402:39: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m400 |[0;0m }
[0;36m401 |[0;0m
[0;36m402 |[0;0m func validateResponse(_ response: [4;39mURLResponse[0;0m, data: Data? = nil) throws -> HTTPURLResponse {
[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;36m403 |[0;0m guard let httpResponse = response as? HTTPURLResponse else {
[0;36m404 |[0;0m throw HTTPClientError.unexpectedError("Invalid response from server: \(response)")
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:402:81: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m400 |[0;0m }
[0;36m401 |[0;0m
[0;36m402 |[0;0m func validateResponse(_ response: URLResponse, data: Data? = nil) throws -> [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;36m403 |[0;0m guard let httpResponse = response as? HTTPURLResponse else {
[0;36m404 |[0;0m throw HTTPClientError.unexpectedError("Invalid response from server: \(response)")
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:472:26: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m470 |[0;0m
[0;36m471 |[0;0m /// The HTTP response, for a response or decoding error.
[0;36m472 |[0;0m public let 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;36m473 |[0;0m
[0;36m474 |[0;0m /// The HTTP status code of the response, if there is one.
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:479:48: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m477 |[0;0m }
[0;36m478 |[0;0m
[0;36m479 |[0;0m init(code: Code, detail: String, response: [4;39mHTTPURLResponse[0;0m? = nil) {
[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;36m480 |[0;0m self.code = code
[0;36m481 |[0;0m self.detail = detail
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:497:48: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m495 |[0;0m /// - response: The HTTP response.
[0;36m496 |[0;0m /// - detail: A description of what went wrong.
[0;36m497 |[0;0m public static func responseError(response: [4;39mHTTPURLResponse[0;0m, detail: String) -> Self {
[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;36m498 |[0;0m Self(code: .responseError, detail: detail, response: response)
[0;36m499 |[0;0m }
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:506:48: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m504 |[0;0m /// - response: The HTTP response.
[0;36m505 |[0;0m /// - detail: A description of what went wrong.
[0;36m506 |[0;0m public static func decodingError(response: [4;39mHTTPURLResponse[0;0m, detail: String) -> Self {
[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;36m507 |[0;0m Self(code: .decodingError, detail: detail, response: response)
[0;36m508 |[0;0m }
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:472:16: [1;31merror: [1;39mstored property 'response' of 'Sendable'-conforming struct 'HTTPClientError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m470 |[0;0m
[0;36m471 |[0;0m /// The HTTP response, for a response or decoding error.
[0;36m472 |[0;0m public let response: HTTPURLResponse?
[0;36m|[0;0m `- [1;31merror: [1;39mstored property 'response' of 'Sendable'-conforming struct 'HTTPClientError' contains non-Sendable type 'AnyObject'[0;0m
[0;36m473 |[0;0m
[0;36m474 |[0;0m /// The HTTP status code of the response, if there is one.
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:428:15: [1;31merror: [1;39mtype 'HTTPClientError' does not conform to protocol 'Hashable'[0;0m
[0;36m426 |[0;0m /// Check ``code`` to find out what kind of error occurred.
[0;36m427 |[0;0m /// New codes may be added in minor releases.
[0;36m428 |[0;0m public struct HTTPClientError: Error, Hashable, Sendable, CustomStringConvertible {
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'HTTPClientError' does not conform to protocol 'Hashable'[0;0m
[0;36m429 |[0;0m /// A code that identifies the kind of error.
[0;36m430 |[0;0m public struct Code: Hashable, Sendable, CustomStringConvertible {
[0;36m:[0;0m
[0;36m470 |[0;0m
[0;36m471 |[0;0m /// The HTTP response, for a response or decoding error.
[0;36m472 |[0;0m public let response: HTTPURLResponse?
[0;36m|[0;0m `- [1;39mnote: [1;39mstored property type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') does not conform to protocol 'Hashable', preventing synthesized conformance of 'HTTPClientError' to 'Hashable'[0;0m
[0;36m473 |[0;0m
[0;36m474 |[0;0m /// The HTTP status code of the response, if there is one.
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:428:15: [1;31merror: [1;39mtype 'HTTPClientError' does not conform to protocol 'Equatable'[0;0m
[0;36m426 |[0;0m /// Check ``code`` to find out what kind of error occurred.
[0;36m427 |[0;0m /// New codes may be added in minor releases.
[0;36m428 |[0;0m public struct HTTPClientError: Error, Hashable, Sendable, CustomStringConvertible {
[0;36m|[0;0m |- [1;31merror: [1;39mtype 'HTTPClientError' does not conform to protocol 'Equatable'[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39madd stubs for conformance[0;0m
[0;36m429 |[0;0m /// A code that identifies the kind of error.
[0;36m430 |[0;0m public struct Code: Hashable, Sendable, CustomStringConvertible {
[0;36m:[0;0m
[0;36m470 |[0;0m
[0;36m471 |[0;0m /// The HTTP response, for a response or decoding error.
[0;36m472 |[0;0m public let response: HTTPURLResponse?
[0;36m|[0;0m `- [1;39mnote: [1;39mstored property type 'HTTPURLResponse?' (aka 'Optional<AnyObject>') does not conform to protocol 'Equatable', preventing synthesized conformance of 'HTTPClientError' to 'Equatable'[0;0m
[0;36m473 |[0;0m
[0;36m474 |[0;0m /// The HTTP status code of the response, if there is one.
Swift.==:1:24: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'RawRepresentable'[0;0m
[0;36m1 |[0;0m @inlinable public func == <T>(lhs: T, rhs: T) -> Bool where T : RawRepresentable, T.RawValue : Equatable
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'RawRepresentable'[0;0m
Swift.FloatingPoint.==:2:20: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'FloatingPoint'[0;0m
[0;36m1 |[0;0m protocol FloatingPoint {
[0;36m2 |[0;0m public static func == (lhs: Self, rhs: Self) -> Bool}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'FloatingPoint'[0;0m
[0;36m3 |[0;0m
Swift.BinaryInteger.==:2:20: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'BinaryInteger'[0;0m
[0;36m1 |[0;0m protocol BinaryInteger {
[0;36m2 |[0;0m public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : BinaryInteger}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'BinaryInteger'[0;0m
[0;36m3 |[0;0m
Swift._Pointer.==:2:20: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '_Pointer'[0;0m
[0;36m1 |[0;0m protocol _Pointer {
[0;36m2 |[0;0m public static func == (lhs: Self, rhs: Self) -> Bool}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '_Pointer'[0;0m
[0;36m3 |[0;0m
Swift._Pointer.==:2:31: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '_Pointer'[0;0m
[0;36m1 |[0;0m protocol _Pointer {
[0;36m2 |[0;0m @inlinable public static func == <Other>(lhs: Self, rhs: Other) -> Bool where Other : _Pointer}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '_Pointer'[0;0m
[0;36m3 |[0;0m
Swift.Strideable.==:2:31: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'Strideable'[0;0m
[0;36m1 |[0;0m protocol Strideable {
[0;36m2 |[0;0m @inlinable public static func == (x: Self, y: Self) -> Bool}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'Strideable'[0;0m
[0;36m3 |[0;0m
Swift.StringProtocol.==:2:31: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'StringProtocol'[0;0m
[0;36m1 |[0;0m protocol StringProtocol {
[0;36m2 |[0;0m @inlinable public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : StringProtocol}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'StringProtocol'[0;0m
[0;36m3 |[0;0m
Swift.SIMD.==:2:20: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'SIMD'[0;0m
[0;36m1 |[0;0m protocol SIMD {
[0;36m2 |[0;0m public static func == (a: Self, b: Self) -> Bool}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'SIMD'[0;0m
[0;36m3 |[0;0m
Foundation.__BridgedNSError.==:2:20: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '__BridgedNSError'[0;0m
[0;36m1 |[0;0m protocol __BridgedNSError {
[0;36m2 |[0;0m public static func == (lhs: Self, rhs: Self) -> Bool}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '__BridgedNSError'[0;0m
[0;36m3 |[0;0m
Foundation._BridgedStoredNSError.==:2:20: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '_BridgedStoredNSError'[0;0m
[0;36m1 |[0;0m protocol _BridgedStoredNSError {
[0;36m2 |[0;0m public static func == (lhs: Self, rhs: Self) -> Bool}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to '_BridgedStoredNSError'[0;0m
[0;36m3 |[0;0m
FoundationEssentials.AttributedStringProtocol.==:2:20: [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'AttributedStringProtocol'[0;0m
[0;36m1 |[0;0m protocol AttributedStringProtocol {
[0;36m2 |[0;0m public static func == <RHS>(lhs: Self, rhs: RHS) -> Bool where RHS : AttributedStringProtocol}
[0;36m|[0;0m `- [1;39mnote: [1;39mcandidate would match if 'HTTPClientError' conformed to 'AttributedStringProtocol'[0;0m
[0;36m3 |[0;0m
Swift.Equatable.==:2:13: [1;39mnote: [1;39mprotocol requires function '==' with type '(borrowing HTTPClientError, borrowing HTTPClientError) -> Bool'[0;0m
[0;36m1 |[0;0m protocol Equatable {
[0;36m2 |[0;0m static func == (lhs: borrowing Self, rhs: borrowing Self) -> Bool}
[0;36m|[0;0m `- [1;39mnote: [1;39mprotocol requires function '==' with type '(borrowing HTTPClientError, borrowing HTTPClientError) -> Bool'[0;0m
[0;36m3 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:71:21: [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'finishTasksAndInvalidate'[0;0m
[0;36m69 |[0;0m deinit {
[0;36m70 |[0;0m if invalidatesSession {
[0;36m71 |[0;0m [4;39msession[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;36m72 |[0;0m }
[0;36m73 |[0;0m }
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:103:50: [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'data'[0;0m
[0;36m101 |[0;0m
[0;36m102 |[0;0m private func performFetch<T: Decodable>(request: URLRequest) async throws -> T {
[0;36m103 |[0;0m let (data, response) = try await [4;39msession[0;0m.[4;39mdata[0;0m(for: request)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'data'[0;0m
[0;36m104 |[0;0m let httpResponse = try validateResponse(response, data: data)
[0;36m105 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:144:50: [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'data'[0;0m
[0;36m142 |[0;0m ) async throws -> PaginatedResponse<T> {
[0;36m143 |[0;0m let request = try await createRequest(method, url: url, params: params, headers: headers)
[0;36m144 |[0;0m let (data, response) = try await [4;39msession[0;0m.[4;39mdata[0;0m(for: request)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'data'[0;0m
[0;36m145 |[0;0m let httpResponse = try validateResponse(response, data: data)
[0;36m146 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:308:50: [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'data'[0;0m
[0;36m306 |[0;0m
[0;36m307 |[0;0m private func performFetchData(request: URLRequest) async throws -> Data {
[0;36m308 |[0;0m let (data, response) = try await [4;39msession[0;0m.[4;39mdata[0;0m(for: request)
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'URLSession' (aka 'AnyObject') has no member 'data'[0;0m
[0;36m309 |[0;0m let _ = try validateResponse(response, data: data)
[0;36m310 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:374:22: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m372 |[0;0m )
[0;36m373 |[0;0m }
[0;36m374 |[0;0m var request: [4;39mURLRequest[0;0m = URLRequest(url: url)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m375 |[0;0m request.httpMethod = method.rawValue
[0;36m376 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:374:35: [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m372 |[0;0m )
[0;36m373 |[0;0m }
[0;36m374 |[0;0m var request: URLRequest = [4;39mURLRequest[0;0m(url: url)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'URLRequest' in scope[0;0m
[0;36m375 |[0;0m request.httpMethod = method.rawValue
[0;36m376 |[0;0m
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:403:47: [1;31merror: [1;39m'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m401 |[0;0m
[0;36m402 |[0;0m func validateResponse(_ response: URLResponse, data: Data? = nil) throws -> HTTPURLResponse {
[0;36m403 |[0;0m guard let httpResponse = response as? [4;39mHTTPURLResponse[0;0m else {
[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;36m404 |[0;0m throw HTTPClientError.unexpectedError("Invalid response from server: \(response)")
[0;36m405 |[0;0m }
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/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:408:66: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m406 |[0;0m
[0;36m407 |[0;0m // If we have data and it's an error status, parse and throw the error
[0;36m408 |[0;0m if let data = data, !(200 ..< 300).contains([4;39mhttpResponse[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;36m409 |[0;0m if let errorDetail = try? jsonDecoder.decode(ClientErrorResponse.self, from: data) {
[0;36m410 |[0;0m throw HTTPClientError.responseError(response: httpResponse, detail: errorDetail.error)
/host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift:476:19: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m474 |[0;0m /// The HTTP status code of the response, if there is one.
[0;36m475 |[0;0m public var statusCode: Int? {
[0;36m476 |[0;0m [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;36m477 |[0;0m }
[0;36m478 |[0;0m
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/AccessRequest.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Billing.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Bucket.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Collection.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/CommaSeparatedList.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Dataset.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Discussion.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/File.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Git.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubCache.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Buckets.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Collections.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Datasets.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Discussions.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Files.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Git.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Models.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+OAuth.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Organizations.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Pagination.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Papers.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Repos.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+Spaces.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient+User.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/HubClient.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Model.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/OAuth.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Organization.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Pagination.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Paper.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Repo.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/ResourceGroup.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Space.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/Tags.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/User.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Hub/XetDownloadProgress.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/ChatCompletion.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/FeatureExtraction.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/InferenceClient.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/Message.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/Provider.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/SpeechToText.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/TextToImage.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/InferenceProviders/TextToVideo.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/OAuth/OAuthClient.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/OAuth/TokenStorage.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/CacheLocationProvider.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/Data+Extensions.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/JSONDecoder+Extensions.swift /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URL+Extensions.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URLSession+Linux.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Extensions/URLSessionConfiguration+Background.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/FileLock.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/HTTPClient.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/MultipartBuilder.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/TokenProvider.swift -primary-file /host/spi-builder-workspace/.build/checkouts/swift-huggingface/Sources/HuggingFace/Shared/Value.swift -supplementary-output-file-map /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/supplementaryOutputs-41 -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 -suppress-warnings -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 -user-module-version 1.0.1 -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/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HuggingFace -package-name swift_huggingface -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/HuggingFace_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/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/URLSession+Linux.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/URLSessionConfiguration+Background.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/FileLock.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/HTTPClient.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/MultipartBuilder.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/TokenProvider.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/Value.o -index-unit-output-path /swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/URLSession+Linux.o -index-unit-output-path /swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/URLSessionConfiguration+Background.o -index-unit-output-path /swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/FileLock.o -index-unit-output-path /swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/HTTPClient.o -index-unit-output-path /swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/MultipartBuilder.o -index-unit-output-path /swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/TokenProvider.o -index-unit-output-path /swift-huggingface.build/Debug-webassembly-wasm32/HuggingFace-t.build/Objects-normal/wasm32/Value.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm