Build Information
Failed to build app-store-reviews, reference main (1d0b23
), with Swift 6.1 for Wasm on 27 May 2025 23:34:11 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/jcoynel/app-store-reviews-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/jcoynel/app-store-reviews-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 1d0b23a Set library version to 1.0.0
Cloned https://github.com/jcoynel/app-store-reviews-swift.git
Revision (git rev-parse @):
1d0b23a7e8f780d6534a0b6daa7e8076066dcd30
SUCCESS checkout https://github.com/jcoynel/app-store-reviews-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.1
Building package at path: $PWD
https://github.com/jcoynel/app-store-reviews-swift.git
https://github.com/jcoynel/app-store-reviews-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
"dependencies" : [
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.0",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.3.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "app-store-reviews",
"name" : "app-store-reviews",
"path" : "/host/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "13.0"
},
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "AppStoreReviews",
"targets" : [
"AppStoreReviews"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "app-store-reviews",
"targets" : [
"app-store-reviews"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "app_store_reviews",
"module_type" : "SwiftTarget",
"name" : "app-store-reviews",
"path" : "Sources/app-store-reviews",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"app-store-reviews"
],
"sources" : [
"Subcommands/Page.swift",
"Subcommands/Reviews.swift",
"Subcommands/Territories.swift",
"Utilities/Output.swift",
"Utilities/TerritoryExtensions.swift",
"VersionOptions.swift",
"main.swift"
],
"target_dependencies" : [
"AppStoreReviews"
],
"type" : "executable"
},
{
"c99name" : "AppStoreReviewsTests",
"module_type" : "SwiftTarget",
"name" : "AppStoreReviewsTests",
"path" : "Tests/AppStoreReviewsTests",
"resources" : [
{
"path" : "/host/spi-builder-workspace/Tests/AppStoreReviewsTests/TestData",
"rule" : {
"copy" : {
}
}
}
],
"sources" : [
"DecodableFeedTests.swift",
"FeedLoaderTests.swift",
"Internal/MockURLProtocol.swift",
"Internal/TestData.swift",
"Models/FeedTests.swift",
"PageExtensionsTests.swift",
"ReviewsLoaderTests.swift",
"TerritoryTests.swift",
"URLExtensionsTests.swift"
],
"target_dependencies" : [
"AppStoreReviews"
],
"type" : "test"
},
{
"c99name" : "AppStoreReviews",
"module_type" : "SwiftTarget",
"name" : "AppStoreReviews",
"path" : "Sources/AppStoreReviews",
"product_dependencies" : [
"Logging"
],
"product_memberships" : [
"AppStoreReviews",
"app-store-reviews"
],
"sources" : [
"FeedLoader.swift",
"Internal/DecodableFeed.swift",
"Internal/Logging.swift",
"Internal/ModelsConversion.swift",
"Models/Feed.Author.swift",
"Models/Feed.Entry.swift",
"Models/Feed.Links.swift",
"Models/Feed.swift",
"Models/Page.swift",
"Models/Territory.swift",
"PageExtensions.swift",
"ReviewsLoader.swift",
"URLExtensions.swift",
"Version.swift"
],
"type" : "library"
}
],
"tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
[1/15351] Fetching swift-argument-parser
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/apple/swift-argument-parser from cache (1.31s)
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.33s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (3.71s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.96s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Building for debugging...
[0/13] Write sources
[5/13] Write swift-version-24593BA9C3E375BF.txt
[7/20] Emitting module ArgumentParserToolInfo
[8/20] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/21] Wrapping AST for ArgumentParserToolInfo for debugging
[11/21] Compiling Logging Logging.swift
[12/21] Compiling Logging LogHandler.swift
[13/21] Compiling Logging Locks.swift
[14/21] Emitting module Logging
[15/21] Compiling Logging MetadataProvider.swift
[16/56] Wrapping AST for Logging for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[18/70] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[19/74] Compiling AppStoreReviews FeedLoader.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
[20/74] Compiling AppStoreReviews DecodableFeed.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
[21/74] Compiling AppStoreReviews Logging.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
[22/74] Compiling AppStoreReviews ModelsConversion.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
[23/74] Compiling AppStoreReviews Feed.Links.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
[24/74] Compiling ArgumentParser CollectionExtensions.swift
[25/74] Compiling ArgumentParser SequenceExtensions.swift
[26/74] Compiling ArgumentParser StringExtensions.swift
[27/74] Compiling ArgumentParser Tree.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[28/74] Emitting module AppStoreReviews
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public typealias Completion = (Result<Feed, FeedLoader.Error>) -> Void
14 |
15 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Initialize with a URLSession.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.urlSession = urlSession
21 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.urlSession = urlSession
21 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:50:91: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Returns: The `URLSessionDataTask` created to fetch the content, or `nil` in case of
49 | /// failure.
50 | @discardableResult public func fetch(page: Page, completion: @escaping Completion) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let url = URL(page) else {
52 | completion(.failure(.invalidURL))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:77:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | guard let httpResponse = response as? HTTPURLResponse else {
79 | throw FeedLoader.Error.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias Completion = (Result<[Feed.Entry], ReviewsLoader.Error>) -> Void
12 |
13 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let urlSession: URLSession
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | private var fetchedReviews = [Feed.Entry]()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
[29/74] Compiling AppStoreReviews URLExtensions.swift
[30/74] Compiling AppStoreReviews Page.swift
[31/74] Compiling AppStoreReviews Territory.swift
[32/75] Compiling AppStoreReviews Feed.Author.swift
[33/75] Compiling AppStoreReviews Feed.Entry.swift
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public typealias Completion = (Result<Feed, FeedLoader.Error>) -> Void
14 |
15 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Initialize with a URLSession.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.urlSession = urlSession
21 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.urlSession = urlSession
21 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:50:91: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Returns: The `URLSessionDataTask` created to fetch the content, or `nil` in case of
49 | /// failure.
50 | @discardableResult public func fetch(page: Page, completion: @escaping Completion) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let url = URL(page) else {
52 | completion(.failure(.invalidURL))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:77:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | guard let httpResponse = response as? HTTPURLResponse else {
79 | throw FeedLoader.Error.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:55:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | return nil
54 | }
55 | let task = urlSession.dataTask(with: url) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | if let error = error {
57 | completion(.failure(.networkError(underlyingError: error)))
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:61:40: error: argument type '_' expected to be an instance of a class or class-constrained type
59 | }
60 | do {
61 | try validate(response: response)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
62 |
63 | let feed = try decode(feedData: data)
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
79 | throw FeedLoader.Error.invalidResponse
80 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | throw FeedLoader.Error.invalidResponse
80 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:81:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 | throw FeedLoader.Error.invalidResponse
80 | }
81 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
83 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
80 | }
81 | guard httpResponse.statusCode == 200 else {
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | }
84 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public typealias Completion = (Result<Feed, FeedLoader.Error>) -> Void
14 |
15 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Initialize with a URLSession.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.urlSession = urlSession
21 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.urlSession = urlSession
21 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:50:91: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Returns: The `URLSessionDataTask` created to fetch the content, or `nil` in case of
49 | /// failure.
50 | @discardableResult public func fetch(page: Page, completion: @escaping Completion) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let url = URL(page) else {
52 | completion(.failure(.invalidURL))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:77:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | guard let httpResponse = response as? HTTPURLResponse else {
79 | throw FeedLoader.Error.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:55:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | return nil
54 | }
55 | let task = urlSession.dataTask(with: url) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | if let error = error {
57 | completion(.failure(.networkError(underlyingError: error)))
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:61:40: error: argument type '_' expected to be an instance of a class or class-constrained type
59 | }
60 | do {
61 | try validate(response: response)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
62 |
63 | let feed = try decode(feedData: data)
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
79 | throw FeedLoader.Error.invalidResponse
80 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | throw FeedLoader.Error.invalidResponse
80 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:81:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 | throw FeedLoader.Error.invalidResponse
80 | }
81 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
83 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
80 | }
81 | guard httpResponse.statusCode == 200 else {
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | }
84 | }
[39/75] Compiling AppStoreReviews Feed.swift
[40/75] Compiling AppStoreReviews Version.swift
[41/75] Compiling AppStoreReviews PageExtensions.swift
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias Completion = (Result<[Feed.Entry], ReviewsLoader.Error>) -> Void
12 |
13 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let urlSession: URLSession
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | private var fetchedReviews = [Feed.Entry]()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:66:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
64 |
65 | private func clearDownloads() {
66 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
67 | fetchedReviews.removeAll()
68 | }
[42/75] Compiling AppStoreReviews ReviewsLoader.swift
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias Completion = (Result<[Feed.Entry], ReviewsLoader.Error>) -> Void
12 |
13 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let urlSession: URLSession
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | private var fetchedReviews = [Feed.Entry]()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:66:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
64 |
65 | private func clearDownloads() {
66 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
67 | fetchedReviews.removeAll()
68 | }
[43/75] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[44/75] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[45/75] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[46/75] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[47/75] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[48/75] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[49/75] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[50/75] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[51/75] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/8] Write swift-version-24593BA9C3E375BF.txt
[2/15] Compiling Logging MetadataProvider.swift
[3/15] Compiling ArgumentParserToolInfo ToolInfo.swift
[4/15] Emitting module ArgumentParserToolInfo
[6/16] Compiling Logging Logging.swift
[7/16] Compiling Logging LogHandler.swift
[8/16] Emitting module Logging
[9/16] Compiling Logging Locks.swift
[10/16] Wrapping AST for Logging for debugging
[12/64] Compiling AppStoreReviews URLExtensions.swift
[13/65] Compiling ArgumentParser ParsableArguments.swift
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias Completion = (Result<[Feed.Entry], ReviewsLoader.Error>) -> Void
12 |
13 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let urlSession: URLSession
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | private var fetchedReviews = [Feed.Entry]()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:66:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
64 |
65 | private func clearDownloads() {
66 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
67 | fetchedReviews.removeAll()
68 | }
[14/65] Compiling ArgumentParser ParsableArgumentsValidation.swift
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias Completion = (Result<[Feed.Entry], ReviewsLoader.Error>) -> Void
12 |
13 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let urlSession: URLSession
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | private var fetchedReviews = [Feed.Entry]()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:66:15: error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
64 |
65 | private func clearDownloads() {
66 | task?.cancel()
| `- error: value of type 'URLSessionDataTask' (aka 'AnyObject') has no member 'cancel'
67 | fetchedReviews.removeAll()
68 | }
[15/65] Compiling AppStoreReviews Version.swift
[16/65] Compiling ArgumentParser Argument.swift
[17/65] Compiling ArgumentParser Option.swift
[18/65] Compiling ArgumentParser FishCompletionsGenerator.swift
[19/65] Compiling ArgumentParser ZshCompletionsGenerator.swift
[20/65] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public typealias Completion = (Result<Feed, FeedLoader.Error>) -> Void
14 |
15 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Initialize with a URLSession.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.urlSession = urlSession
21 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.urlSession = urlSession
21 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:50:91: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Returns: The `URLSessionDataTask` created to fetch the content, or `nil` in case of
49 | /// failure.
50 | @discardableResult public func fetch(page: Page, completion: @escaping Completion) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let url = URL(page) else {
52 | completion(.failure(.invalidURL))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:77:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | guard let httpResponse = response as? HTTPURLResponse else {
79 | throw FeedLoader.Error.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:55:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | return nil
54 | }
55 | let task = urlSession.dataTask(with: url) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | if let error = error {
57 | completion(.failure(.networkError(underlyingError: error)))
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:61:40: error: argument type '_' expected to be an instance of a class or class-constrained type
59 | }
60 | do {
61 | try validate(response: response)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
62 |
63 | let feed = try decode(feedData: data)
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
79 | throw FeedLoader.Error.invalidResponse
80 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | throw FeedLoader.Error.invalidResponse
80 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:81:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 | throw FeedLoader.Error.invalidResponse
80 | }
81 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
83 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
80 | }
81 | guard httpResponse.statusCode == 200 else {
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | }
84 | }
[21/65] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public typealias Completion = (Result<Feed, FeedLoader.Error>) -> Void
14 |
15 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Initialize with a URLSession.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.urlSession = urlSession
21 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.urlSession = urlSession
21 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:50:91: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Returns: The `URLSessionDataTask` created to fetch the content, or `nil` in case of
49 | /// failure.
50 | @discardableResult public func fetch(page: Page, completion: @escaping Completion) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let url = URL(page) else {
52 | completion(.failure(.invalidURL))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:77:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | guard let httpResponse = response as? HTTPURLResponse else {
79 | throw FeedLoader.Error.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:55:31: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
53 | return nil
54 | }
55 | let task = urlSession.dataTask(with: url) { (data, response, error) in
| `- error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
56 | if let error = error {
57 | completion(.failure(.networkError(underlyingError: error)))
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:61:40: error: argument type '_' expected to be an instance of a class or class-constrained type
59 | }
60 | do {
61 | try validate(response: response)
| `- error: argument type '_' expected to be an instance of a class or class-constrained type
62 |
63 | let feed = try decode(feedData: data)
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:43: warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- warning: conditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing
79 | throw FeedLoader.Error.invalidResponse
80 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:78:47: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
78 | guard let httpResponse = response as? HTTPURLResponse else {
| `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
79 | throw FeedLoader.Error.invalidResponse
80 | }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
| `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:81:28: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
79 | throw FeedLoader.Error.invalidResponse
80 | }
81 | guard httpResponse.statusCode == 200 else {
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
83 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:82:81: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
80 | }
81 | guard httpResponse.statusCode == 200 else {
82 | throw FeedLoader.Error.invalidHTTPResponseStatus(code: httpResponse.statusCode)
| `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
83 | }
84 | }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/65] Emitting module AppStoreReviews
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:15:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | public typealias Completion = (Result<Feed, FeedLoader.Error>) -> Void
14 |
15 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | /// Initialize with a URLSession.
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
20 | self.urlSession = urlSession
21 | }
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:19:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
20 | self.urlSession = urlSession
21 | }
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:50:91: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
48 | /// - Returns: The `URLSessionDataTask` created to fetch the content, or `nil` in case of
49 | /// failure.
50 | @discardableResult public func fetch(page: Page, completion: @escaping Completion) -> URLSessionDataTask? {
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
51 | guard let url = URL(page) else {
52 | completion(.failure(.invalidURL))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/FeedLoader.swift:77:37: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
75 |
76 | extension FeedLoader {
77 | private func validate(response: URLResponse?) throws {
| `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
78 | guard let httpResponse = response as? HTTPURLResponse else {
79 | throw FeedLoader.Error.invalidResponse
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
| `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:13:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
11 | public typealias Completion = (Result<[Feed.Entry], ReviewsLoader.Error>) -> Void
12 |
13 | private let urlSession: URLSession
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:15:23: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
13 | private let urlSession: URLSession
14 | private let downloader: FeedLoader
15 | private var task: URLSessionDataTask?
| `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
16 |
17 | private var fetchedReviews = [Feed.Entry]()
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' 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 URLSessionDataTask = AnyObject
| `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:29: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
Foundation.URLSession:2:18: note: 'URLSession' 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 URLSession = AnyObject
| `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:53: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
error: emit-module command failed with exit code 1 (use -v to see invocation)
[23/65] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[26/69] Compiling ArgumentParser ParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[27/69] Compiling ArgumentParser ArgumentDecoder.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[28/69] Compiling ArgumentParser ArgumentDefinition.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:31: error: cannot find 'putc' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'putc' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:55: error: cannot find 'stderr' in scope
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: cannot find 'stderr' in scope
64 | }
65 | }
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:63:36: error: generic parameter 'U' could not be inferred
61 | struct StandardError: TextOutputStream {
62 | mutating func write(_ string: String) {
63 | for byte in string.utf8 { putc(numericCast(byte), stderr) }
| `- error: generic parameter 'U' could not be inferred
64 | }
65 | }
Swift.numericCast:1:24: note: in call to function 'numericCast'
1 | @inlinable public func numericCast<T, U>(_ x: T) -> U where T : BinaryInteger, U : BinaryInteger
| `- note: in call to function 'numericCast'
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:185:7: error: cannot find '_exit' in scope
183 | ) -> Never {
184 | guard let error = error else {
185 | _exit(ExitCode.success.rawValue)
| `- error: cannot find '_exit' in scope
186 | }
187 |
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Types/ParsableArguments.swift:197:5: error: cannot find '_exit' in scope
195 | }
196 | }
197 | _exit(messageInfo.exitCode.rawValue)
| `- error: cannot find '_exit' in scope
198 | }
199 |
[29/69] Compiling ArgumentParser OptionGroup.swift
[30/69] Compiling ArgumentParser CommandConfiguration.swift
[31/69] Compiling ArgumentParser EnumerableFlag.swift
[32/69] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
47 | #else
48 | // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
49 | guard let shellVar = getenv("SHELL") else { return nil }
| `- error: cannot find 'getenv' in scope
50 | let shellParts = String(cString: shellVar).split(separator: "/")
51 | return CompletionShell(rawValue: String(shellParts.last ?? ""))
[38/69] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[39/69] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[40/69] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[41/69] Compiling ArgumentParser Flag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[42/69] Compiling ArgumentParser NameSpecification.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
62 |
63 | /// An exit code that indicates that the command failed.
64 | public static let failure = ExitCode(EXIT_FAILURE)
| `- error: cannot find 'EXIT_FAILURE' in scope
65 |
66 | /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[48/69] Compiling ArgumentParser HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[49/69] Compiling ArgumentParser HelpGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[50/69] Compiling ArgumentParser MessageInfo.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
[51/69] Compiling ArgumentParser UsageGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 | height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 | var w = winsize()
| `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 | // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'ioctl' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 | let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 | let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
| `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 | let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
59 |
60 | /// An exit code that indicates successful completion of a command.
61 | public static let success = ExitCode(EXIT_SUCCESS)
| `- error: cannot find 'EXIT_SUCCESS' in scope
62 |
63 | /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
68 | public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
69 | #else
70 | public static let validationFailure = ExitCode(EX_USAGE)
| `- error: cannot find 'EX_USAGE' in scope
71 | #endif
72 |
BUILD FAILURE 6.1 wasm