Build Information
Failed to build DangerSwiftPeriphery, reference main (247641
), with Swift 6.1 for Wasm on 29 May 2025 09:58:35 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/taji-taji/DangerSwiftPeriphery.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/taji-taji/DangerSwiftPeriphery
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 2476413 Merge pull request #71 from taji-taji/release/1.4.1
Cloned https://github.com/taji-taji/DangerSwiftPeriphery.git
Revision (git rev-parse @):
2476413ea55b828784dc742a64ca7dfe88131904
SUCCESS checkout https://github.com/taji-taji/DangerSwiftPeriphery.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/taji-taji/DangerSwiftPeriphery.git
https://github.com/taji-taji/DangerSwiftPeriphery.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift",
"requirement" : {
"range" : [
{
"lower_bound" : "3.0.0",
"upper_bound" : "4.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/danger/swift.git"
},
{
"identity" : "swift-shell",
"requirement" : {
"range" : [
{
"lower_bound" : "1.0.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/taji-taji/swift-shell.git"
},
{
"identity" : "periphery",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/peripheryapp/periphery"
}
],
"manifest_display_name" : "DangerSwiftPeriphery",
"name" : "DangerSwiftPeriphery",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "13.0"
}
],
"products" : [
{
"name" : "DangerSwiftPeriphery",
"targets" : [
"DangerSwiftPeriphery"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "DangerDeps",
"targets" : [
"DangerDependencies"
],
"type" : {
"library" : [
"dynamic"
]
}
}
],
"targets" : [
{
"c99name" : "DangerSwiftPeripheryTests",
"module_type" : "SwiftTarget",
"name" : "DangerSwiftPeripheryTests",
"path" : "Tests/DangerSwiftPeripheryTests",
"sources" : [
"CheckstyleOutputParserTests.swift",
"DangerSwiftPeripheryTests.swift",
"Mocks/CheckstyleOutputParsableMock.swift",
"Mocks/PeripheryScanExecutableMock.swift",
"Mocks/PullRequestDiffProvidableMock.swift",
"Mocks/ShellExecutableMock.swift",
"Mocks/ViolationNotifierMock.swift",
"PeripheryExecutionTests.swift",
"PeripheryScanCommandBuilderTests.swift",
"PeripheryScanExecutorTests.swift",
"PeripheryScanOptionsBuilderTests.swift",
"PeripheryScanOptionsTests.swift"
],
"target_dependencies" : [
"DangerSwiftPeriphery"
],
"type" : "test"
},
{
"c99name" : "DangerSwiftPeriphery",
"module_type" : "SwiftTarget",
"name" : "DangerSwiftPeriphery",
"path" : "Sources/DangerSwiftPeriphery",
"product_dependencies" : [
"Danger",
"periphery",
"SwiftShell"
],
"product_memberships" : [
"DangerSwiftPeriphery",
"DangerDeps"
],
"sources" : [
"CheckstyleOutputParser.swift",
"CurrentPathProvider.swift",
"DangerDSL+Extensions.swift",
"DangerPeriphery.swift",
"FileDiff.swift",
"Logger.swift",
"PeripheryScanCommandBuilder.swift",
"PeripheryScanExecutor.swift",
"PeripheryScanOptions.swift",
"PeripheryScanOptionsBuilder.swift",
"PullRequestDiffProvidable.swift",
"ShellExecutor.swift",
"Violation.swift",
"ViolationNotifier.swift"
],
"type" : "library"
},
{
"c99name" : "DangerDependencies",
"module_type" : "SwiftTarget",
"name" : "DangerDependencies",
"path" : "Sources/DangerDependencies",
"product_memberships" : [
"DangerDeps"
],
"sources" : [
"Fake.swift"
],
"target_dependencies" : [
"DangerSwiftPeriphery"
],
"type" : "library"
}
],
"tools_version" : "5.8"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/peripheryapp/periphery
Fetching https://github.com/danger/swift.git
Fetching https://github.com/taji-taji/swift-shell.git
[1/10264] Fetching swift
[1849/10412] Fetching swift, swift-shell
[10378/22601] Fetching swift, swift-shell, periphery
Fetched https://github.com/taji-taji/swift-shell.git from cache (0.79s)
Fetched https://github.com/danger/swift.git from cache (0.80s)
Fetched https://github.com/peripheryapp/periphery from cache (0.81s)
Computing version for https://github.com/taji-taji/swift-shell.git
Computed https://github.com/taji-taji/swift-shell.git at 1.0.2 (3.15s)
Computing version for https://github.com/danger/swift.git
Computed https://github.com/danger/swift.git at 3.21.1 (1.35s)
Fetching https://github.com/shibapm/Logger
Fetching https://github.com/mxcl/Version
Fetching https://github.com/nerdishbynature/octokit.swift
[1/4995] Fetching octokit.swift
[401/5283] Fetching octokit.swift, version
[1638/5399] Fetching octokit.swift, version, logger
Fetched https://github.com/mxcl/Version from cache (0.46s)
Fetched https://github.com/shibapm/Logger from cache (0.47s)
Fetched https://github.com/nerdishbynature/octokit.swift from cache (0.47s)
Computing version for https://github.com/nerdishbynature/octokit.swift
Computed https://github.com/nerdishbynature/octokit.swift at 0.14.0 (1.32s)
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1554] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.44s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 3.3.0 (0.98s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.1.0 (0.54s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (3.44s)
Computing version for https://github.com/peripheryapp/periphery
Computed https://github.com/peripheryapp/periphery at 2.21.2 (0.60s)
Fetching https://github.com/kateinoigakukun/swift-indexstore
Fetching https://github.com/ileitch/swift-filename-matcher
Fetching https://github.com/apple/swift-syntax
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/tadija/AEXML
Fetching https://github.com/jpsim/Yams
[1/319] Fetching swift-indexstore
[129/373] Fetching swift-indexstore, swift-filename-matcher
[193/2500] Fetching swift-indexstore, swift-filename-matcher, aexml
[2501/13157] Fetching swift-indexstore, swift-filename-matcher, aexml, yams
Fetched https://github.com/tadija/AEXML from cache (0.93s)
Fetching https://github.com/apple/swift-system
[480/11030] Fetching swift-indexstore, swift-filename-matcher, yams
[2186/26409] Fetching swift-indexstore, swift-filename-matcher, yams, swift-argument-parser
[21451/96861] Fetching swift-indexstore, swift-filename-matcher, yams, swift-argument-parser, swift-syntax
[21606/101252] Fetching swift-indexstore, swift-filename-matcher, yams, swift-argument-parser, swift-syntax, swift-system
Fetched https://github.com/apple/swift-system from cache (0.73s)
[34864/96861] Fetching swift-indexstore, swift-filename-matcher, yams, swift-argument-parser, swift-syntax
Fetched https://github.com/ileitch/swift-filename-matcher from cache (1.96s)
Fetched https://github.com/kateinoigakukun/swift-indexstore from cache (1.96s)
[39422/96488] Fetching yams, swift-argument-parser, swift-syntax
Fetched https://github.com/jpsim/Yams from cache (2.02s)
[30174/85831] Fetching swift-argument-parser, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (5.44s)
Fetched https://github.com/apple/swift-syntax from cache (5.50s)
Computing version for https://github.com/kateinoigakukun/swift-indexstore
Computed https://github.com/kateinoigakukun/swift-indexstore at 0.3.0 (6.08s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 600.0.1 (1.39s)
Computing version for https://github.com/ileitch/swift-filename-matcher
Computed https://github.com/ileitch/swift-filename-matcher at 0.1.2 (0.58s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (1.87s)
Computing version for https://github.com/jpsim/Yams
Computed https://github.com/jpsim/Yams at 5.4.0 (0.60s)
Computing version for https://github.com/tadija/AEXML
Computed https://github.com/tadija/AEXML at 4.7.0 (0.54s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.1 (0.82s)
Creating working copy for https://github.com/peripheryapp/periphery
Working copy of https://github.com/peripheryapp/periphery resolved at 2.21.2
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at 3.3.0
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 600.0.1
Creating working copy for https://github.com/jpsim/Yams
Working copy of https://github.com/jpsim/Yams resolved at 5.4.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/nerdishbynature/octokit.swift
Working copy of https://github.com/nerdishbynature/octokit.swift resolved at 0.14.0
Creating working copy for https://github.com/kateinoigakukun/swift-indexstore
Working copy of https://github.com/kateinoigakukun/swift-indexstore resolved at 0.3.0
Creating working copy for https://github.com/tadija/AEXML
Working copy of https://github.com/tadija/AEXML resolved at 4.7.0
Creating working copy for https://github.com/taji-taji/swift-shell.git
Working copy of https://github.com/taji-taji/swift-shell.git resolved at 1.0.2
Creating working copy for https://github.com/ileitch/swift-filename-matcher
Working copy of https://github.com/ileitch/swift-filename-matcher resolved at 0.1.2
Creating working copy for https://github.com/danger/swift.git
Working copy of https://github.com/danger/swift.git resolved at 3.21.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.1
Creating working copy for https://github.com/mxcl/Version
Working copy of https://github.com/mxcl/Version resolved at 2.1.0
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/61] Write sources
[21/61] Compiling _SwiftSyntaxCShims dummy.c
[21/61] Compiling _CIndexStore dummy.c
[23/61] Compiling writer.c
[24/61] Write sources
[27/61] Compiling reader.c
[28/61] Compiling CSystem shims.c
[29/61] Compiling parser.c
[30/61] Compiling api.c
[31/61] Compiling emitter.c
[32/61] Write swift-version-24593BA9C3E375BF.txt
[33/61] Compiling scanner.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[35/114] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 | @available(*, deprecated, message: "Plase use `load` method instead")
154 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 | }
159 |
160 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 | }
206 |
207 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 | guard let request = request() else {
209 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 | guard let request = request() else {
237 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 | }
254 |
255 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 | let decoder = JSONDecoder()
257 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 | }
262 |
263 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 | guard let request = request() else {
265 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 | var wasSuccessful: Bool {
296 | let successRange = 200 ..< 300
[36/114] Emitting module SwiftSyntax509
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[37/114] Compiling SwiftSyntax509 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[38/115] Emitting module SwiftSyntax510
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[39/115] Compiling SwiftSyntax510 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[40/116] Compiling SystemPackage MachPort.swift
[41/116] Compiling SystemPackage PlatformString.swift
[42/116] Compiling SystemPackage SystemString.swift
[43/116] Emitting module SwiftSyntax600
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[44/116] Compiling SwiftSyntax600 Empty.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/120] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[49/144] Compiling Yams Node.Mapping.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[50/144] Compiling Yams Node.Scalar.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[51/144] Compiling Yams Node.Sequence.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[52/144] Compiling Yams Node.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[53/144] Compiling Yams String+Yams.swift
[54/144] Compiling Yams Tag.swift
[55/144] Compiling Yams YamlAnchorProviding.swift
[56/144] Compiling SystemPackage FilePathTemp.swift
[57/144] Compiling Yams Emitter.swift
[58/144] Compiling Yams Encoder.swift
[59/144] Compiling Yams Mark.swift
[60/144] Compiling Yams Node.Alias.swift
[61/144] Compiling Yams AliasDereferencingStrategy.swift
[62/144] Compiling Yams Anchor.swift
[63/144] Compiling Yams Constructor.swift
[64/144] Compiling Yams Decoder.swift
[65/144] Compiling Yams Parser.swift
[66/144] Compiling Yams RedundancyAliasingStrategy.swift
[67/144] Compiling Yams Representer.swift
[68/144] Compiling Yams Resolver.swift
[69/144] Compiling SystemPackage Mocking.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[70/144] Compiling SystemPackage RawBuffer.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[71/144] Compiling SystemPackage Syscalls.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[72/144] Compiling SystemPackage WindowsSyscallAdapters.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[73/144] Compiling SystemPackage Util+StringArray.swift
[74/144] Compiling SystemPackage Util.swift
[75/144] Compiling SystemPackage UtilConsumers.swift
[76/144] Emitting module FilenameMatcher
[77/144] Emitting module Logger
error: emit-module command failed with exit code 1 (use -v to see invocation)
/host/spi-builder-workspace/.build/checkouts/swift/Sources/DangerShellExecutor/ShellExecutor.swift:127:51: error: cannot find type 'Process' in scope
125 | with arguments: [String],
126 | environmentVariables: [String: String],
127 | outputFile: String?) -> Process
| `- error: cannot find type 'Process' in scope
128 | {
129 | let scriptOutputFile: String
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:40:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
38 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
39 | if let response = response as? HTTPURLResponse {
40 | if !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
41 | var userInfo = [String: Any]()
42 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:78:90: error: 'nil' requires a contextual type
76 |
77 | let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
78 | let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
| `- error: 'nil' requires a contextual type
79 | if let response = responseTuple.1 as? HTTPURLResponse {
80 | if !response.wasSuccessful {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:121:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
119 |
120 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
121 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
122 | var userInfo = [String: Any]()
123 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/29] Write swift-version-24593BA9C3E375BF.txt
[3/97] Compiling SwiftSyntax509 Empty.swift
[4/97] Emitting module SwiftSyntax509
[5/98] Emitting module SwiftSyntax600
[6/98] Compiling SwiftSyntax600 Empty.swift
[7/99] Emitting module SwiftSyntax510
[8/99] Compiling SwiftSyntax510 Empty.swift
[12/103] Compiling SystemPackage Mocking.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[13/103] Compiling SystemPackage RawBuffer.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[14/103] Compiling SystemPackage Syscalls.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
[15/103] Compiling SystemPackage WindowsSyscallAdapters.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 | _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 | return umask(mode)
| `- error: cannot find 'umask' in scope
253 | }
254 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/106] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
| `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
| `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[17/110] Compiling SystemPackage FilePathSyntax.swift
[18/110] Compiling SystemPackage FilePathTemp.swift
[19/175] Compiling SwiftIndexStore UnfairLock.swift
[20/175] Compiling SwiftShell ShellError.swift
[21/175] Compiling SwiftIndexStore IndexStoreUnit.swift
[22/175] Compiling RequestKit Router.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 | @available(*, deprecated, message: "Plase use `load` method instead")
154 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 | }
159 |
160 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 | }
206 |
207 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 | guard let request = request() else {
209 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 | guard let request = request() else {
237 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 | }
254 |
255 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 | let decoder = JSONDecoder()
257 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 | }
262 |
263 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 | guard let request = request() else {
265 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 | var wasSuccessful: Bool {
296 | let successRange = 200 ..< 300
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:139:37: error: cannot find 'URLRequest' in scope
137 | switch encoding {
138 | case .url, .json:
139 | var mutableURLRequest = URLRequest(url: url)
| `- error: cannot find 'URLRequest' in scope
140 | mutableURLRequest.httpMethod = method.rawValue
141 | return mutableURLRequest
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:145:37: error: cannot find 'URLRequest' in scope
143 | let queryData = urlComponents.percentEncodedQuery?.data(using: String.Encoding.utf8)
144 | urlComponents.queryItems = nil // clear the query items as they go into the body
145 | var mutableURLRequest = URLRequest(url: urlComponents.url!)
| `- error: cannot find 'URLRequest' in scope
146 | mutableURLRequest.setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "content-type")
147 | mutableURLRequest.httpBody = queryData
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:179:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
177 | let task = session.dataTask(with: request) { data, response, err in
178 | if let response = response as? HTTPURLResponse {
179 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
180 | var userInfo = [String: Any]()
181 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:214:29: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
212 | let task = session.dataTask(with: request) { data, response, err in
213 | if let response = response as? HTTPURLResponse {
214 | if response.wasSuccessful == false {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
215 | var userInfo = [String: Any]()
216 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:240:76: error: 'nil' requires a contextual type
238 | }
239 |
240 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
241 |
242 | if let response = responseTuple.1 as? HTTPURLResponse {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:268:76: error: 'nil' requires a contextual type
266 | }
267 |
268 | let responseTuple = try await session.data(for: request, delegate: nil)
| `- error: 'nil' requires a contextual type
269 | if let response = responseTuple.1 as? HTTPURLResponse {
270 | if response.wasSuccessful == false {
[23/175] Emitting module ArgumentParserToolInfo
[24/175] Compiling ArgumentParserToolInfo ToolInfo.swift
[26/176] Emitting module SwiftShell
[27/176] Compiling SwiftShell Shell.swift
/host/spi-builder-workspace/.build/checkouts/swift-shell/Sources/SwiftShell/Shell.swift:32:20: error: cannot find 'Process' in scope
30 | let env = ProcessInfo.processInfo.environment
31 | .merging(additionalEnvironment, uniquingKeysWith: { $1 })
32 | let task = Process()
| `- error: cannot find 'Process' in scope
33 |
34 | task.launchPath = "/bin/sh"
[28/176] Compiling SwiftSyntax SyntaxHashable.swift
[29/176] Compiling SwiftSyntax SyntaxIdentifier.swift
[30/176] Compiling SwiftSyntax SyntaxNodeFactory.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/176] Emitting module RequestKit
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:25:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
24 |
25 | extension URLSession: RequestKitURLSession {
| `- error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
26 | public func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol {
27 | return dataTask(with: request, completionHandler: completionHandler) as URLSessionDataTask
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:154:78: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
152 |
153 | @available(*, deprecated, message: "Plase use `load` method instead")
154 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
155 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
156 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:160:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
158 | }
159 |
160 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
161 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
162 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:170:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
168 | }
169 |
170 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
171 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
172 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:207:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
205 | }
206 |
207 | func load(_ session: RequestKitURLSession = URLSession.shared, completion: @escaping (_ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
208 | guard let request = request() else {
209 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:235:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
233 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
234 | public extension Router {
235 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
236 | guard let request = request() else {
237 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:255:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 | }
254 |
255 | func load<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
256 | let decoder = JSONDecoder()
257 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:263:60: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
261 | }
262 |
263 | func load(_ session: RequestKitURLSession = URLSession.shared) async throws {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
264 | guard let request = request() else {
265 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:294:8: error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
292 | }
293 |
294 | public extension HTTPURLResponse {
| `- error: non-nominal type 'HTTPURLResponse' (aka 'AnyObject') cannot be extended
295 | var wasSuccessful: Bool {
296 | let successRange = 200 ..< 300
[32/176] Compiling RequestKit JSONPostRouter.swift
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:25:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
23 |
24 | public extension JSONPostRouter {
25 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
26 | guard let request = request() else {
27 | return nil
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:72:67: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
70 | #if compiler(>=5.5.2) && canImport(_Concurrency)
71 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
72 | func postJSON<T>(_ session: RequestKitURLSession = URLSession.shared, expectedResultType _: T.Type) async throws -> T? {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
73 | guard let request = request() else {
74 | throw NSError(domain: configuration.errorDomain, code: -876, userInfo: nil)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:95:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
93 | #endif
94 |
95 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
96 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
97 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:105:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
103 | }
104 |
105 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, decoder: JSONDecoder = JSONDecoder(), expectedResultType _: T.Type,
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
106 | completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
107 | {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:152:74: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
150 | #if compiler(>=5.5.2) && canImport(_Concurrency)
151 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
152 | func post<T: Decodable>(_ session: RequestKitURLSession = URLSession.shared, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type) async throws -> T {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
153 | let decoder = JSONDecoder()
154 | if let dateDecodingStrategy = dateDecodingStrategy {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:60:80: error: cannot find type 'URLRequest' in scope
58 |
59 | func urlQuery(_ parameters: [String: Any]) -> [URLQueryItem]?
60 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
61 | func loadJSON<T: Decodable>(_ session: RequestKitURLSession, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void) -> URLSessionDataTaskProtocol?
62 | func load<T: Decodable>(_ session: RequestKitURLSession, dateDecodingStrategy: JSONDecoder.DateDecodingStrategy?, expectedResultType: T.Type,
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:133:80: error: cannot find type 'URLRequest' in scope
131 | }
132 |
133 | func request(_ urlComponents: URLComponents, parameters: [String: Any]) -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
134 | var urlComponents = urlComponents
135 | urlComponents.percentEncodedQuery = urlQuery(parameters)?.map { [$0.name, $0.value ?? ""].joined(separator: "=") }.joined(separator: "&")
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:66:23: error: cannot find type 'URLRequest' in scope
64 | func load<T: Decodable>(_ session: RequestKitURLSession, decoder: JSONDecoder, expectedResultType: T.Type, completion: @escaping (_ json: T?, _ error: Error?) -> Void)
65 | -> URLSessionDataTaskProtocol?
66 | func request() -> URLRequest?
| `- error: cannot find type 'URLRequest' in scope
67 |
68 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/Router.swift:79:23: error: cannot find type 'URLRequest' in scope
77 |
78 | public extension Router {
79 | func request() -> URLRequest? {
| `- error: cannot find type 'URLRequest' in scope
80 | let url = URL(string: path, relativeTo: URL(string: configuration.apiEndpoint)!)
81 | var parameters = encoding == .json ? [:] : params
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:40:30: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
38 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
39 | if let response = response as? HTTPURLResponse {
40 | if !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
41 | var userInfo = [String: Any]()
42 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:78:90: error: 'nil' requires a contextual type
76 |
77 | let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
78 | let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
| `- error: 'nil' requires a contextual type
79 | if let response = responseTuple.1 as? HTTPURLResponse {
80 | if !response.wasSuccessful {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:121:71: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
119 |
120 | let task = session.uploadTask(with: request, fromData: data) { data, response, error in
121 | if let response = response as? HTTPURLResponse, !response.wasSuccessful {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'wasSuccessful'
122 | var userInfo = [String: Any]()
123 | if let data = data, let json = try? JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String: Any] {
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/JSONPostRouter.swift:167:90: error: 'nil' requires a contextual type
165 |
166 | let data = try JSONSerialization.data(withJSONObject: params, options: JSONSerialization.WritingOptions())
167 | let responseTuple = try await session.upload(for: request, from: data, delegate: nil)
| `- error: 'nil' requires a contextual type
168 | if let response = responseTuple.1 as? HTTPURLResponse, response.wasSuccessful == false {
169 | var userInfo = [String: Any]()
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:33: error: cannot find type 'URLRequest' in scope
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:7:82: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
5 |
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
9 |
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:35: error: cannot find type 'URLRequest' in scope
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: cannot find type 'URLRequest' in scope
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:8:110: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
6 | public protocol RequestKitURLSession {
7 | func dataTask(with request: URLRequest, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Swift.Void) -> URLSessionDataTaskProtocol
8 | func uploadTask(with request: URLRequest, fromData bodyData: Data?, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> URLSessionDataTaskProtocol
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
9 |
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:28: error: cannot find type 'URLRequest' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:50: error: cannot find type 'URLSessionTaskDelegate' in scope
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:12:98: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
10 | #if compiler(>=5.5.2) && canImport(_Concurrency)
11 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
12 | func data(for request: URLRequest, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:30: error: cannot find type 'URLRequest' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLRequest' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:73: error: cannot find type 'URLSessionTaskDelegate' in scope
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: cannot find type 'URLSessionTaskDelegate' in scope
16 | #endif
17 | }
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:15:121: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 |
14 | @available(macOS 12.0, iOS 15.0, tvOS 15.0, watchOS 8.0, *)
15 | func upload(for request: URLRequest, from bodyData: Data, delegate: URLSessionTaskDelegate?) async throws -> (Data, URLResponse)
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 | #endif
17 | }
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/RequestKit/Sources/RequestKit/RequestKitSession.swift:23:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
21 | }
22 |
23 | extension URLSessionDataTask: URLSessionDataTaskProtocol {}
| `- error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
24 |
25 | extension URLSession: RequestKitURLSession {
[33/176] Compiling SwiftSyntax SyntaxArena.swift
[34/176] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[35/176] Compiling SwiftSyntax SyntaxChildren.swift
[36/176] Compiling SwiftSyntax SyntaxCollection.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/176] Emitting module SwiftIndexStore
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
22 | typealias Dylib = UnsafeMutableRawPointer
23 |
24 | var flags = RTLD_LAZY | RTLD_LOCAL
| `- error: cannot find 'RTLD_LAZY' in scope
25 |
26 | #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
22 | typealias Dylib = UnsafeMutableRawPointer
23 |
24 | var flags = RTLD_LAZY | RTLD_LOCAL
| `- error: cannot find 'RTLD_LOCAL' in scope
25 |
26 | #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
28 | #endif
29 |
30 | let dylib = dlopen(url.path, flags)!
| `- error: cannot find 'dlopen' in scope
31 | var api = indexstore_functions_t()
32 | func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/Process+Extension.swift:3:11: error: cannot find type 'Process' in scope
1 | import Foundation
2 |
3 | extension Process {
| `- error: cannot find type 'Process' in scope
4 | enum ProcessError: Error {
5 | case nonZeroExit(
[38/176] Compiling SwiftIndexStore Process+Extension.swift
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/Process+Extension.swift:3:11: error: cannot find type 'Process' in scope
1 | import Foundation
2 |
3 | extension Process {
| `- error: cannot find type 'Process' in scope
4 | enum ProcessError: Error {
5 | case nonZeroExit(
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/Process+Extension.swift:6:13: error: cannot find type 'TerminationReason' in scope
4 | enum ProcessError: Error {
5 | case nonZeroExit(
6 | TerminationReason, Int32, command: String,
| `- error: cannot find type 'TerminationReason' in scope
7 | stdout: String, stderr: String
8 | )
[39/176] Emitting module FilenameMatcher
BUILD FAILURE 6.1 wasm