Build Information
Failed to build swift-hoods, reference 0.3.0 (dc2383
), with Swift 6.1 for Wasm on 30 May 2025 03:54:30 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dirtyhenry/swift-hoods.git
Reference: 0.3.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/dirtyhenry/swift-hoods
* tag 0.3.0 -> FETCH_HEAD
HEAD is now at dc2383b bump: version 0.2.1 → 0.3.0
Cloned https://github.com/dirtyhenry/swift-hoods.git
Revision (git rev-parse @):
dc2383b930b9258a1c233d7b6d63ab4be4cf8f21
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/dirtyhenry/swift-hoods.git at 0.3.0
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/dirtyhenry/swift-hoods.git
https://github.com/dirtyhenry/swift-hoods.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-blocks",
"requirement" : {
"branch" : [
"main"
]
},
"type" : "sourceControl",
"url" : "https://github.com/dirtyhenry/swift-blocks"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
},
{
"identity" : "swift-composable-architecture",
"requirement" : {
"range" : [
{
"lower_bound" : "1.6.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-composable-architecture"
},
{
"identity" : "yams",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.6",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/jpsim/Yams.git"
},
{
"identity" : "jwt-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "5.0.0",
"upper_bound" : "6.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/jwt-kit.git"
}
],
"manifest_display_name" : "swift-hoods",
"name" : "swift-hoods",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "15.0"
}
],
"products" : [
{
"name" : "Hoods",
"targets" : [
"Hoods"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "HoodsTestsTools",
"targets" : [
"HoodsTestsTools"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "HoodsTestsTools",
"module_type" : "SwiftTarget",
"name" : "HoodsTestsTools",
"path" : "Sources/HoodsTestsTools",
"product_dependencies" : [
"ComposableArchitecture"
],
"product_memberships" : [
"HoodsTestsTools"
],
"sources" : [
"TestDependenciesFactory.swift"
],
"target_dependencies" : [
"Hoods"
],
"type" : "library"
},
{
"c99name" : "HoodsTests",
"module_type" : "SwiftTarget",
"name" : "HoodsTests",
"path" : "Tests/HoodsTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/HoodsTests/Resources/sample-front-matter.md",
"rule" : {
"process" : {
}
}
}
],
"sources" : [
"FrontMatterCMarkTests.swift",
"InputableValueTests.swift",
"JWTFactoryTests.swift",
"MailButtonTests.swift"
],
"target_dependencies" : [
"Hoods",
"HoodsTestsTools"
],
"type" : "test"
},
{
"c99name" : "Hoods",
"module_type" : "SwiftTarget",
"name" : "Hoods",
"path" : "Sources/Hoods",
"product_dependencies" : [
"Blocks",
"ArgumentParser",
"ComposableArchitecture",
"Yams",
"JWTKit"
],
"product_memberships" : [
"Hoods",
"HoodsTestsTools"
],
"sources" : [
"CLITools/InputableValue.swift",
"CMS/FrontMatterCMark.swift",
"Dependencies/CopyText.swift",
"Dependencies/JWTFactory.swift",
"Dependencies/KeychainGateway.swift",
"Extensions/Blocks+Extension.swift",
"KeychainUI/AddKeychainItemFeature.swift",
"KeychainUI/AddKeychainItemView.swift",
"KeychainUI/KeychainUIFeature.swift",
"KeychainUI/KeychainUIView.swift",
"Mailer/MFMailComposeViewController+Extension.swift",
"Mailer/MailButtonFeature.swift",
"Mailer/MailButtonView.swift",
"Mailer/MailerFeature.swift",
"Mailer/MailerView.swift"
],
"type" : "library"
}
],
"tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/dirtyhenry/swift-blocks
[1/2889] Fetching swift-blocks
Fetched https://github.com/dirtyhenry/swift-blocks from cache (0.80s)
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/pointfreeco/swift-composable-architecture
Fetching https://github.com/vapor/jwt-kit.git
[1/10657] Fetching yams
[2666/19706] Fetching yams, jwt-kit
[6374/35092] Fetching yams, jwt-kit, swift-argument-parser
Fetched https://github.com/vapor/jwt-kit.git from cache (1.35s)
Fetched https://github.com/jpsim/Yams.git from cache (1.60s)
[1/303663] Fetching swift-composable-architecture
Fetched https://github.com/apple/swift-argument-parser from cache (15.47s)
Fetched https://github.com/pointfreeco/swift-composable-architecture from cache (15.76s)
Computing version for https://github.com/vapor/jwt-kit.git
Computed https://github.com/vapor/jwt-kit.git at 5.1.2 (16.46s)
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
[577/9991] Fetching swift-log, swift-certificates
[6853/23927] Fetching swift-log, swift-certificates, swift-crypto
Fetched https://github.com/apple/swift-log.git from cache (0.50s)
[7549/20091] Fetching swift-certificates, swift-crypto
Fetched https://github.com/apple/swift-certificates.git from cache (1.49s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.51s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (18.73s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (2.01s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.10.0 (0.66s)
Fetching https://github.com/apple/swift-asn1.git
[1/1590] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.35s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.12.3 (3.28s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (0.76s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.69s)
Computing version for https://github.com/pointfreeco/swift-composable-architecture
Computed https://github.com/pointfreeco/swift-composable-architecture at 1.20.2 (0.76s)
Fetching https://github.com/swiftlang/swift-syntax
Fetching https://github.com/pointfreeco/swift-identified-collections
Fetching https://github.com/pointfreeco/swift-navigation
[1/1534] Fetching swift-identified-collections
[293/46935] Fetching swift-identified-collections, swift-navigation
Fetched https://github.com/pointfreeco/swift-identified-collections from cache (0.52s)
Fetching https://github.com/pointfreeco/swift-dependencies
[5449/45401] Fetching swift-navigation
[14984/115853] Fetching swift-navigation, swift-syntax
[48863/122102] Fetching swift-navigation, swift-syntax, swift-dependencies
Fetched https://github.com/pointfreeco/swift-dependencies from cache (0.74s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[58787/115853] Fetching swift-navigation, swift-syntax
[115854/120434] Fetching swift-navigation, swift-syntax, swift-custom-dump
Fetched https://github.com/pointfreeco/swift-navigation from cache (3.05s)
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (1.99s)
Fetching https://github.com/pointfreeco/swift-case-paths
[1/852] Fetching swift-concurrency-extras
[853/5227] Fetching swift-concurrency-extras, swift-case-paths
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.67s)
Fetching https://github.com/pointfreeco/combine-schedulers
Fetched https://github.com/pointfreeco/swift-case-paths from cache (0.54s)
Fetching https://github.com/apple/swift-collections
[1/2410] Fetching combine-schedulers
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.97s)
[1/16591] Fetching swift-collections
Fetching https://github.com/pointfreeco/swift-perception
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-sharing
Fetched https://github.com/swiftlang/swift-syntax from cache (5.64s)
[12942/19847] Fetching swift-collections, swift-sharing
[19653/21258] Fetching swift-collections, swift-sharing, swift-perception
[21259/26716] Fetching swift-collections, swift-sharing, swift-perception, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-sharing from cache (0.58s)
[20950/23460] Fetching swift-collections, swift-perception, xctest-dynamic-overlay
Fetched https://github.com/apple/swift-collections from cache (2.59s)
Fetched https://github.com/pointfreeco/swift-perception from cache (1.07s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.08s)
Computing version for https://github.com/pointfreeco/swift-navigation
Computed https://github.com/pointfreeco/swift-navigation at 2.3.0 (7.22s)
Computing version for https://github.com/pointfreeco/swift-identified-collections
Computed https://github.com/pointfreeco/swift-identified-collections at 1.1.1 (0.63s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (0.68s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.0.3 (0.66s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.3.1 (0.54s)
Computing version for https://github.com/pointfreeco/swift-case-paths
Computed https://github.com/pointfreeco/swift-case-paths at 1.7.0 (4.13s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.79s)
Computing version for https://github.com/apple/swift-collections
Computed https://github.com/apple/swift-collections at 1.2.0 (1.02s)
Computing version for https://github.com/pointfreeco/swift-perception
Computed https://github.com/pointfreeco/swift-perception at 1.6.0 (0.59s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (0.84s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.9.2 (0.63s)
Fetching https://github.com/pointfreeco/swift-clocks
[1/1292] Fetching swift-clocks
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.32s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.6 (0.78s)
Computing version for https://github.com/pointfreeco/swift-sharing
Computed https://github.com/pointfreeco/swift-sharing at 2.5.2 (0.68s)
Creating working copy for https://github.com/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.0.3
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/dirtyhenry/swift-blocks
Working copy of https://github.com/dirtyhenry/swift-blocks resolved at main (3774722)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-collections
Working copy of https://github.com/apple/swift-collections resolved at 1.2.0
Creating working copy for https://github.com/pointfreeco/swift-clocks
Working copy of https://github.com/pointfreeco/swift-clocks resolved at 1.0.6
Creating working copy for https://github.com/vapor/jwt-kit.git
Working copy of https://github.com/vapor/jwt-kit.git resolved at 5.1.2
Creating working copy for https://github.com/pointfreeco/swift-dependencies
Working copy of https://github.com/pointfreeco/swift-dependencies resolved at 1.9.2
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Creating working copy for https://github.com/pointfreeco/swift-navigation
Working copy of https://github.com/pointfreeco/swift-navigation resolved at 2.3.0
Creating working copy for https://github.com/pointfreeco/swift-sharing
Working copy of https://github.com/pointfreeco/swift-sharing resolved at 2.5.2
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.10.0
Creating working copy for https://github.com/pointfreeco/swift-identified-collections
Working copy of https://github.com/pointfreeco/swift-identified-collections resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.12.3
Creating working copy for https://github.com/pointfreeco/swift-composable-architecture
Working copy of https://github.com/pointfreeco/swift-composable-architecture resolved at 1.20.2
Creating working copy for https://github.com/pointfreeco/swift-case-paths
Working copy of https://github.com/pointfreeco/swift-case-paths resolved at 1.7.0
Creating working copy for https://github.com/pointfreeco/swift-concurrency-extras
Working copy of https://github.com/pointfreeco/swift-concurrency-extras resolved at 1.3.1
Creating working copy for https://github.com/pointfreeco/swift-perception
Working copy of https://github.com/pointfreeco/swift-perception resolved at 1.6.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/454] Write sources
[23/454] Compiling _SwiftSyntaxCShims dummy.c
[24/454] Write sources
[42/454] Copying PrivacyInfo.xcprivacy
[44/454] Write sources
[48/454] Compiling writer.c
[49/454] Write sources
[60/454] Compiling UIKitNavigationShim shim.m
[61/454] Compiling reader.c
[62/454] Compiling fiat_p256_adx_mul.S
[63/454] Compiling fiat_p256_adx_sqr.S
[64/454] Compiling parser.c
[65/454] Compiling fiat_curve25519_adx_square.S
[66/454] Compiling api.c
[67/454] Compiling fiat_curve25519_adx_mul.S
[68/454] Compiling md5-x86_64-linux.S
[69/454] Compiling md5-x86_64-apple.S
[70/454] Compiling scanner.c
[71/454] Compiling md5-586-linux.S
[72/454] Compiling chacha20_poly1305_x86_64-apple.S
[72/454] Compiling md5-586-apple.S
[74/454] Compiling chacha20_poly1305_armv8-win.S
[75/454] Compiling chacha20_poly1305_x86_64-linux.S
[76/454] Compiling chacha20_poly1305_armv8-linux.S
[77/454] Compiling chacha-x86_64-linux.S
[78/454] Compiling emitter.c
[78/454] Write swift-version-24593BA9C3E375BF.txt
[80/454] Compiling chacha20_poly1305_armv8-apple.S
[81/454] Compiling chacha-x86_64-apple.S
[82/454] Compiling CCryptoBoringSSLShims shims.c
[83/454] Compiling chacha-x86-apple.S
[84/454] Compiling chacha-x86-linux.S
[85/454] Compiling chacha-armv8-linux.S
[85/454] Compiling chacha-armv8-win.S
[87/501] Compiling err_data.cc
[89/503] Emitting module Sharing2
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[90/503] Emitting module SwiftSyntax510
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[91/503] Compiling SwiftSyntax510 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[92/504] Emitting module SwiftSyntax509
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[93/504] Compiling SwiftSyntax509 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[94/505] Emitting module SwiftSyntax600
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[95/505] Compiling SwiftSyntax600 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[97/506] Compiling SwiftSyntax601 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[98/506] Emitting module SwiftSyntax601
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[102/547] Compiling IssueReporting IsTesting.swift
[103/547] Compiling IssueReporting IssueReporter.swift
[104/549] Compiling IssueReporting ErrorReporting.swift
[105/549] Compiling IssueReporting AppHostWarning.swift
[106/549] Emitting module InternalCollectionsUtilities
[107/550] Emitting module Sharing1
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[108/550] Compiling Sharing1 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[109/551] Compiling IssueReporting SwiftTesting.swift
[110/551] Compiling IssueReporting UncheckedSendable.swift
[111/551] Compiling IssueReporting Warn.swift
[112/551] Compiling IssueReporting XCTest.swift
[115/551] Compiling IssueReporting LockIsolated.swift
[116/551] Compiling IssueReporting Rethrows.swift
[117/551] Compiling IssueReporting Deprecations.swift
[118/551] Compiling IssueReporting FailureObserver.swift
[119/551] Compiling Sharing2 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[120/552] Compiling SwiftASN1 Errors.swift
[121/552] Compiling Yams YamlAnchorProviding.swift
[122/554] Compiling IssueReporting BreakpointReporter.swift
[123/554] Compiling IssueReporting FatalErrorReporter.swift
[125/554] Emitting module _CertificateInternals
[126/554] Compiling _CertificateInternals _TinyArray.swift
[128/555] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[140/555] Emitting module SwiftASN1
[141/555] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[143/620] Compiling SwiftSyntax SourceEdit.swift
[144/620] Compiling SwiftSyntax SourceLength.swift
[145/670] Compiling Logging MetadataProvider.swift
[146/672] Compiling Blocks JavaScriptISO8601DateFormatter.swift
[147/672] Compiling Blocks Arithmetic.swift
[149/673] Compiling Logging Logging.swift
[150/673] Compiling Logging LogHandler.swift
[151/673] Compiling Logging Locks.swift
[152/673] Emitting module Logging
[154/674] Compiling Blocks CopyUtils.swift
[155/674] Compiling Blocks DataFormatter.swift
[156/674] Compiling Blocks Bundle.swift
[157/674] Compiling Blocks Calendar.swift
[158/674] Compiling Blocks Data.swift
[159/674] Compiling Blocks Font.swift
[159/674] Wrapping AST for SwiftSyntax601 for debugging
[161/674] Compiling Blocks BlocksError.swift
[162/674] Compiling Blocks CLIUtils.swift
[163/674] Compiling Blocks ICalendar.swift
[164/674] Emitting module Yams
[165/674] Compiling Blocks URLComponents.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[166/674] Compiling Blocks JSON.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[168/674] Compiling Blocks JSONDecoder.swift
[169/674] Compiling Blocks JSONEncoder.swift
[170/674] Compiling Blocks StringProtocol.swift
[172/674] Compiling Blocks PackageDump.swift
[172/674] Wrapping AST for SwiftSyntax600 for debugging
[174/674] Compiling ConcurrencyExtras Task.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[174/730] Wrapping AST for SwiftSyntax510 for debugging
[176/730] Compiling OrderedCollections OrderedDictionary+Partial MutableCollection.swift
[177/730] Compiling OrderedCollections OrderedDictionary+Partial RangeReplaceableCollection.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[177/730] Wrapping AST for SwiftSyntax509 for debugging
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
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/Tests/HoodsTests/Hoods.xctestplan
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/368] Compiling aes128gcmsiv-x86_64-linux.S
[2/368] Compiling chacha-armv8-apple.S
[3/368] Compiling aes128gcmsiv-x86_64-apple.S
[4/368] Compiling x86_64-mont-linux.S
[5/368] Compiling chacha-armv4-linux.S
[6/368] Compiling x86_64-mont5-linux.S
[7/368] Compiling x86_64-mont5-apple.S
[8/368] Compiling x86_64-mont-apple.S
[9/368] Compiling x86-mont-linux.S
[10/368] Compiling vpaes-x86_64-linux.S
[11/368] Compiling vpaes-x86_64-apple.S
[12/368] Compiling vpaes-armv8-win.S
[13/368] Compiling x86-mont-apple.S
[13/368] Compiling vpaes-x86-apple.S
[15/368] Compiling vpaes-armv8-linux.S
[16/368] Compiling vpaes-x86-linux.S
[17/368] Compiling vpaes-armv8-apple.S
[18/368] Compiling vpaes-armv7-linux.S
[19/368] Compiling sha512-x86_64-apple.S
[19/368] Compiling sha512-x86_64-linux.S
[21/368] Compiling sha512-armv8-apple.S
[22/368] Compiling sha512-armv4-linux.S
[23/368] Compiling sha512-armv8-linux.S
[24/368] Compiling sha512-armv8-win.S
[25/368] Compiling sha512-586-apple.S
[26/368] Compiling sha256-x86_64-linux.S
[27/368] Compiling sha512-586-linux.S
[28/368] Compiling sha256-x86_64-apple.S
[29/368] Compiling sha256-armv8-linux.S
[30/368] Compiling sha256-armv8-win.S
[31/368] Compiling sha256-armv8-apple.S
[32/368] Compiling sha256-armv4-linux.S
[33/368] Write swift-version-24593BA9C3E375BF.txt
[34/368] Compiling sha256-586-apple.S
[35/368] Compiling sha1-x86_64-linux.S
[36/368] Compiling sha256-586-linux.S
[37/368] Compiling sha1-armv8-linux.S
[38/368] Compiling sha1-armv8-win.S
[39/368] Compiling sha1-x86_64-apple.S
[40/368] Compiling sha1-armv4-large-linux.S
[41/368] Compiling sha1-armv8-apple.S
[43/417] Compiling Sharing2 Empty.swift
[44/417] Compiling SwiftSyntax509 Empty.swift
[45/417] Compiling SwiftSyntax510 Empty.swift
[46/417] Emitting module SwiftSyntax600
[47/417] Compiling SwiftSyntax600 Empty.swift
[48/417] Emitting module SwiftSyntax509
[49/417] Emitting module SwiftSyntax601
[50/417] Compiling SwiftSyntax601 Empty.swift
[51/417] Emitting module SwiftSyntax510
[53/421] Emitting module Sharing2
[58/419] Emitting module _CertificateInternals
[59/459] Compiling IssueReporting Unimplemented.swift
[60/459] Compiling Yams YamlAnchorProviding.swift
[61/461] Compiling Sharing1 Empty.swift
[62/461] Compiling IssueReporting BreakpointReporter.swift
[63/461] Compiling IssueReporting FatalErrorReporter.swift
[64/461] Emitting module Sharing1
[65/461] Compiling Logging MetadataProvider.swift
[66/526] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[67/527] Compiling SwiftSyntax CommonAncestor.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[68/527] Compiling SwiftSyntax Convenience.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[69/527] Compiling SwiftSyntax CustomTraits.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 | // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 | // it uses with `String(format:...)`
307 | let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
| `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 | // "%*.g" does not use scientific notation if the exponent is less than –4.
309 | // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[70/527] Compiling SwiftSyntax SourceLength.swift
[71/527] Compiling SwiftSyntax AbsolutePosition.swift
[72/527] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[73/527] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[75/527] Compiling _CertificateInternals _TinyArray.swift
[76/528] Compiling Logging LogHandler.swift
[77/528] Compiling Logging Locks.swift
[78/528] Compiling SwiftSyntax Identifier.swift
[79/528] Compiling SwiftSyntax MemoryLayout.swift
[80/528] Compiling SwiftSyntax MissingNodeInitializers.swift
[82/530] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[83/530] Compiling SwiftSyntax RawSyntax.swift
[84/530] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[85/530] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[86/530] Compiling SwiftSyntax RawSyntaxTokenView.swift
[87/530] Compiling SwiftSyntax SourceEdit.swift
[88/532] Emitting module Logging
[91/532] Emitting module InternalCollectionsUtilities
[92/543] Compiling ConcurrencyExtras ActorIsolated.swift
[93/543] Compiling ConcurrencyExtras AnyHashableSendable.swift
[94/543] Compiling SwiftASN1 DER.swift
[95/543] Compiling SwiftASN1 Errors.swift
[96/577] Emitting module IssueReporting
[97/577] Compiling Blocks LoggingTransport.swift
[98/577] Compiling Blocks MailtoComponents.swift
[99/577] Compiling Blocks MockTransport.swift
[100/579] Compiling Blocks SimpleMessageError.swift
[101/579] Compiling Blocks Sitemap.swift
[102/579] Compiling Blocks Endpoint.swift
[103/582] Compiling Blocks JavaScriptISO8601DateFormatter.swift
[104/582] Compiling Blocks Arithmetic.swift
[105/582] Compiling Blocks MultipartRequest.swift
[106/582] Compiling Blocks RetryTransport.swift
[107/582] Compiling Blocks StatusCodeCheckingTransport.swift
[108/582] Compiling Blocks TaskState.swift
[113/582] Compiling Blocks PackageDump.swift
[114/582] Compiling Blocks Pasteboard.swift
[119/583] Compiling Blocks Transport.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[120/583] Compiling Blocks TransportError.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[121/583] Compiling Blocks URLRequestHeaderItem.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[122/583] Compiling Blocks LabeledTextField.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[123/583] Compiling Blocks PlainDatePicker.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:27:21: error: cannot find type 'URLRequest' in scope
25 | extension URLSession: Transport {
26 | public func send(
27 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
28 | delegate: URLSessionTaskDelegate?
29 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:28:19: error: cannot find type 'URLSessionTaskDelegate' in scope
26 | public func send(
27 | urlRequest: URLRequest,
28 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
29 | ) async throws -> (Data, HTTPURLResponse) {
30 | let (data, response) = try await self.data(for: urlRequest, delegate: delegate)
[124/589] Emitting module ConcurrencyExtras
[125/589] Compiling Blocks URLComponents.swift
[126/589] Compiling Blocks JSON.swift
[127/589] Compiling ConcurrencyExtras Result.swift
[128/589] Compiling ConcurrencyExtras MainSerialExecutor.swift
[129/589] Compiling ConcurrencyExtras LockIsolated.swift
[130/589] Compiling ConcurrencyExtras Task.swift
[133/589] Compiling Blocks SecurityError.swift
[134/589] Compiling Blocks SecurityUtils.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[139/589] Emitting module Blocks
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
106 |
107 | /// The response body data associated with the error.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:13:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | }
15 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | @available(iOS 15.0.0, *)
24 | @available(macOS 12.0, *)
25 | extension URLSession: Transport {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func send(
27 | urlRequest: URLRequest,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/URLRequestHeaderItem.swift:44:18: error: cannot find type 'URLRequest' in scope
42 |
43 | /// Extension for URLRequest to set custom header fields easily.
44 | public extension URLRequest {
| `- error: cannot find type 'URLRequest' in scope
45 | /// Sets a custom HTTP header field using the provided URLRequestHeaderItem.
46 | ///
[140/589] Emitting module Yams
[141/589] Compiling Blocks BlocksError.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[142/589] Compiling Blocks CLIUtils.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[143/589] Compiling Blocks ICalendar.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[144/589] Compiling Blocks CopyUtils.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[145/589] Compiling Blocks DataFormatter.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
[146/589] Compiling Blocks Bundle.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/CLIUtils/CLIUtils.swift:19:36: error: cannot find 'getpass' in scope
17 | public static func readLine(prompt: String, secure: Bool) -> String? {
18 | if secure {
19 | return String(cString: getpass(prompt))
| `- error: cannot find 'getpass' in scope
20 | } else {
21 | print(prompt)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let response {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
106 |
107 | /// The response body data associated with the error.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let response {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
106 |
107 | /// The response body data associated with the error.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let response {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
106 |
107 | /// The response body data associated with the error.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let response {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
106 |
107 | /// The response body data associated with the error.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:10:19: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | public final class MockTransport: Transport {
9 | let data: Data
10 | let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:12:74: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | let response: HTTPURLResponse?
11 |
12 | public init(data: Data = Data("Hello MockTransport".utf8), response: HTTPURLResponse? = nil) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | self.data = data
14 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:18:21: error: cannot find type 'URLRequest' in scope
16 |
17 | public func send(
18 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:19:21: error: cannot find type 'URLSessionTaskDelegate' in scope
17 | public func send(
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:20:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
18 | urlRequest: URLRequest,
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
21 | let actualResponse: HTTPURLResponse
22 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:21:29: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | delegate _: URLSessionTaskDelegate?
20 | ) async throws -> (Data, HTTPURLResponse) {
21 | let actualResponse: HTTPURLResponse
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 |
23 | if let response {
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:27:38: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
25 | } else {
26 | guard let fallbackURL = URL(string: "https://foo.tld/bar"),
27 | let httpResponse = HTTPURLResponse(
| `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:30:36: error: 'nil' requires a contextual type
28 | url: urlRequest.url ?? fallbackURL,
29 | statusCode: 200,
30 | httpVersion: nil,
| `- error: 'nil' requires a contextual type
31 | headerFields: nil
32 | )
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/MockTransport.swift:31:37: error: 'nil' requires a contextual type
29 | statusCode: 200,
30 | httpVersion: nil,
31 | headerFields: nil
| `- error: 'nil' requires a contextual type
32 | )
33 | else {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:45:21: error: cannot find type 'URLRequest' in scope
43 | /// - Throws: An error if the request fails after retry attempts.
44 | public func send(
45 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:46:19: error: cannot find type 'URLSessionTaskDelegate' in scope
44 | public func send(
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
47 | ) async throws -> (Data, HTTPURLResponse) {
48 | var nbAttempts = 0
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/RetryTransport.swift:47:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
45 | urlRequest: URLRequest,
46 | delegate: URLSessionTaskDelegate?
47 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | var nbAttempts = 0
49 | var errors: [Error] = []
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:75:21: error: cannot find type 'URLRequest' in scope
73 | /// - Throws: A `WrongStatusCodeError` if the actual status code does not match the expected range.
74 | public func send(
75 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:76:19: error: cannot find type 'URLSessionTaskDelegate' in scope
74 | public func send(
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
77 | ) async throws -> (Data, HTTPURLResponse) {
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:77:30: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 | urlRequest: URLRequest,
76 | delegate: URLSessionTaskDelegate?
77 | ) async throws -> (Data, HTTPURLResponse) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | let (data, httpResponse) = try await wrapped.send(urlRequest: urlRequest, delegate: delegate)
79 |
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
106 |
107 | /// The response body data associated with the error.
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:115:44: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
113 | /// - response: The HTTP URL response associated with the error.
114 | /// - responseBody: The response body data associated with the error.
115 | public init(statusCode: Int, response: HTTPURLResponse?, responseBody: Data?) {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
116 | self.statusCode = statusCode
117 | self.response = response
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/StatusCodeCheckingTransport.swift:105:16: error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
103 |
104 | /// The HTTP URL response associated with the error.
105 | public let response: HTTPURLResponse?
| `- error: stored property 'response' of 'Sendable'-conforming struct 'WrongStatusCodeError' has non-sendable type 'HTTPURLResponse?' (aka 'Optional<AnyObject>')
106 |
107 | /// The response body data associated with the error.
[152/589] Compiling Blocks PKCE.swift
[156/589] Compiling ConcurrencyExtras UncheckedSendable.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:30:25: error: cannot find type 'URLRequest' in scope
28 |
29 | /// The request for this endpoint
30 | public var request: URLRequest
| `- error: cannot find type 'URLRequest' in scope
31 |
32 | /// This is used to (try to) parse a response into an `A`.
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:33:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
31 |
32 | /// This is used to (try to) parse a response into an `A`.
33 | var parse: @Sendable (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
34 |
35 | /// Transforms the result
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:68:44: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
66 | headers: [URLRequestHeaderItem] = [],
67 | query: [URLQueryItem] = [],
68 | parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
69 | ) {
70 | var requestUrl: URL
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:26: error: cannot find type 'URLRequest' in scope
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: cannot find type 'URLRequest' in scope
104 | self.request = request
105 | self.parse = parse
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:103:73: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
101 | /// - expectedStatusCode: the status code that's expected. If this returns false for a given status code, parsing fails.
102 | /// - parse: this converts a response into an `A`.
103 | public init(request: URLRequest, parse: @Sendable @escaping (Data?, URLResponse?) -> Result<A, Error>) {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
104 | self.request = request
105 | self.parse = parse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:20: error: extraneous argument label 'request:' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: extraneous argument label 'request:' in call
38 | parse(value, response).map(f)
39 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:37:37: error: missing argument for parameter 'url' in call
35 | /// Transforms the result
36 | public func map<B>(_ f: @Sendable @escaping (A) -> B) -> Endpoint<B> {
37 | Endpoint<B>(request: request, parse: { value, response in
| `- error: missing argument for parameter 'url' in call
38 | parse(value, response).map(f)
39 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:20: error: extraneous argument label 'request:' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: extraneous argument label 'request:' in call
45 | parse(data, response).flatMap(transform)
46 | })
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:44:37: error: missing argument for parameter 'url' in call
42 | /// Transforms the result
43 | public func compactMap<B>(_ transform: @Sendable @escaping (A) -> Result<B, Error>) -> Endpoint<B> {
44 | Endpoint<B>(request: request, parse: { data, response in
| `- error: missing argument for parameter 'url' in call
45 | parse(data, response).flatMap(transform)
46 | })
:
58 | /// - query: query parameters to append to the url
59 | /// - parse: this converts a response into an `A`.
60 | public init(
| `- note: 'init(_:url:accept:contentType:body:headers:query:parse:)' declared here
61 | _ method: Method,
62 | url: URL,
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:79:19: error: cannot find 'URLRequest' in scope
77 | requestUrl = comps.url!
78 | }
79 | request = URLRequest(url: requestUrl)
| `- error: cannot find 'URLRequest' in scope
80 | if let a = accept {
81 | request.setValue(a.rawValue, forHTTPHeaderField: "Accept")
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:11:21: error: cannot find type 'URLRequest' in scope
9 | public protocol Transport {
10 | func send(
11 | urlRequest: URLRequest,
| `- error: cannot find type 'URLRequest' in scope
12 | delegate: URLSessionTaskDelegate?
13 | ) async throws -> (Data, HTTPURLResponse)
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Transport.swift:12:19: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | func send(
11 | urlRequest: URLRequest,
12 | delegate: URLSessionTaskDelegate?
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 | ) async throws -> (Data, HTTPURLResponse)
14 | }
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Transport/Endpoint.swift:245:91: error: 'nil' requires a contextual type
243 | @discardableResult
244 | func load<A>(_ endpoint: Endpoint<A>) async throws -> A {
245 | let (data, httpResponse) = try await send(urlRequest: endpoint.request, delegate: nil)
| `- error: 'nil' requires a contextual type
246 | let result = endpoint.parse(data, httpResponse)
247 | return try result.get()
[168/590] Compiling Blocks PlainDate.swift
[169/590] Compiling Blocks GenericPasswordKeychainItem.swift
[173/590] Compiling Blocks Calendar.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[174/590] Compiling Blocks Data.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[175/590] Compiling Blocks Font.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[176/590] Compiling Blocks JSONDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[177/590] Compiling Blocks JSONEncoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[178/590] Compiling Blocks StringProtocol.swift
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:35: error: cannot find 'applyingTransform' in scope
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot find 'applyingTransform' in scope
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
/host/spi-builder-workspace/.build/checkouts/swift-blocks/Sources/Blocks/Extensions/StringProtocol.swift:38:54: error: cannot infer contextual base in reference to member 'toUnicodeName'
36 |
37 | if !isEmpty, slug.isEmpty {
38 | if let extendedSelf = applyingTransform(.toUnicodeName, reverse: false)?
| `- error: cannot infer contextual base in reference to member 'toUnicodeName'
39 | .replacingOccurrences(of: "\\N", with: ""), self != extendedSelf {
40 | return extendedSelf.slugify()
[189/648] Wrapping AST for SwiftSyntax509 for debugging
[191/648] Emitting module ArgumentParserToolInfo
[192/651] Compiling OrderedCollections OrderedDictionary.swift
[193/651] Compiling OrderedCollections OrderedSet+Codable.swift
[194/651] Compiling Logging Logging.swift
[195/652] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[196/652] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[197/652] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[198/652] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[199/652] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[200/652] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[201/652] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSuperset.swift
[203/659] Compiling XCTestDynamicOverlay Exports.swift
[204/659] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtract.swift
[205/659] Compiling OrderedCollections OrderedSet+Partial SetAlgebra subtracting.swift
[206/659] Compiling OrderedCollections OrderedSet+Partial SetAlgebra symmetricDifference.swift
[207/659] Compiling OrderedCollections OrderedSet+Partial SetAlgebra union.swift
[208/659] Compiling OrderedCollections OrderedSet+Partial SetAlgebra+Basics.swift
[209/659] Compiling OrderedCollections OrderedSet+RandomAccessCollection.swift
[210/659] Compiling OrderedCollections OrderedSet+ReserveCapacity.swift
[211/659] Emitting module XCTestDynamicOverlay
[212/659] Compiling OrderedCollections _HashTable+Bucket.swift
[213/659] Compiling OrderedCollections _HashTable+BucketIterator.swift
[214/659] Compiling OrderedCollections _HashTable+Constants.swift
[215/659] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[216/659] Compiling OrderedCollections _HashTable+Testing.swift
[217/659] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[218/659] Emitting module SwiftASN1
BUILD FAILURE 6.1 wasm