Build Information
Failed to build swift-network-request, reference main (8bc0fe), with Swift 6.1 for Linux on 27 Feb 2026 01:09:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vadimkrutovlv/swift-network-request.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/vadimkrutovlv/swift-network-request
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 8bc0fef Add Xcode 26 support (#2)
Cloned https://github.com/vadimkrutovlv/swift-network-request.git
Revision (git rev-parse @):
8bc0fef8fbb0f50a11a650d3e08c56008122e3e2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vadimkrutovlv/swift-network-request.git at main
========================================
Build
========================================
Selected platform: linux
Swift version: 6.1
Building package at path: $PWD
https://github.com/vadimkrutovlv/swift-network-request.git
https://github.com/vadimkrutovlv/swift-network-request.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-syntax",
"requirement" : {
"range" : [
{
"lower_bound" : "509.0.0",
"upper_bound" : "603.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-syntax.git"
},
{
"identity" : "swift-macro-testing",
"requirement" : {
"range" : [
{
"lower_bound" : "0.6.3",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-macro-testing"
},
{
"identity" : "swift-dependencies",
"requirement" : {
"exact" : [
"1.9.2"
]
},
"type" : "sourceControl",
"url" : "https://github.com/pointfreeco/swift-dependencies"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"range" : [
{
"lower_bound" : "1.1.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swiftlang/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-network-request",
"name" : "swift-network-request",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
},
{
"name" : "ios",
"version" : "16.0"
},
{
"name" : "tvos",
"version" : "13.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "SwiftNetworkRequest",
"targets" : [
"SwiftNetworkRequest"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "SwiftNetworkRequestMacros",
"targets" : [
"SwiftNetworkRequestMacros"
],
"type" : {
"macro" : null
}
}
],
"targets" : [
{
"c99name" : "SwiftNetworkRequestTests",
"module_type" : "SwiftTarget",
"name" : "SwiftNetworkRequestTests",
"path" : "Tests/SwiftNetworkRequestTests",
"product_dependencies" : [
"SwiftSyntaxMacrosTestSupport",
"MacroTesting"
],
"sources" : [
"BaseNetworkRequest.swift",
"DefaultAuthorizationTests.swift",
"DeleteMacroTests.swift",
"DynamicResponsesTests.swift",
"GetMacroTests.swift",
"Mocks/URLSessionMock.swift",
"PostMacroTests.swift",
"PutMacroTests.swift"
],
"target_dependencies" : [
"SwiftNetworkRequest",
"SwiftNetworkRequestMacros"
],
"type" : "test"
},
{
"c99name" : "SwiftNetworkRequestMacros",
"module_type" : "SwiftTarget",
"name" : "SwiftNetworkRequestMacros",
"path" : "Sources/SwiftNetworkRequestMacros",
"product_dependencies" : [
"SwiftSyntaxMacros",
"SwiftCompilerPlugin"
],
"product_memberships" : [
"SwiftNetworkRequest",
"SwiftNetworkRequestMacros"
],
"sources" : [
"Helpers.swift",
"Models.swift",
"Plugin.swift",
"RequestBuilder.swift",
"RequestMacros.swift"
],
"type" : "macro"
},
{
"c99name" : "SwiftNetworkRequest",
"module_type" : "SwiftTarget",
"name" : "SwiftNetworkRequest",
"path" : "Sources/SwiftNetworkRequest",
"product_dependencies" : [
"Dependencies"
],
"product_memberships" : [
"SwiftNetworkRequest"
],
"sources" : [
"DI/RequestAuthorization.swift",
"DI/URLSession.swift",
"Helpers/URLSession+Request.swift",
"Macros/Delete.swift",
"Macros/Get.swift",
"Macros/HelperMacros.swift",
"Macros/Post.swift",
"Macros/Put.swift",
"Models/DynamicAPIResponse.swift",
"Models/KeyValuePair.swift",
"Models/RequestConfig.swift"
],
"target_dependencies" : [
"SwiftNetworkRequestMacros"
],
"type" : "library"
}
],
"tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8e1c3aab9de7fa4f6e33977b6a4cee007e876da3e605dda0be6b9b9bf86aa951
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/pointfreeco/swift-dependencies
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/pointfreeco/swift-macro-testing
[1/962] Fetching swift-macro-testing
[88/7593] Fetching swift-macro-testing, swift-dependencies
[2886/9764] Fetching swift-macro-testing, swift-dependencies, swift-docc-plugin
Fetched https://github.com/pointfreeco/swift-macro-testing from cache (0.37s)
[3643/8802] Fetching swift-dependencies, swift-docc-plugin
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.55s)
[1/74492] Fetching swift-syntax
Fetched https://github.com/pointfreeco/swift-dependencies from cache (6.24s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (6.30s)
Computing version for https://github.com/pointfreeco/swift-dependencies
Computed https://github.com/pointfreeco/swift-dependencies at 1.9.2 (7.19s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
Fetching https://github.com/pointfreeco/swift-concurrency-extras
Fetching https://github.com/pointfreeco/swift-clocks
Fetching https://github.com/pointfreeco/combine-schedulers
[1/886] Fetching swift-concurrency-extras
[887/2203] Fetching swift-concurrency-extras, swift-clocks
[1085/4753] Fetching swift-concurrency-extras, swift-clocks, combine-schedulers
[4754/10471] Fetching swift-concurrency-extras, swift-clocks, combine-schedulers, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-concurrency-extras from cache (0.32s)
[4325/9585] Fetching swift-clocks, combine-schedulers, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/combine-schedulers from cache (0.34s)
[2061/7035] Fetching swift-clocks, xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/swift-clocks from cache (0.67s)
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.69s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.6.4 (1.26s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/15774] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing from cache (2.96s)
Computing version for https://github.com/pointfreeco/swift-clocks
Computed https://github.com/pointfreeco/swift-clocks at 1.0.6 (3.50s)
Computing version for https://github.com/pointfreeco/combine-schedulers
Computed https://github.com/pointfreeco/combine-schedulers at 1.1.0 (0.62s)
Fetching https://github.com/OpenCombine/OpenCombine.git
[1/8284] Fetching opencombine
Fetched https://github.com/OpenCombine/OpenCombine.git from cache (0.54s)
Computing version for https://github.com/OpenCombine/OpenCombine.git
Computed https://github.com/OpenCombine/OpenCombine.git at 0.14.0 (3.18s)
Computing version for https://github.com/pointfreeco/swift-concurrency-extras
Computed https://github.com/pointfreeco/swift-concurrency-extras at 1.3.2 (0.57s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.6 (0.64s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3663] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.42s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.42s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (0.78s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.9.0 (0.53s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.18.9 (0.72s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5308] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (0.40s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.4.1 (1.04s)
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.2
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.6.4
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.4.1
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/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.18.9
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.9.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/OpenCombine/OpenCombine.git
Working copy of https://github.com/OpenCombine/OpenCombine.git resolved at 0.14.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/pointfreeco/combine-schedulers
Working copy of https://github.com/pointfreeco/combine-schedulers resolved at 1.1.0
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/64] Write sources
[42/64] Compiling _SwiftSyntaxCShims dummy.c
[43/64] Write swift-version-24593BA9C3E375BF.txt
[44/94] Compiling COpenCombineHelpers COpenCombineHelpers.cpp
[47/98] Emitting module ConcurrencyExtras
[48/99] Emitting module SwiftSyntax600
[49/99] Compiling SwiftSyntax600 Empty.swift
[50/100] Compiling ConcurrencyExtras UncheckedSendable.swift
[51/100] Emitting module SwiftSyntax510
[52/100] Compiling SwiftSyntax510 Empty.swift
[55/211] Emitting module IssueReportingPackageSupport
[56/213] Compiling IssueReportingPackageSupport _Test.swift
[57/270] Compiling ConcurrencyExtras Result.swift
[58/286] Compiling OpenCombine Publishers.Count.swift
[59/286] Compiling OpenCombine Publishers.Debounce.swift
[60/287] Emitting module IssueReportingPackageSupport
[61/287] Compiling IssueReportingPackageSupport _Test.swift
[62/287] Emitting module SwiftSyntax509
[63/288] Compiling SwiftSyntax509 Empty.swift
[64/288] Emitting module SwiftSyntax601
[65/288] Compiling SwiftSyntax601 Empty.swift
[70/290] Compiling ConcurrencyExtras UncheckedSendable.swift
[70/290] Wrapping AST for SwiftSyntax600 for debugging
[71/290] Wrapping AST for SwiftSyntax510 for debugging
[72/290] Wrapping AST for SwiftSyntax509 for debugging
[73/291] Wrapping AST for SwiftSyntax601 for debugging
[75/394] Compiling IssueReporting DefaultReporter.swift
[76/394] Compiling IssueReporting FatalErrorReporter.swift
[77/396] Compiling IssueReporting XCTest.swift
[78/396] Compiling IssueReporting IsTesting.swift
[79/396] Compiling IssueReporting TestContext.swift
[80/396] Compiling IssueReporting Unimplemented.swift
[81/396] Compiling IssueReporting IssueSeverity.swift
[82/396] Compiling IssueReporting ReportIssue.swift
[83/398] Emitting module IssueReporting
[85/398] Compiling IssueReporting WithExpectedIssue.swift
[86/398] Compiling IssueReporting WithIssueContext.swift
[87/398] Compiling IssueReporting Rethrows.swift
[88/398] Compiling IssueReporting ErrorReporting.swift
[89/398] Compiling ConcurrencyExtras Task.swift
[92/398] Compiling IssueReporting FailureObserver.swift
[93/398] Compiling IssueReporting LockIsolated.swift
[96/398] Compiling ConcurrencyExtras LockIsolated.swift
[97/398] Compiling ConcurrencyExtras MainSerialExecutor.swift
[98/398] Compiling IssueReporting BreakpointReporter.swift
[104/398] Compiling ConcurrencyExtras Result.swift
[105/398] Compiling ConcurrencyExtras Task.swift
[106/398] Compiling ConcurrencyExtras LockIsolated.swift
[107/398] Compiling IssueReporting AppHostWarning.swift
[108/398] Compiling IssueReporting Deprecations.swift
[109/398] Compiling ConcurrencyExtras MainSerialExecutor.swift
[110/399] Compiling IssueReporting SwiftTesting.swift
[111/399] Compiling IssueReporting UncheckedSendable.swift
[112/399] Compiling IssueReporting Warn.swift
[116/399] Emitting module ConcurrencyExtras
[119/400] Emitting module OpenCombine
[120/400] Compiling IssueReporting IssueReporter.swift
[141/414] Emitting module OpenCombine
[143/426] Compiling SwiftSyntax SyntaxIdentifier.swift
[144/426] Compiling SwiftSyntax SyntaxNodeFactory.swift
[145/426] Compiling SwiftSyntax SyntaxNodeStructure.swift
[146/426] Compiling SwiftSyntax SyntaxProtocol.swift
[147/426] Compiling SwiftSyntax SyntaxText.swift
[148/426] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[149/426] Compiling SwiftSyntax TokenDiagnostic.swift
[150/426] Compiling SwiftSyntax TokenSequence.swift
[151/426] Compiling SwiftSyntax TokenSyntax.swift
[152/457] Compiling Clocks Timer.swift
[153/458] Compiling XCTestDynamicOverlay Exports.swift
[154/458] Emitting module Clocks
[155/458] Compiling XCTestDynamicOverlay Exports.swift
[156/458] Compiling Clocks Timer.swift
[157/459] Compiling SwiftSyntax SyntaxHashable.swift
[167/459] Compiling SwiftSyntax Trivia.swift
[168/459] Compiling SwiftSyntax Utils.swift
[169/459] Compiling SwiftSyntax ChildNameForKeyPath.swift
[178/459] Compiling SwiftSyntax Syntax.swift
[179/459] Compiling SwiftSyntax SyntaxArena.swift
[180/459] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[181/459] Compiling SwiftSyntax SyntaxChildren.swift
[182/459] Compiling SwiftSyntax SyntaxCollection.swift
[183/459] Compiling SwiftSyntax TriviaPieces.swift
[184/459] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[185/459] Compiling SwiftSyntax RawSyntaxNodesC.swift
[186/459] Compiling SwiftSyntax RawSyntaxNodesD.swift
[187/459] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[188/459] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[189/459] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[190/459] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[191/459] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[192/459] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[193/459] Compiling SwiftSyntax RawSyntaxValidation.swift
[194/459] Compiling SwiftSyntax SyntaxNodesAB.swift
[195/459] Compiling SwiftSyntax SyntaxNodesC.swift
[196/459] Compiling SwiftSyntax Keyword.swift
[197/459] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[198/459] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[199/459] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[200/459] Compiling SwiftSyntax SyntaxBaseNodes.swift
[201/459] Compiling SwiftSyntax SyntaxCollections.swift
[202/459] Compiling SwiftSyntax SyntaxEnum.swift
[203/459] Compiling SwiftSyntax SyntaxKind.swift
[204/459] Compiling SwiftSyntax SyntaxRewriter.swift
[205/459] Compiling SwiftSyntax SyntaxTraits.swift
[206/459] Compiling SwiftSyntax SyntaxVisitor.swift
[207/459] Compiling SwiftSyntax TokenKind.swift
[208/459] Compiling SwiftSyntax Tokens.swift
[287/459] Emitting module Clocks
[288/459] Compiling Clocks AnyClock.swift
[289/459] Compiling Clocks _AsyncTimerSequence.swift
[290/459] Compiling Clocks Lock.swift
[291/459] Compiling Clocks SwiftUI.swift
[292/459] Compiling Clocks TestClock.swift
[293/459] Compiling OpenCombine Result.swift
[294/459] Compiling OpenCombine Scheduler.swift
[295/459] Compiling OpenCombine Subject+Void.swift
[296/459] Compiling OpenCombine Subscriber+Void.swift
[297/459] Compiling OpenCombine Subscribers.Assign.swift
[298/459] Compiling OpenCombine Subscribers.Completion.swift
[299/459] Compiling OpenCombine Subscribers.Demand.swift
[300/459] Compiling OpenCombine Subscribers.Sink.swift
[301/459] Compiling OpenCombine Subscribers.swift
[302/459] Compiling OpenCombine Subscription.swift
[303/459] Compiling OpenCombine Subscriptions.swift
[304/459] Compiling OpenCombine _Introspection.swift
[305/459] Compiling Clocks AnyClock.swift
[306/459] Compiling Clocks ImmediateClock.swift
[307/459] Compiling Clocks SwiftUI.swift
[308/459] Compiling Clocks _AsyncTimerSequence.swift
[309/459] Compiling Clocks Lock.swift
[310/459] Compiling Clocks ImmediateClock.swift
[311/459] Compiling Clocks TestClock.swift
[324/459] Compiling Clocks UnimplementedClock.swift
[326/461] Emitting module XCTestDynamicOverlay
[327/461] Compiling XCTestDynamicOverlay Deprecations.swift
[328/461] Emitting module XCTestDynamicOverlay
[329/462] Compiling XCTestDynamicOverlay Deprecations.swift
[334/463] Compiling OpenCombine Publishers.Retry.swift
[335/463] Compiling OpenCombine Publishers.Scan.swift
[336/463] Compiling OpenCombine Publishers.Sequence.swift
[337/463] Compiling OpenCombine Publishers.SetFailureType.swift
[338/463] Compiling OpenCombine Publishers.Share.swift
[339/463] Compiling OpenCombine Publishers.SubscribeOn.swift
[340/463] Compiling OpenCombine Publishers.SwitchToLatest.swift
[341/463] Compiling OpenCombine Publishers.Throttle.swift
[342/463] Compiling OpenCombine Publishers.Timeout.swift
[343/463] Compiling OpenCombine Publishers.Zip.swift
[344/463] Compiling OpenCombine Publishers.swift
[345/463] Compiling OpenCombine Record.swift
[346/463] Compiling OpenCombine Result.Publisher.swift
[347/463] Compiling SwiftSyntax SyntaxNodesD.swift
[348/463] Compiling SwiftSyntax SyntaxNodesEF.swift
[349/463] Compiling SwiftSyntax SyntaxNodesGHI.swift
[350/463] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[351/463] Compiling SwiftSyntax SyntaxNodesOP.swift
[352/463] Compiling SwiftSyntax SyntaxNodesQRS.swift
[353/463] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[354/463] Compiling OpenCombine Publishers.Print.swift
[355/463] Compiling OpenCombine Publishers.ReceiveOn.swift
[356/463] Compiling OpenCombine Publishers.Reduce.swift
[357/463] Compiling OpenCombine Publishers.RemoveDuplicates.swift
[358/463] Compiling OpenCombine Publishers.ReplaceEmpty.swift
[359/463] Compiling OpenCombine Publishers.ReplaceError.swift
[388/478] Compiling OpenCombineFoundation Locking.swift
[389/478] Compiling OpenCombineFoundation Portability.swift
[390/478] Compiling OpenCombineFoundation Utils.swift
[391/478] Compiling OpenCombineFoundation Violations.swift
[392/478] Compiling OpenCombineFoundation JSONEncoder.swift
[393/478] Compiling OpenCombineFoundation NotificationCenter.swift
[415/491] Emitting module OpenCombineDispatch
[416/491] Compiling OpenCombineDispatch DispatchQueue+Scheduler.swift
[418/492] Emitting module OpenCombineDispatch
[419/492] Compiling OpenCombineDispatch DispatchQueue+Scheduler.swift
[421/493] Compiling OpenCombineFoundation PropertyListEncoder.swift
[423/495] Emitting module OpenCombineFoundation
[424/495] Compiling OpenCombineFoundation Locking.swift
[425/495] Compiling OpenCombineFoundation Portability.swift
[426/495] Compiling OpenCombineFoundation Timer+Publisher.swift
[428/495] Emitting module OpenCombineFoundation
[429/495] Compiling OpenCombineFoundation RunLoop+Scheduler.swift
[430/495] Compiling OpenCombineFoundation JSONEncoder.swift
[431/495] Compiling OpenCombineFoundation NotificationCenter.swift
[432/495] Compiling OpenCombineFoundation Utils.swift
[433/495] Compiling OpenCombineFoundation Violations.swift
[436/495] Compiling OpenCombineFoundation RunLoop+Scheduler.swift
[441/495] Compiling OpenCombineFoundation OperationQueue+Scheduler.swift
[442/495] Compiling OpenCombineFoundation URLSession.swift
[444/496] Compiling OpenCombineFoundation OperationQueue+Scheduler.swift
[447/501] Compiling OpenCombineShim OpenCombineShim.swift
[448/501] Emitting module OpenCombineShim
[449/502] Compiling OpenCombineShim OpenCombineShim.swift
[450/502] Emitting module OpenCombineShim
[453/529] Compiling CombineSchedulers UIScheduler.swift
[454/529] Compiling CombineSchedulers UIKit.swift
[455/530] Compiling CombineSchedulers UIScheduler.swift
[456/530] Compiling CombineSchedulers UIKit.swift
[457/531] Compiling CombineSchedulers Lock.swift
[458/531] Compiling CombineSchedulers NSRecursiveLock.swift
[459/531] Emitting module CombineSchedulers
[462/531] Compiling CombineSchedulers ImmediateScheduler.swift
[463/531] Compiling CombineSchedulers Deprecations.swift
[464/531] Compiling CombineSchedulers AnyScheduler.swift
[465/531] Compiling CombineSchedulers Concurrency.swift
[466/531] Emitting module CombineSchedulers
[471/531] Compiling CombineSchedulers UnimplementedScheduler.swift
[473/531] Compiling CombineSchedulers Platform.swift
[474/531] Compiling CombineSchedulers SwiftUI.swift
[475/531] Compiling CombineSchedulers TestScheduler.swift
[476/531] Compiling CombineSchedulers Timer.swift
[483/579] Compiling Dependencies Context.swift
[484/579] Compiling Dependencies Date.swift
[485/579] Compiling Dependencies FireAndForget.swift
[486/579] Compiling Dependencies Locale.swift
[487/579] Compiling Dependencies MainQueue.swift
[488/579] Compiling Dependencies MainRunLoop.swift
[489/582] Compiling Dependencies OpenURL.swift
[490/582] Compiling Dependencies TimeZone.swift
[491/582] Compiling Dependencies URLSession.swift
[492/582] Compiling Dependencies UUID.swift
[493/582] Compiling Dependencies WithRandomNumberGenerator.swift
[494/582] Compiling Dependencies AppEntryPoint.swift
[495/582] Compiling Dependencies Deprecations.swift
[496/582] Compiling Dependencies Exports.swift
[497/582] Compiling Dependencies TypeName.swift
[498/582] Compiling Dependencies Assert.swift
[499/582] Compiling Dependencies Calendar.swift
[500/582] Compiling Dependencies Clocks.swift
[501/582] Compiling Dependencies Dependency.swift
[502/582] Compiling Dependencies DependencyContext.swift
[503/582] Compiling Dependencies DependencyKey.swift
[504/585] Emitting module Dependencies
[511/585] Emitting module SwiftSyntax
[512/585] Compiling Dependencies PreviewTrait.swift
[513/585] Compiling Dependencies TestTrait.swift
[514/585] Compiling Dependencies WithDependencies.swift
[521/585] Compiling Dependencies DependencyValues.swift
[536/586] Emitting module Dependencies
[574/588] Wrapping AST for SwiftSyntax for debugging
[576/646] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[577/646] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[578/646] Compiling SwiftBasicFormat Syntax+Extensions.swift
[579/646] Compiling SwiftParser Attributes.swift
[580/646] Compiling SwiftParser Availability.swift
[581/647] Emitting module SwiftDiagnostics
[582/647] Compiling SwiftDiagnostics Message.swift
[583/647] Compiling SwiftParser CharacterInfo.swift
[584/647] Compiling SwiftParser CollectionNodes+Parsable.swift
[585/647] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[586/647] Compiling SwiftDiagnostics Note.swift
[587/647] Compiling SwiftBasicFormat InferIndentation.swift
[588/647] Compiling SwiftDiagnostics FixIt.swift
[589/647] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[590/647] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[592/648] Compiling SwiftBasicFormat Indenter.swift
[593/648] Emitting module SwiftBasicFormat
[594/648] Compiling SwiftBasicFormat BasicFormat.swift
[594/648] Wrapping AST for SwiftDiagnostics for debugging
[596/649] Wrapping AST for SwiftBasicFormat for debugging
[598/649] Compiling SwiftParser LexemeSequence.swift
[599/649] Compiling SwiftParser Lexer.swift
[600/649] Compiling SwiftParser RegexLiteralLexer.swift
[601/649] Compiling SwiftParser UnicodeScalarExtensions.swift
[602/649] Compiling SwiftParser Lookahead.swift
[603/649] Compiling SwiftParser LoopProgressCondition.swift
[604/649] Compiling SwiftParser Modifiers.swift
[605/649] Compiling SwiftParser Names.swift
[606/649] Compiling SwiftParser Nominals.swift
[607/649] Compiling SwiftParser Parameters.swift
[608/649] Compiling SwiftParser ParseSourceFile.swift
[609/649] Compiling SwiftParser Parser.swift
[610/649] Compiling SwiftParser Patterns.swift
[611/649] Compiling SwiftParser Recovery.swift
[612/649] Compiling SwiftParser Specifiers.swift
[613/649] Compiling SwiftParser Statements.swift
[614/649] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[615/649] Compiling SwiftParser StringLiterals.swift
[616/654] Compiling SwiftParser SwiftParserCompatibility.swift
[617/654] Compiling SwiftParser SwiftVersion.swift
[618/654] Compiling SwiftParser SyntaxUtils.swift
[619/654] Compiling SwiftParser TokenConsumer.swift
[620/654] Compiling SwiftParser TokenPrecedence.swift
[621/654] Compiling SwiftParser TokenSpec.swift
[622/654] Compiling SwiftParser TokenSpecSet.swift
[623/654] Compiling SwiftParser TopLevel.swift
[624/654] Compiling SwiftParser TriviaParser.swift
[625/654] Compiling SwiftParser Types.swift
[626/654] Emitting module SwiftParser
[631/654] Compiling SwiftParser Declarations.swift
[632/654] Compiling SwiftParser Directives.swift
[633/654] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[634/654] Compiling SwiftParser Expressions.swift
[635/654] Compiling SwiftParser IncrementalParseTransition.swift
[636/654] Compiling SwiftParser IsValidIdentifier.swift
[637/654] Compiling SwiftParser Cursor.swift
[638/654] Compiling SwiftParser Lexeme.swift
[639/654] Compiling SwiftParser ExperimentalFeatures.swift
[640/654] Compiling SwiftParser IsLexerClassified.swift
[641/654] Compiling SwiftParser LayoutNodes+Parsable.swift
[642/654] Compiling SwiftParser Parser+TokenSpecSet.swift
[643/654] Compiling SwiftParser TokenSpecStaticMembers.swift
[644/655] Wrapping AST for SwiftParser for debugging
[646/678] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[647/679] Compiling SwiftOperators PrecedenceGroup.swift
[648/680] Compiling SwiftOperators PrecedenceGraph.swift
[649/680] Compiling SwiftOperators SyntaxSynthesis.swift
[650/680] Compiling SwiftOperators OperatorTable.swift
[651/680] Compiling SwiftOperators OperatorTable+Semantics.swift
[652/680] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[653/680] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[654/680] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[655/680] Emitting module SwiftOperators
[656/680] Compiling SwiftOperators OperatorTable+Folding.swift
[657/680] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[658/680] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[660/681] Emitting module SwiftParserDiagnostics
[661/681] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[662/681] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[663/681] Compiling SwiftParserDiagnostics Utils.swift
[666/681] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[667/681] Compiling SwiftParserDiagnostics PresenceUtils.swift
[668/681] Compiling SwiftParserDiagnostics MissingNodesError.swift
[669/681] Compiling SwiftParserDiagnostics MissingTokenError.swift
[672/682] Wrapping AST for SwiftOperators for debugging
[673/682] Wrapping AST for SwiftParserDiagnostics for debugging
[675/697] Compiling SwiftSyntaxBuilder Indenter.swift
[676/697] Compiling SwiftSyntaxBuilder ListBuilder.swift
[677/697] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[678/697] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[679/697] Emitting module SwiftSyntaxBuilder
[680/698] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[681/698] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[682/698] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[683/698] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[684/698] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[685/698] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[686/698] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[687/698] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[688/698] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[689/698] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[690/698] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[691/699] Wrapping AST for SwiftSyntaxBuilder for debugging
[693/716] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[694/716] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[695/718] Compiling SwiftSyntaxMacros AccessorMacro.swift
[696/718] Compiling SwiftSyntaxMacros AttachedMacro.swift
[697/718] Compiling SwiftSyntaxMacros BodyMacro.swift
[698/718] Emitting module SwiftSyntaxMacros
[699/718] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[700/718] Compiling SwiftSyntaxMacros Macro+Format.swift
[701/718] Compiling SwiftSyntaxMacros MemberMacro.swift
[702/718] Compiling SwiftSyntaxMacros PeerMacro.swift
[703/718] Compiling SwiftSyntaxMacros Macro.swift
[704/718] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[705/718] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[706/718] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[707/718] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[708/718] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[709/718] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[710/718] Compiling SwiftSyntaxMacros PreambleMacro.swift
[711/718] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[712/719] Wrapping AST for SwiftSyntaxMacros for debugging
[714/728] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[715/729] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[716/729] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[717/729] Emitting module SwiftSyntaxMacroExpansion
[718/729] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[719/729] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[720/729] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[721/729] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[722/729] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[723/729] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[724/730] Wrapping AST for SwiftSyntaxMacroExpansion for debugging
[726/742] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[727/742] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[728/743] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[729/743] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[730/743] Emitting module SwiftCompilerPluginMessageHandling
[731/743] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[732/743] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[733/743] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[734/743] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[735/743] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[736/743] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[737/743] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[738/743] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[739/744] Wrapping AST for SwiftCompilerPluginMessageHandling for debugging
[741/746] Emitting module SwiftCompilerPlugin
[742/746] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[743/747] Wrapping AST for SwiftCompilerPlugin for debugging
[745/753] Compiling SwiftNetworkRequestMacros RequestMacros.swift
[746/753] Compiling SwiftNetworkRequestMacros Plugin.swift
[747/753] Compiling SwiftNetworkRequestMacros Models.swift
[748/753] Compiling SwiftNetworkRequestMacros Helpers.swift
[749/753] Compiling SwiftNetworkRequestMacros RequestBuilder.swift
[750/753] Emitting module SwiftNetworkRequestMacros
[751/754] Wrapping AST for SwiftNetworkRequestMacros for debugging
[752/754] Write Objects.LinkFileList
[753/754] Linking SwiftNetworkRequestMacros-tool
[755/776] Compiling SwiftNetworkRequest KeyValuePair.swift
[756/776] Compiling SwiftNetworkRequest Put.swift
[757/777] Compiling SwiftNetworkRequest Post.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[758/777] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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
[759/777] Compiling SwiftNetworkRequest URLSession+Request.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[760/777] Compiling SwiftNetworkRequest Delete.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[761/778] Compiling SwiftNetworkRequest Get.swift
[762/778] Compiling SwiftNetworkRequest HelperMacros.swift
[763/778] Compiling SwiftNetworkRequest RequestAuthorization.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[764/778] Compiling SwiftNetworkRequest URLSession.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[765/778] Compiling SwiftNetworkRequest Post.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[770/778] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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
[773/778] Compiling SwiftNetworkRequest KeyValuePair.swift
[774/778] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
[775/778] Compiling SwiftNetworkRequest RequestConfig.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
[777/778] Compiling SwiftNetworkRequest Put.swift
[778/778] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8e1c3aab9de7fa4f6e33977b6a4cee007e876da3e605dda0be6b9b9bf86aa951
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin Swift-DocC Preview
[2/2] Compiling plugin Swift-DocC
Building for debugging...
[2/21] Write swift-version-24593BA9C3E375BF.txt
[4/23] Compiling IssueReportingPackageSupport _Test.swift
[5/30] Emitting module IssueReportingPackageSupport
[6/52] Compiling SwiftSyntax509 Empty.swift
[7/52] Emitting module SwiftSyntax509
[8/53] Compiling IssueReportingPackageSupport _Test.swift
[10/53] Emitting module IssueReportingPackageSupport
[11/70] Compiling OpenCombine Codable.swift
[12/70] Compiling OpenCombine CombineIdentifier.swift
[13/143] Compiling SwiftSyntax601 Empty.swift
[14/143] Emitting module SwiftSyntax601
[15/179] Compiling ConcurrencyExtras Result.swift
[18/241] Compiling ConcurrencyExtras LockIsolated.swift
[19/241] Compiling OpenCombine AnySubscriber.swift
[20/241] Compiling OpenCombine Cancellable.swift
[21/241] Compiling OpenCombine Codable.swift
[22/241] Compiling OpenCombine CombineIdentifier.swift
[23/241] Compiling ConcurrencyExtras MainSerialExecutor.swift
[24/243] Compiling ConcurrencyExtras LockIsolated.swift
[26/243] Compiling ConcurrencyExtras Task.swift
[27/241] Compiling ConcurrencyExtras UncheckedSendable.swift
[28/241] Emitting module ConcurrencyExtras
[29/241] Compiling OpenCombine AnyCancellable.swift
[30/241] Compiling OpenCombine AnyPublisher.swift
[31/241] Emitting module ConcurrencyExtras
[36/241] Compiling ConcurrencyExtras Result.swift
[37/241] Compiling ConcurrencyExtras MainSerialExecutor.swift
[38/241] Compiling ConcurrencyExtras Task.swift
[39/242] Emitting module SwiftSyntax600
[40/242] Compiling SwiftSyntax600 Empty.swift
[42/245] Compiling ConcurrencyExtras UncheckedSendable.swift
[43/265] Emitting module SwiftSyntax510
[44/265] Compiling SwiftSyntax510 Empty.swift
[48/285] Compiling IssueReporting ErrorReporting.swift
[49/285] Compiling IssueReporting AppHostWarning.swift
[50/285] Compiling IssueReporting Deprecations.swift
[51/287] Compiling IssueReporting FailureObserver.swift
[52/287] Compiling IssueReporting LockIsolated.swift
[53/287] Compiling IssueReporting Rethrows.swift
[54/287] Compiling IssueReporting SwiftTesting.swift
[55/287] Compiling IssueReporting UncheckedSendable.swift
[56/287] Compiling IssueReporting Warn.swift
[57/287] Compiling IssueReporting XCTest.swift
[58/287] Compiling IssueReporting IsTesting.swift
[59/287] Compiling IssueReporting IssueReporter.swift
[60/287] Compiling IssueReporting IssueSeverity.swift
[61/287] Compiling IssueReporting ReportIssue.swift
[62/287] Compiling IssueReporting TestContext.swift
[63/287] Compiling IssueReporting Unimplemented.swift
[67/289] Emitting module IssueReporting
[72/299] Compiling IssueReporting BreakpointReporter.swift
[73/299] Compiling IssueReporting DefaultReporter.swift
[74/299] Compiling IssueReporting FatalErrorReporter.swift
[79/314] Compiling SwiftSyntax AbsolutePosition.swift
[80/314] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[81/314] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[82/314] Compiling SwiftSyntax Assert.swift
[83/315] Compiling SwiftSyntax BumpPtrAllocator.swift
[84/315] Compiling SwiftSyntax CommonAncestor.swift
[85/315] Compiling SwiftSyntax Convenience.swift
[86/315] Compiling SwiftSyntax CustomTraits.swift
[87/315] Compiling SwiftSyntax EditorPlaceholder.swift
[88/315] Compiling SwiftSyntax Identifier.swift
[89/315] Compiling SwiftSyntax MemoryLayout.swift
[90/315] Compiling SwiftSyntax MissingNodeInitializers.swift
[91/315] Compiling SwiftSyntax RawSyntax.swift
[92/365] Compiling SwiftSyntax SourcePresence.swift
[93/365] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[116/378] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[117/378] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[118/378] Compiling SwiftSyntax RawSyntaxTokenView.swift
[119/378] Compiling SwiftSyntax SourceEdit.swift
[120/378] Compiling SwiftSyntax SourceLength.swift
[121/378] Compiling SwiftSyntax SourceLocation.swift
[124/378] Compiling SwiftSyntax Syntax.swift
[125/378] Compiling SwiftSyntax SyntaxArena.swift
[126/378] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[127/378] Compiling SwiftSyntax SyntaxChildren.swift
[128/378] Compiling SwiftSyntax SyntaxCollection.swift
[129/378] Compiling SwiftSyntax SyntaxHashable.swift
[130/378] Compiling SwiftSyntax SyntaxIdentifier.swift
[131/378] Compiling SwiftSyntax SyntaxNodeFactory.swift
[132/378] Compiling SwiftSyntax SyntaxNodeStructure.swift
[133/378] Compiling SwiftSyntax SyntaxProtocol.swift
[134/378] Compiling SwiftSyntax SyntaxText.swift
[135/378] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[136/378] Compiling SwiftSyntax TokenDiagnostic.swift
[137/378] Compiling SwiftSyntax TokenSequence.swift
[138/378] Compiling SwiftSyntax TokenSyntax.swift
[139/378] Compiling SwiftSyntax Trivia.swift
[140/378] Compiling SwiftSyntax Utils.swift
[141/378] Compiling SwiftSyntax ChildNameForKeyPath.swift
[155/378] Emitting module OpenCombine
[160/382] Compiling OpenCombine Result.swift
[161/382] Compiling OpenCombine Scheduler.swift
[162/382] Compiling OpenCombine Subject+Void.swift
[163/382] Compiling OpenCombine Subscriber+Void.swift
[164/382] Compiling OpenCombine Subscribers.Assign.swift
[165/382] Compiling OpenCombine Subscribers.Completion.swift
[166/382] Compiling OpenCombine Subscribers.Demand.swift
[167/382] Compiling OpenCombine Subscribers.Sink.swift
[168/382] Compiling OpenCombine Subscribers.swift
[169/382] Compiling OpenCombine Subscription.swift
[170/382] Compiling OpenCombine Subscriptions.swift
[171/382] Compiling OpenCombine _Introspection.swift
[185/390] Compiling XCTestDynamicOverlay Exports.swift
[186/390] Compiling Clocks SwiftUI.swift
[187/391] Compiling SwiftSyntax TriviaPieces.swift
[188/391] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[189/391] Compiling SwiftSyntax RawSyntaxNodesC.swift
[190/391] Compiling SwiftSyntax RawSyntaxNodesD.swift
[191/391] Compiling SwiftSyntax RawSyntaxNodesEF.swift
[192/391] Compiling SwiftSyntax RawSyntaxNodesGHI.swift
[193/391] Compiling SwiftSyntax RawSyntaxNodesJKLMN.swift
[194/391] Compiling SwiftSyntax RawSyntaxNodesOP.swift
[195/391] Compiling SwiftSyntax RawSyntaxNodesQRS.swift
[196/391] Compiling SwiftSyntax RawSyntaxNodesTUVWXYZ.swift
[197/391] Compiling SwiftSyntax RawSyntaxValidation.swift
[198/391] Compiling OpenCombine Publishers.Last.swift
[199/391] Compiling OpenCombine Publishers.MakeConnectable.swift
[213/391] Compiling SwiftSyntax Keyword.swift
[214/391] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[215/391] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[216/391] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[217/391] Compiling SwiftSyntax SyntaxBaseNodes.swift
[218/391] Compiling SwiftSyntax SyntaxCollections.swift
[219/391] Compiling SwiftSyntax SyntaxEnum.swift
[220/391] Compiling SwiftSyntax SyntaxKind.swift
[221/391] Compiling SwiftSyntax SyntaxRewriter.swift
[222/391] Compiling SwiftSyntax SyntaxTraits.swift
[223/391] Compiling SwiftSyntax SyntaxVisitor.swift
[224/391] Compiling SwiftSyntax TokenKind.swift
[225/391] Compiling SwiftSyntax Tokens.swift
[226/391] Compiling Clocks Timer.swift
[227/391] Compiling Clocks Lock.swift
[228/391] Compiling Clocks _AsyncTimerSequence.swift
[229/391] Compiling Clocks ImmediateClock.swift
[230/391] Compiling Clocks AnyClock.swift
[231/392] Emitting module Clocks
[232/392] Compiling Clocks UnimplementedClock.swift
[233/394] Compiling Clocks TestClock.swift
[234/401] Compiling OpenCombine Publishers.Map.swift
[235/401] Compiling OpenCombine Publishers.MapError.swift
[236/401] Compiling OpenCombine Publishers.MeasureInterval.swift
[237/401] Compiling OpenCombine Publishers.Multicast.swift
[238/401] Compiling OpenCombine Publishers.Output.swift
[239/401] Compiling OpenCombine Publishers.PrefixUntilOutput.swift
[240/401] Compiling OpenCombine Publishers.PrefixWhile.swift
[241/401] Compiling OpenCombine Publishers.Print.swift
[242/401] Compiling OpenCombine Publishers.ReceiveOn.swift
[243/401] Compiling OpenCombine Publishers.Reduce.swift
[244/401] Compiling OpenCombine Publishers.RemoveDuplicates.swift
[245/401] Compiling OpenCombine Publishers.ReplaceEmpty.swift
[246/401] Compiling OpenCombine Publishers.ReplaceError.swift
[247/402] Compiling OpenCombine Publishers.Retry.swift
[248/402] Compiling OpenCombine Publishers.Scan.swift
[249/402] Compiling OpenCombine Publishers.Sequence.swift
[250/402] Compiling OpenCombine Publishers.SetFailureType.swift
[251/402] Compiling OpenCombine Publishers.Share.swift
[252/402] Compiling OpenCombine Publishers.SubscribeOn.swift
[253/402] Compiling OpenCombine Publishers.SwitchToLatest.swift
[254/402] Compiling OpenCombine Publishers.Throttle.swift
[255/402] Compiling OpenCombine Publishers.Timeout.swift
[256/402] Compiling OpenCombine Publishers.Zip.swift
[257/402] Compiling OpenCombine Publishers.swift
[258/402] Compiling OpenCombine Record.swift
[259/402] Compiling OpenCombine Result.Publisher.swift
[260/403] Compiling XCTestDynamicOverlay Deprecations.swift
[261/403] Emitting module XCTestDynamicOverlay
[314/404] Compiling XCTestDynamicOverlay Exports.swift
[326/415] Compiling Clocks Timer.swift
[328/416] Compiling Clocks Lock.swift
[329/416] Compiling Clocks _AsyncTimerSequence.swift
[330/416] Compiling Clocks AnyClock.swift
[331/416] Compiling Clocks ImmediateClock.swift
[332/416] Emitting module Clocks
[334/416] Emitting module XCTestDynamicOverlay
[335/416] Compiling XCTestDynamicOverlay Deprecations.swift
[336/417] Compiling Clocks SwiftUI.swift
[337/417] Compiling Clocks TestClock.swift
[339/417] Compiling Clocks UnimplementedClock.swift
[350/444] Compiling OpenCombineFoundation Locking.swift
[351/444] Compiling OpenCombineFoundation Portability.swift
[352/445] Compiling OpenCombineFoundation Timer+Publisher.swift
[353/446] Compiling OpenCombineFoundation URLSession.swift
[354/446] Compiling OpenCombineFoundation Timer+Publisher.swift
[355/446] Compiling OpenCombineFoundation Utils.swift
[356/446] Compiling OpenCombineFoundation Violations.swift
[357/446] Emitting module OpenCombineFoundation
[358/446] Compiling OpenCombineFoundation PropertyListEncoder.swift
[359/446] Compiling OpenCombineFoundation RunLoop+Scheduler.swift
[362/446] Emitting module OpenCombineFoundation
[363/446] Compiling OpenCombineFoundation JSONEncoder.swift
[364/446] Compiling OpenCombineFoundation NotificationCenter.swift
[367/446] Compiling OpenCombineFoundation OperationQueue+Scheduler.swift
[369/447] Compiling OpenCombineFoundation URLSession.swift
[370/447] Emitting module OpenCombineDispatch
[371/447] Compiling OpenCombineDispatch DispatchQueue+Scheduler.swift
[372/448] Compiling OpenCombineFoundation PropertyListEncoder.swift
[373/448] Compiling OpenCombineFoundation RunLoop+Scheduler.swift
[376/448] Compiling OpenCombineFoundation OperationQueue+Scheduler.swift
[377/448] Emitting module OpenCombineDispatch
[378/448] Compiling OpenCombineDispatch DispatchQueue+Scheduler.swift
[382/454] Emitting module OpenCombineShim
[383/454] Compiling OpenCombineShim OpenCombineShim.swift
[385/455] Emitting module OpenCombineShim
[386/455] Compiling OpenCombineShim OpenCombineShim.swift
[388/469] Compiling CombineSchedulers Timer.swift
[406/469] Compiling CombineSchedulers UIScheduler.swift
[407/470] Compiling CombineSchedulers UIKit.swift
[408/483] Emitting module CombineSchedulers
[409/483] Compiling CombineSchedulers AnyScheduler.swift
[410/483] Compiling CombineSchedulers Concurrency.swift
[411/483] Compiling CombineSchedulers ImmediateScheduler.swift
[412/483] Compiling CombineSchedulers Deprecations.swift
[413/483] Compiling CombineSchedulers Lock.swift
[414/483] Compiling CombineSchedulers NSRecursiveLock.swift
[415/483] Compiling CombineSchedulers UnimplementedScheduler.swift
[416/483] Compiling CombineSchedulers UIScheduler.swift
[417/484] Compiling CombineSchedulers UIKit.swift
[422/484] Emitting module CombineSchedulers
[425/484] Compiling CombineSchedulers UnimplementedScheduler.swift
[426/484] Compiling CombineSchedulers Platform.swift
[427/484] Compiling CombineSchedulers SwiftUI.swift
[428/484] Compiling CombineSchedulers TestScheduler.swift
[429/484] Compiling CombineSchedulers Timer.swift
[436/532] Compiling Dependencies Assert.swift
[437/532] Compiling Dependencies Calendar.swift
[438/532] Compiling Dependencies Clocks.swift
[439/535] Compiling Dependencies Context.swift
[440/535] Compiling Dependencies Date.swift
[441/535] Compiling Dependencies FireAndForget.swift
[442/538] Emitting module Dependencies
[443/538] Compiling Dependencies UUID.swift
[444/538] Compiling Dependencies WithRandomNumberGenerator.swift
[445/538] Compiling Dependencies AppEntryPoint.swift
[446/538] Compiling Dependencies Locale.swift
[447/538] Compiling Dependencies MainQueue.swift
[448/538] Compiling Dependencies MainRunLoop.swift
[449/538] Compiling Dependencies Deprecations.swift
[450/538] Compiling Dependencies Exports.swift
[451/538] Compiling Dependencies TypeName.swift
[461/538] Compiling Dependencies OpenURL.swift
[462/538] Compiling Dependencies TimeZone.swift
[463/538] Compiling Dependencies URLSession.swift
[467/538] Compiling Dependencies Dependency.swift
[468/538] Compiling Dependencies DependencyContext.swift
[469/538] Compiling Dependencies DependencyKey.swift
[470/538] Compiling Dependencies DependencyValues.swift
[477/538] Compiling Dependencies PreviewTrait.swift
[478/538] Compiling Dependencies TestTrait.swift
[479/538] Compiling Dependencies WithDependencies.swift
[488/539] Emitting module Dependencies
[490/540] Emitting module SwiftSyntax
[518/540] Compiling SwiftSyntax SyntaxNodesAB.swift
[519/540] Compiling SwiftSyntax SyntaxNodesC.swift
[520/540] Compiling SwiftSyntax SyntaxNodesD.swift
[521/540] Compiling SwiftSyntax SyntaxNodesEF.swift
[522/540] Compiling SwiftSyntax SyntaxNodesGHI.swift
[523/540] Compiling SwiftSyntax SyntaxNodesJKLMN.swift
[524/540] Compiling SwiftSyntax SyntaxNodesOP.swift
[525/540] Compiling SwiftSyntax SyntaxNodesQRS.swift
[526/540] Compiling SwiftSyntax SyntaxNodesTUVWXYZ.swift
[528/598] Compiling SwiftDiagnostics Message.swift
[529/599] Compiling SwiftBasicFormat Syntax+Extensions.swift
[530/599] Compiling SwiftParser IncrementalParseTransition.swift
[531/599] Compiling SwiftParser IsValidIdentifier.swift
[532/599] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[533/599] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[534/599] Emitting module SwiftDiagnostics
[535/599] Compiling SwiftParser ExpressionInterpretedAsVersionTuple.swift
[536/599] Compiling SwiftParser Expressions.swift
[537/599] Compiling SwiftDiagnostics FixIt.swift
[538/599] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[539/599] Compiling SwiftDiagnostics Note.swift
[540/599] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[541/599] Compiling SwiftDiagnostics DiagnosticDecorator.swift
[542/600] Compiling SwiftBasicFormat BasicFormat.swift
[543/600] Emitting module SwiftBasicFormat
[544/600] Compiling SwiftBasicFormat Indenter.swift
[545/600] Compiling SwiftBasicFormat InferIndentation.swift
[548/599] Compiling SwiftParser LexemeSequence.swift
[549/599] Compiling SwiftParser Lexer.swift
[550/599] Compiling SwiftParser RegexLiteralLexer.swift
[551/599] Compiling SwiftParser UnicodeScalarExtensions.swift
[552/599] Compiling SwiftParser Lookahead.swift
[553/599] Compiling SwiftParser LoopProgressCondition.swift
[554/604] Compiling SwiftParser Modifiers.swift
[555/604] Compiling SwiftParser Names.swift
[556/604] Compiling SwiftParser Nominals.swift
[557/604] Compiling SwiftParser Parameters.swift
[558/604] Compiling SwiftParser ParseSourceFile.swift
[559/604] Compiling SwiftParser Parser.swift
[560/604] Compiling SwiftParser Patterns.swift
[561/604] Compiling SwiftParser Recovery.swift
[562/604] Compiling SwiftParser Specifiers.swift
[563/604] Compiling SwiftParser Statements.swift
[564/604] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[565/604] Compiling SwiftParser StringLiterals.swift
[566/604] Compiling SwiftParser SwiftParserCompatibility.swift
[567/604] Compiling SwiftParser SwiftVersion.swift
[568/604] Compiling SwiftParser SyntaxUtils.swift
[569/604] Compiling SwiftParser TokenConsumer.swift
[570/604] Compiling SwiftParser TokenPrecedence.swift
[571/604] Compiling SwiftParser TokenSpec.swift
[572/604] Compiling SwiftParser TokenSpecSet.swift
[573/604] Compiling SwiftParser TopLevel.swift
[574/604] Compiling SwiftParser TriviaParser.swift
[575/604] Compiling SwiftParser Types.swift
[576/604] Emitting module SwiftParser
[577/604] Compiling SwiftParser Attributes.swift
[578/604] Compiling SwiftParser Availability.swift
[579/604] Compiling SwiftParser CharacterInfo.swift
[580/604] Compiling SwiftParser CollectionNodes+Parsable.swift
[581/604] Compiling SwiftParser Declarations.swift
[582/604] Compiling SwiftParser Directives.swift
[587/604] Compiling SwiftParser Cursor.swift
[588/604] Compiling SwiftParser Lexeme.swift
[589/604] Compiling SwiftParser ExperimentalFeatures.swift
[590/604] Compiling SwiftParser IsLexerClassified.swift
[591/604] Compiling SwiftParser LayoutNodes+Parsable.swift
[592/604] Compiling SwiftParser Parser+TokenSpecSet.swift
[593/604] Compiling SwiftParser TokenSpecStaticMembers.swift
[595/627] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[596/628] Compiling SwiftOperators PrecedenceGraph.swift
[597/628] Compiling SwiftOperators OperatorTable.swift
[598/628] Compiling SwiftOperators PrecedenceGroup.swift
[599/629] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[600/629] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[601/629] Compiling SwiftOperators SyntaxSynthesis.swift
[602/629] Compiling SwiftOperators OperatorTable+Folding.swift
[603/629] Compiling SwiftParserDiagnostics MissingNodesError.swift
[604/629] Compiling SwiftParserDiagnostics MissingTokenError.swift
[605/629] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[606/629] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[607/629] Emitting module SwiftOperators
[608/629] Compiling SwiftOperators OperatorTable+Semantics.swift
[610/630] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[611/630] Compiling SwiftParserDiagnostics Utils.swift
[612/630] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[613/630] Compiling SwiftParserDiagnostics PresenceUtils.swift
[614/629] Emitting module SwiftParserDiagnostics
[617/629] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[618/629] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[622/644] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[623/644] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[624/644] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[625/644] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[626/644] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[627/644] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[628/645] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[629/645] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[630/645] Emitting module SwiftSyntaxBuilder
[631/645] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[632/645] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[633/645] Compiling SwiftSyntaxBuilder Indenter.swift
[634/645] Compiling SwiftSyntaxBuilder ListBuilder.swift
[635/645] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[636/645] Compiling SwiftSyntaxBuilder DeclSyntaxParseable.swift
[637/645] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[639/662] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[640/662] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[641/664] Emitting module SwiftSyntaxMacros
[642/664] Compiling SwiftSyntaxMacros Macro.swift
[643/664] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[644/664] Compiling SwiftSyntaxMacros MemberMacro.swift
[645/664] Compiling SwiftSyntaxMacros PeerMacro.swift
[646/664] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[647/664] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[648/664] Compiling SwiftSyntaxMacros AccessorMacro.swift
[649/664] Compiling SwiftSyntaxMacros AttachedMacro.swift
[650/664] Compiling SwiftSyntaxMacros BodyMacro.swift
[651/664] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[652/664] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[653/664] Compiling SwiftSyntaxMacros MacroExpansionDiagnosticMessages.swift
[654/664] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[655/664] Compiling SwiftSyntaxMacros Macro+Format.swift
[656/664] Compiling SwiftSyntaxMacros PreambleMacro.swift
[657/664] Compiling SwiftSyntaxMacros Syntax+LexicalContext.swift
[659/673] Compiling SwiftSyntaxMacroExpansion MacroSpec.swift
[660/674] Emitting module SwiftSyntaxMacroExpansion
[661/674] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[662/674] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[663/674] Compiling SwiftSyntaxMacroExpansion MacroArgument.swift
[664/674] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[665/674] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[666/674] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[667/674] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[668/674] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[670/686] Emitting module SwiftCompilerPluginMessageHandling
[671/687] Compiling SwiftCompilerPluginMessageHandling LRUCache.swift
[672/687] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[673/687] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[674/687] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[675/687] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[676/687] Compiling SwiftCompilerPluginMessageHandling StandardIOMessageConnection.swift
[677/687] Compiling SwiftCompilerPluginMessageHandling CodingUtilities.swift
[678/687] Compiling SwiftCompilerPluginMessageHandling JSON.swift
[679/687] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[680/687] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[681/687] Compiling SwiftCompilerPluginMessageHandling JSONDecoding.swift
[682/687] Compiling SwiftCompilerPluginMessageHandling JSONEncoding.swift
[684/689] Emitting module SwiftCompilerPlugin
[685/689] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[687/695] Compiling SwiftNetworkRequestMacros Plugin.swift
[688/695] Compiling SwiftNetworkRequestMacros Models.swift
[689/695] Compiling SwiftNetworkRequestMacros RequestMacros.swift
[690/695] Emitting module SwiftNetworkRequestMacros
[691/695] Compiling SwiftNetworkRequestMacros RequestBuilder.swift
[692/695] Compiling SwiftNetworkRequestMacros Helpers.swift
[693/695] Write Objects.LinkFileList
[694/695] Linking SwiftNetworkRequestMacros-tool
[696/717] Compiling SwiftNetworkRequest Put.swift
[697/718] Compiling SwiftNetworkRequest KeyValuePair.swift
[698/719] Compiling SwiftNetworkRequest Post.swift
[699/719] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
[700/719] Compiling SwiftNetworkRequest KeyValuePair.swift
[701/719] Compiling SwiftNetworkRequest DynamicAPIResponse.swift
[702/719] Compiling SwiftNetworkRequest Get.swift
[703/719] Compiling SwiftNetworkRequest HelperMacros.swift
[704/719] Compiling SwiftNetworkRequest Post.swift
[705/719] Compiling SwiftNetworkRequest Put.swift
[706/719] Compiling SwiftNetworkRequest URLSession+Request.swift
[707/719] Compiling SwiftNetworkRequest Delete.swift
[708/719] Compiling SwiftNetworkRequest RequestConfig.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[709/719] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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
[710/719] Compiling SwiftNetworkRequest RequestConfig.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[713/719] Compiling SwiftNetworkRequest RequestAuthorization.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
[714/719] Compiling SwiftNetworkRequest URLSession.swift
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:115:26: error: cannot infer contextual base in reference to member 'init'
113 | ) async throws -> Data {
114 | let urlRequest = try createURLRequest(
115 | apiRequest: .init(
| `- error: cannot infer contextual base in reference to member 'init'
116 | path: path,
117 | httpMethod: httpMethod,
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:142:23: error: cannot find 'URLRequest' in scope
140 | }
141 |
142 | var request = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
143 | request.httpMethod = apiRequest.httpMethod
144 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:43: warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional cast from 'URLResponse' (aka 'AnyObject') to 'HTTPURLResponse' (aka 'AnyObject') always succeeds
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:157:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
157 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
158 | throw ApiRequestError(message: "Invalid Response")
159 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:161:49: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 | }
160 |
161 | guard (200...299).contains(httpResponse.statusCode) else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
162 | throw URLError(.badServerResponse)
163 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:82:39: error: cannot find type 'URLRequest' in scope
80 |
81 | extension URLSession: HTTPSession {
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
| `- error: cannot find type 'URLRequest' in scope
83 | try await self.download(for: request, delegate: nil)
84 | }
[719/719] Emitting module SwiftNetworkRequest
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:28: error: cannot find type 'URLRequest' in scope
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:30: error: cannot find type 'URLRequest' in scope
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:32: error: cannot find type 'URLRequest' in scope
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
53 | }
54 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/DI/URLSession.swift:35:56: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
33 |
34 | private enum URLSessionKey: DependencyKey {
35 | static let liveValue: any HTTPSession = URLSession.shared
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
36 | }
37 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:50:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - [`swift-dependencies`](https://github.com/pointfreeco/swift-dependencies)
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:51:86: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
49 | public protocol HTTPSession: Sendable {
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
53 | }
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:52:66: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 | func data(for request: URLRequest) async throws -> (Data, URLResponse)
51 | func upload(for request: URLRequest, from bodyData: Data) async throws -> (Data, URLResponse)
52 | func download(for request: URLRequest) async throws -> (URL, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 | }
54 |
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/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:81:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
79 | }
80 |
81 | extension URLSession: HTTPSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
82 | public func download(for request: URLRequest) async throws -> (URL, URLResponse) {
83 | try await self.download(for: request, delegate: nil)
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:129:61: error: cannot find type 'URLRequest' in scope
127 | }
128 |
129 | func createURLRequest(apiRequest: ApiRequest) throws -> URLRequest {
| `- error: cannot find type 'URLRequest' in scope
130 | var components = URLComponents(string: apiRequest.path)
131 |
/host/spi-builder-workspace/Sources/SwiftNetworkRequest/Helpers/URLSession+Request.swift:156:47: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
154 | }
155 |
156 | func handleResponse(data: Data, response: URLResponse) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
157 | guard let httpResponse = response as? HTTPURLResponse else {
158 | throw ApiRequestError(message: "Invalid Response")
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
BUILD FAILURE 6.1 linux