Build Information
Failed to build app-store-reviews, reference main (1d0b23), with Swift 6.3 for Wasm on 12 Apr 2026 05:13:56 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
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.3
Building package at path: $PWD
https://github.com/jcoynel/app-store-reviews-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-argument-parser
[1/17523] Fetching swift-argument-parser
[352/24044] Fetching swift-argument-parser, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.55s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.85s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (1.31s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.11.0 (0.44s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.11.0
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/21] Emitting module ArgumentParserToolInfo
[8/21] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/22] Wrapping AST for ArgumentParserToolInfo for debugging
[11/38] Compiling Logging MetadataProvider.swift
[12/38] Compiling Logging LogEvent.swift
[13/39] Compiling Logging LogHandler.swift
[14/39] Compiling Logging Locks.swift
[15/42] Compiling Logging Logging.swift
[16/42] Emitting module Logging
[17/57] Wrapping AST for Logging for debugging
[19/71] Compiling AppStoreReviews Feed.Entry.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 |
[20/71] Compiling AppStoreReviews Feed.Links.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 |
[21/71] Compiling AppStoreReviews Feed.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 |
[22/71] Compiling AppStoreReviews Page.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 |
[23/71] Compiling AppStoreReviews Territory.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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[24/75] 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 |
[25/75] 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 ?? ""))
[26/75] 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 ?? ""))
[27/75] 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 ?? ""))
[28/75] 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 ?? ""))
[29/75] Compiling AppStoreReviews Feed.Author.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 ?? ""))
[30/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 |
[31/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 |
[32/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 |
[33/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 |
[34/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 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[37/76] 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:19:53: error: default argument value of type '_' cannot be converted to type 'AnyObject'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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)
/host/spi-builder-workspace/Sources/AppStoreReviews/ReviewsLoader.swift:21:53: error: default argument value of type '_' cannot be converted to type 'AnyObject'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
22 | self.urlSession = urlSession
23 | self.downloader = FeedLoader(urlSession: urlSession)
/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:19:53: error: default argument value of type '_' cannot be converted to type 'AnyObject'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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: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:19:53: error: default argument value of type '_' cannot be converted to type 'AnyObject'
17 | /// Initialize with a URLSession.
18 | /// - Parameter urlSession: The URLSession to use to perform downloads.
19 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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: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 | }
[42/76] Compiling AppStoreReviews URLExtensions.swift
[43/76] Compiling AppStoreReviews Version.swift
[44/76] Compiling ArgumentParser Option.swift
[45/76] Compiling ArgumentParser OptionGroup.swift
[46/76] Compiling ArgumentParser CommandConfiguration.swift
[47/76] Compiling ArgumentParser EnumerableFlag.swift
[48/76] Compiling ArgumentParser ExpressibleByArgument.swift
[49/76] 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 |
[50/76] 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 |
[51/76] 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 |
[52/76] 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 |
[53/76] 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:21:53: error: default argument value of type '_' cannot be converted to type 'AnyObject'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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 | }
[54/76] 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:21:53: error: default argument value of type '_' cannot be converted to type 'AnyObject'
19 | /// Initialize with a URLSession.
20 | /// - Parameter urlSession: The URLSession to use to perform downloads.
21 | public init(urlSession: URLSession = URLSession.shared) {
| `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
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 | }
[59/76] Compiling ArgumentParser CollectionExtensions.swift
[60/76] Compiling ArgumentParser SequenceExtensions.swift
[61/76] Compiling ArgumentParser StringExtensions.swift
[62/76] Compiling ArgumentParser Tree.swift
BUILD FAILURE 6.3 wasm