The Swift Package Index logo.Swift Package Index

Build Information

Failed to build BartyCrouch, reference 4.15.1 (fe8811), with Swift 6.1 for Wasm on 28 May 2025 19:10:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/FlineDev/BartyCrouch.git
Reference: 4.15.1
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/FlineDev/BartyCrouch
 * tag               4.15.1     -> FETCH_HEAD
HEAD is now at fe88110 Merge branch 'release/4.15.1' into versions
Cloned https://github.com/FlineDev/BartyCrouch.git
Revision (git rev-parse @):
fe88110ab0af3d1281138b63159e20a7450383fa
SUCCESS checkout https://github.com/FlineDev/BartyCrouch.git at 4.15.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/FlineDev/BartyCrouch.git
https://github.com/FlineDev/BartyCrouch.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "handyswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.2.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Flinesoft/HandySwift.git"
    },
    {
      "identity" : "microya",
      "requirement" : {
        "branch" : [
          "support/without-combine"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Flinesoft/Microya.git"
    },
    {
      "identity" : "mungohealer",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.4",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Flinesoft/MungoHealer.git"
    },
    {
      "identity" : "rainbow",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.1.5",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/onevcat/Rainbow.git"
    },
    {
      "identity" : "swiftcli",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "6.0.3",
            "upper_bound" : "7.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jakeheis/SwiftCLI.git"
    },
    {
      "identity" : "swift-toml",
      "requirement" : {
        "branch" : [
          "master"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jdfergason/swift-toml.git"
    },
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "508.0.0",
            "upper_bound" : "509.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    },
    {
      "identity" : "swift-custom-dump",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-custom-dump.git"
    }
  ],
  "manifest_display_name" : "BartyCrouch",
  "name" : "BartyCrouch",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "bartycrouch",
      "targets" : [
        "BartyCrouch"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "BartyCrouchConfiguration",
      "targets" : [
        "BartyCrouchConfiguration"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BartyCrouchKit",
      "targets" : [
        "BartyCrouchKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "BartyCrouchTranslator",
      "targets" : [
        "BartyCrouchTranslator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "BartyCrouchUtility",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouchUtility",
      "path" : "Sources/BartyCrouchUtility",
      "product_memberships" : [
        "bartycrouch",
        "BartyCrouchConfiguration",
        "BartyCrouchKit"
      ],
      "sources" : [
        "Constants.swift",
        "Secret.swift",
        "Transformer.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BartyCrouchTranslatorTests",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouchTranslatorTests",
      "path" : "Tests/BartyCrouchTranslatorTests",
      "sources" : [
        "DeepLTranslatorApiTests.swift",
        "MicrosoftTranslatorApiTests.swift",
        "Secrets/Secrets.swift"
      ],
      "target_dependencies" : [
        "BartyCrouchTranslator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BartyCrouchTranslator",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouchTranslator",
      "path" : "Sources/BartyCrouchTranslator",
      "product_dependencies" : [
        "HandySwift",
        "Microya",
        "MungoHealer"
      ],
      "product_memberships" : [
        "bartycrouch",
        "BartyCrouchKit",
        "BartyCrouchTranslator"
      ],
      "sources" : [
        "BartyCrouchTranslator.swift",
        "DeeplApi/DeepLApi.swift",
        "DeeplApi/Model/DeepLTranslateErrorResponse.swift",
        "DeeplApi/Model/DeepLTranslateResponse.swift",
        "MicrosoftTranslatorApi/MicrosoftTranslatorApi.swift",
        "MicrosoftTranslatorApi/Models/Language.swift",
        "MicrosoftTranslatorApi/Models/TranslateRequest.swift",
        "MicrosoftTranslatorApi/Models/TranslateResponse.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BartyCrouchKitTests",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouchKitTests",
      "path" : "Tests/BartyCrouchKitTests",
      "sources" : [
        "CommandLine/CommandLineActorTests.swift",
        "CommandLine/CommandLineParserTests.swift",
        "CommandLine/ExtractLocStringsCommanderTests.swift",
        "CommandLine/ExtractLocStringsTests.swift",
        "CommandLine/FindFilesTests.swift",
        "CommandLine/IBToolCommanderTests.swift",
        "DemoTests/DemoData.swift",
        "DemoTests/DemoTests.swift",
        "DemoTests/Directory.swift",
        "FileHandling/CodeFileHandlerTests.swift",
        "FileHandling/CodeFilesSearchTests.swift",
        "FileHandling/StringsFileUpdaterTests.swift",
        "FileHandling/StringsFilesSearchTests.swift",
        "Helpers/FileManagerExtension.swift"
      ],
      "target_dependencies" : [
        "BartyCrouchKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BartyCrouchKit",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouchKit",
      "path" : "Sources/BartyCrouchKit",
      "product_dependencies" : [
        "HandySwift",
        "MungoHealer",
        "Rainbow",
        "SwiftCLI",
        "SwiftSyntaxParser",
        "SwiftSyntax"
      ],
      "product_memberships" : [
        "bartycrouch",
        "BartyCrouchKit"
      ],
      "sources" : [
        "Commands/InitCommand.swift",
        "Commands/LintCommand.swift",
        "Commands/UpdateCommand.swift",
        "FileHandling/CodeFileHandler.swift",
        "FileHandling/CodeFilesSearch.swift",
        "FileHandling/FilesSearchable.swift",
        "FileHandling/StringsFileUpdater.swift",
        "FileHandling/StringsFilesSearch.swift",
        "FileHandling/SupportedLanguagesReader.swift",
        "FileHandling/TranslateTransformer.swift",
        "Globals/CommandExecution.swift",
        "Globals/CommandLineErrorHandler.swift",
        "Globals/Env.swift",
        "Globals/Extensions/ArrayExtension.swift",
        "Globals/Extensions/StringExtension.swift",
        "Globals/GlobalOptions.swift",
        "Globals/PrintLevel.swift",
        "Globals/TestHelper.swift",
        "OldCommandLine/CodeCommander.swift",
        "OldCommandLine/CommandLineActor.swift",
        "OldCommandLine/ExtractLocStrings.swift",
        "OldCommandLine/IBToolCommander.swift",
        "TaskHandlers/CodeTaskHandler.swift",
        "TaskHandlers/InitTaskHandler.swift",
        "TaskHandlers/InterfacesTaskHandler.swift",
        "TaskHandlers/LintTaskHandler.swift",
        "TaskHandlers/NormalizeTaskHandler.swift",
        "TaskHandlers/TaskHandler.swift",
        "TaskHandlers/TransformTaskHandler.swift",
        "TaskHandlers/TranslateTaskHandler.swift"
      ],
      "target_dependencies" : [
        "BartyCrouchConfiguration",
        "BartyCrouchTranslator",
        "BartyCrouchUtility"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BartyCrouchConfigurationTests",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouchConfigurationTests",
      "path" : "Tests/BartyCrouchConfigurationTests",
      "product_dependencies" : [
        "CustomDump",
        "Toml"
      ],
      "sources" : [
        "ConfigurationTests.swift"
      ],
      "target_dependencies" : [
        "BartyCrouchConfiguration"
      ],
      "type" : "test"
    },
    {
      "c99name" : "BartyCrouchConfiguration",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouchConfiguration",
      "path" : "Sources/BartyCrouchConfiguration",
      "product_dependencies" : [
        "MungoHealer",
        "Toml"
      ],
      "product_memberships" : [
        "bartycrouch",
        "BartyCrouchConfiguration",
        "BartyCrouchKit"
      ],
      "sources" : [
        "Configuration.swift",
        "Extensions/TomlExtension.swift",
        "Options/LintOptions.swift",
        "Options/UpdateOptions.swift",
        "Options/UpdateOptions/CodeOptions.swift",
        "Options/UpdateOptions/InterfacesOptions.swift",
        "Options/UpdateOptions/NormalizeOptions.swift",
        "Options/UpdateOptions/TransformOptions.swift",
        "Options/UpdateOptions/TranslateOptions.swift",
        "TomlCodable.swift"
      ],
      "target_dependencies" : [
        "BartyCrouchUtility"
      ],
      "type" : "library"
    },
    {
      "c99name" : "BartyCrouch",
      "module_type" : "SwiftTarget",
      "name" : "BartyCrouch",
      "path" : "Sources/BartyCrouch",
      "product_memberships" : [
        "bartycrouch"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "BartyCrouchKit"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.4"
}
warning: 'spi-builder-workspace': Invalid Resource 'Secrets/secrets.json': File not found.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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/Flinesoft/Microya.git
[1/824] Fetching microya
Fetched https://github.com/Flinesoft/Microya.git from cache (0.29s)
Fetching https://github.com/jdfergason/swift-toml.git
[1/582] Fetching swift-toml
Fetched https://github.com/jdfergason/swift-toml.git from cache (0.20s)
Fetching https://github.com/Flinesoft/MungoHealer.git
Fetching https://github.com/apple/swift-syntax.git
Fetching https://github.com/onevcat/Rainbow.git
Fetching https://github.com/pointfreeco/swift-custom-dump.git
Fetching https://github.com/jakeheis/SwiftCLI.git
Fetching https://github.com/Flinesoft/HandySwift.git
[1/4581] Fetching swift-custom-dump
[2109/9655] Fetching swift-custom-dump, swiftcli
[6917/10851] Fetching swift-custom-dump, swiftcli, rainbow
[8279/11299] Fetching swift-custom-dump, swiftcli, rainbow, mungohealer
[11300/14667] Fetching swift-custom-dump, swiftcli, rainbow, mungohealer, handyswift
Fetched https://github.com/Flinesoft/MungoHealer.git from cache (0.56s)
[13310/14219] Fetching swift-custom-dump, swiftcli, rainbow, handyswift
Fetched https://github.com/pointfreeco/swift-custom-dump.git from cache (0.58s)
[8830/9638] Fetching swiftcli, rainbow, handyswift
Fetched https://github.com/onevcat/Rainbow.git from cache (0.69s)
Fetched https://github.com/jakeheis/SwiftCLI.git from cache (0.70s)
Fetched https://github.com/Flinesoft/HandySwift.git from cache (0.70s)
[1/70449] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (7.37s)
Computing version for https://github.com/jakeheis/SwiftCLI.git
Computed https://github.com/jakeheis/SwiftCLI.git at 6.0.3 (8.29s)
Computing version for https://github.com/Flinesoft/MungoHealer.git
Computed https://github.com/Flinesoft/MungoHealer.git at 0.3.4 (0.91s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 508.0.1 (1.01s)
Computing version for https://github.com/onevcat/Rainbow.git
Computed https://github.com/onevcat/Rainbow.git at 3.2.0 (3.42s)
Computing version for https://github.com/Flinesoft/HandySwift.git
Computed https://github.com/Flinesoft/HandySwift.git at 3.4.0 (0.90s)
Computing version for https://github.com/pointfreeco/swift-custom-dump.git
Computed https://github.com/pointfreeco/swift-custom-dump.git at 0.11.2 (0.97s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5458] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (1.07s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (2.04s)
Creating working copy for https://github.com/pointfreeco/swift-custom-dump.git
Working copy of https://github.com/pointfreeco/swift-custom-dump.git resolved at 0.11.2
Creating working copy for https://github.com/onevcat/Rainbow.git
Working copy of https://github.com/onevcat/Rainbow.git resolved at 3.2.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 508.0.1
Creating working copy for https://github.com/Flinesoft/Microya.git
Working copy of https://github.com/Flinesoft/Microya.git resolved at support/without-combine (bdb03dd)
Creating working copy for https://github.com/jakeheis/SwiftCLI.git
Working copy of https://github.com/jakeheis/SwiftCLI.git resolved at 6.0.3
Creating working copy for https://github.com/Flinesoft/HandySwift.git
Working copy of https://github.com/Flinesoft/HandySwift.git resolved at 3.4.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 0.9.0
Creating working copy for https://github.com/jdfergason/swift-toml.git
Working copy of https://github.com/jdfergason/swift-toml.git resolved at master (f26573b)
Creating working copy for https://github.com/Flinesoft/MungoHealer.git
Working copy of https://github.com/Flinesoft/MungoHealer.git resolved at 0.3.4
warning: 'spi-builder-workspace': Invalid Resource 'Secrets/secrets.json': File not found.
Building for debugging...
[0/40] Write sources
[13/40] Copying Localizable.strings
[13/40] Copying Info.plist
[18/40] Write swift-version-24593BA9C3E375BF.txt
[20/173] Emitting module Rainbow
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/174] Emitting module SwiftCLI
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[22/176] Emitting module HandySwift
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Extensions/DispatchTimeIntervalExt.swift:5:11: error: cannot find type 'DispatchTimeInterval' in scope
 3 | import Foundation
 4 |
 5 | extension DispatchTimeInterval {
   |           `- error: cannot find type 'DispatchTimeInterval' in scope
 6 |   /// - Returns: The time in seconds using the`TimeInterval` type.
 7 |   public var timeInterval: TimeInterval {
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:53: error: cannot find type 'DispatchQoS' in scope
 9 | ///   - qosClass: The global QOS class to be used or `nil` to use the main thread. Defaults to `nil`.
10 | ///   - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
   |                                                     `- error: cannot find type 'DispatchQoS' in scope
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
[23/178] Compiling Rainbow XcodeColorsSupport.swift
[24/178] Compiling Rainbow Style.swift
[25/178] Compiling HandySwift Weak.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[26/178] Compiling SwiftCLI VersionCommand.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[27/178] Compiling Rainbow StringGenerator.swift
[28/178] Compiling Rainbow String+Rainbow.swift
[29/178] Compiling SwiftCLI OptionRegistry.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[30/178] Compiling SwiftCLI Parameter.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[31/178] Compiling SwiftCLI Parser.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[32/178] Compiling BartyCrouchUtility Transformer.swift
[33/178] Compiling SwiftCLI Input.swift
[34/178] Compiling SwiftCLI Option.swift
[35/179] Emitting module Toml
[38/179] Compiling Toml Tokens.swift
[39/179] Compiling BartyCrouchUtility Constants.swift
[40/180] Compiling HandySwift Unowned.swift
[42/180] Compiling SwiftCLI HelpMessageGenerator.swift
[46/180] Compiling BartyCrouchUtility Secret.swift
[47/180] Emitting module BartyCrouchUtility
[48/180] Compiling SwiftCLI Term.swift
[49/180] Compiling SwiftCLI Validation.swift
[50/180] Compiling SwiftCLI Command.swift
[51/180] Compiling SwiftCLI Compatibility.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[54/180] Compiling SwiftCLI OptionGroup.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
 35 |
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
    |                                      `- error: cannot find type 'URLRequest' in scope
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
 39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:38:19: error: cannot find 'URLRequest' in scope
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
    |                   `- error: cannot find 'URLRequest' in scope
 39 |
 40 |     method.apply(to: &request)
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 |   case delete
19 |
20 |   func apply(to request: inout URLRequest) {
   |                                `- error: cannot find type 'URLRequest' in scope
21 |     switch self {
22 |     case .get:
[55/180] Compiling SwiftCLI ArgumentList.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
 35 |
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
    |                                      `- error: cannot find type 'URLRequest' in scope
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
 39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:38:19: error: cannot find 'URLRequest' in scope
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
    |                   `- error: cannot find 'URLRequest' in scope
 39 |
 40 |     method.apply(to: &request)
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 |   case delete
19 |
20 |   func apply(to request: inout URLRequest) {
   |                                `- error: cannot find type 'URLRequest' in scope
21 |     switch self {
22 |     case .get:
[56/180] Compiling SwiftCLI ArgumentListManipulator.swift
[57/180] Compiling SwiftCLI CLI.swift
[58/182] Emitting module MungoHealer
[61/182] Compiling SwiftCLI Error.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[62/182] Compiling SwiftCLI HelpCommand.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[72/182] Compiling SwiftCLI CompletionGenerator.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[82/182] Compiling Microya RequestLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:11:28: error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
11 |     logClosure: @escaping (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
12 |   ) {
13 |     self.logClosure = logClosure
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:8:28: error: cannot find type 'URLRequest' in scope
 6 | /// Allows to log requests the given way provided by a closure before the requests are sent.
 7 | public class RequestLoggerPlugin<EndpointType: Endpoint>: Plugin<EndpointType> {
 8 |   private let logClosure: (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:16:54: error: cannot find type 'URLRequest' in scope
14 |   }
15 |
16 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
17 |     logClosure(request)
18 |   }
[85/182] Compiling Rainbow Rainbow.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[86/182] Emitting module Microya
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |   /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 |   case unexpectedResponseType(response: URLResponse)
   |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 |   /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// The lower level Result structure received directly from the native `URLSession` data task calls.
 12 |   public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |   /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |   private func decodeBodyToResultType<ResultType: Decodable>(
146 |     data: Data?,
147 |     response: URLResponse?,
    |               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |     endpoint: EndpointType
149 |   ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
 35 |
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
    |                                      `- error: cannot find type 'URLRequest' in scope
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
 39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 |   case delete
19 |
20 |   func apply(to request: inout URLRequest) {
   |                                `- error: cannot find type 'URLRequest' in scope
21 |     switch self {
22 |     case .get:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:52:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |   }
51 |
52 |   func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     .init(
54 |       url: url(baseUrl: baseUrl),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/HttpAuthPlugin.swift:32:55: error: cannot find type 'URLRequest' in scope
30 |   }
31 |
32 |   override public func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) {
   |                                                       `- error: cannot find type 'URLRequest' in scope
33 |     if let token = tokenClosure() {
34 |       request.addValue("\(scheme.rawValue) \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/ProgressIndicatorPlugin.swift:24:54: error: cannot find type 'URLRequest' in scope
22 |   }
23 |
24 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 |     ongoingRequests += 1
26 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:11:28: error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
11 |     logClosure: @escaping (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
12 |   ) {
13 |     self.logClosure = logClosure
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:8:28: error: cannot find type 'URLRequest' in scope
 6 | /// Allows to log requests the given way provided by a closure before the requests are sent.
 7 | public class RequestLoggerPlugin<EndpointType: Endpoint>: Plugin<EndpointType> {
 8 |   private let logClosure: (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:16:54: error: cannot find type 'URLRequest' in scope
14 |   }
15 |
16 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
17 |     logClosure(request)
18 |   }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |   /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 |   case unexpectedResponseType(response: URLResponse)
   |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 |   /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// The lower level Result structure received directly from the native `URLSession` data task calls.
 12 |   public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |   /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |   private func decodeBodyToResultType<ResultType: Decodable>(
146 |     data: Data?,
147 |     response: URLResponse?,
    |               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |     endpoint: EndpointType
149 |   ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:59:18: error: cannot find type 'URLRequest' in scope
 57 |     completion: @escaping (TypedResult<ResultType>) -> Void
 58 |   ) {
 59 |     var request: URLRequest = endpoint.buildRequest(baseUrl: baseUrl)
    |                  `- error: cannot find type 'URLRequest' in scope
 60 |
 61 |     for plugin in plugins {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:69:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     func handleDataTaskCompletion(data: Data?, response: URLResponse?, error: Error?) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |       let urlSessionResult: URLSessionResult = (data: data, response: response, error: error)
 71 |       let typedResult: TypedResult<ResultType> = self.decodeBody(from: urlSessionResult, endpoint: endpoint)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:96:18: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |     else {
 95 |       // this is the main logic, making the actual call
 96 |       URLSession.shared.dataTask(with: request, completionHandler: handleDataTaskCompletion).resume()
    |                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |     }
 98 |   }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:108:25: error: cannot find 'DispatchGroup' in scope
106 |     decodeBodyTo bodyType: ResultType.Type
107 |   ) -> TypedResult<ResultType> {
108 |     let dispatchGroup = DispatchGroup()
    |                         `- error: cannot find 'DispatchGroup' in scope
109 |     dispatchGroup.enter()
110 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:154:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     }
153 |
154 |     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.
155 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedResponseType(response: response)
156 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:158:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 |     }
157 |
158 |     switch httpResponse.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 |     case 200..<300:
160 |       if ResultType.self == EmptyBodyResponse.self {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:165:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 |       guard let data = data else {
165 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |       }
167 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:183:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |         throw ApiError<EndpointType.ClientErrorType>
182 |           .clientError(
183 |             statusCode: httpResponse.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
184 |             clientError: nil
185 |           )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:189:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
187 |
188 |       guard let data = data else {
189 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
190 |       }
191 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:195:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 |       throw ApiError<EndpointType.ClientErrorType>
194 |         .clientError(
195 |           statusCode: httpResponse.statusCode,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 |           clientError: clientError
197 |         )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:200:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |
199 |     case 500..<600:
200 |       throw ApiError<EndpointType.ClientErrorType>.serverError(statusCode: httpResponse.statusCode)
    |                                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:203:98: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
203 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedStatusCode(statusCode: httpResponse.statusCode)
    |                                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 |     }
205 |   }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |   /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 |   case unexpectedResponseType(response: URLResponse)
   |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 |   /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// The lower level Result structure received directly from the native `URLSession` data task calls.
 12 |   public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |   /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |   private func decodeBodyToResultType<ResultType: Decodable>(
146 |     data: Data?,
147 |     response: URLResponse?,
    |               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |     endpoint: EndpointType
149 |   ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:59:18: error: cannot find type 'URLRequest' in scope
 57 |     completion: @escaping (TypedResult<ResultType>) -> Void
 58 |   ) {
 59 |     var request: URLRequest = endpoint.buildRequest(baseUrl: baseUrl)
    |                  `- error: cannot find type 'URLRequest' in scope
 60 |
 61 |     for plugin in plugins {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:69:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     func handleDataTaskCompletion(data: Data?, response: URLResponse?, error: Error?) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |       let urlSessionResult: URLSessionResult = (data: data, response: response, error: error)
 71 |       let typedResult: TypedResult<ResultType> = self.decodeBody(from: urlSessionResult, endpoint: endpoint)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:96:18: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |     else {
 95 |       // this is the main logic, making the actual call
 96 |       URLSession.shared.dataTask(with: request, completionHandler: handleDataTaskCompletion).resume()
    |                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |     }
 98 |   }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:108:25: error: cannot find 'DispatchGroup' in scope
106 |     decodeBodyTo bodyType: ResultType.Type
107 |   ) -> TypedResult<ResultType> {
108 |     let dispatchGroup = DispatchGroup()
    |                         `- error: cannot find 'DispatchGroup' in scope
109 |     dispatchGroup.enter()
110 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:154:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     }
153 |
154 |     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.
155 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedResponseType(response: response)
156 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:158:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 |     }
157 |
158 |     switch httpResponse.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 |     case 200..<300:
160 |       if ResultType.self == EmptyBodyResponse.self {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:165:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 |       guard let data = data else {
165 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |       }
167 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:183:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |         throw ApiError<EndpointType.ClientErrorType>
182 |           .clientError(
183 |             statusCode: httpResponse.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
184 |             clientError: nil
185 |           )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:189:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
187 |
188 |       guard let data = data else {
189 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
190 |       }
191 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:195:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 |       throw ApiError<EndpointType.ClientErrorType>
194 |         .clientError(
195 |           statusCode: httpResponse.statusCode,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 |           clientError: clientError
197 |         )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:200:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |
199 |     case 500..<600:
200 |       throw ApiError<EndpointType.ClientErrorType>.serverError(statusCode: httpResponse.statusCode)
    |                                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:203:98: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
203 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedStatusCode(statusCode: httpResponse.statusCode)
    |                                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 |     }
205 |   }
[89/183] Compiling SwiftCLI Path.swift
[90/183] Compiling SwiftCLI Stream.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[94/183] Compiling Microya ProgressIndicatorPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/ProgressIndicatorPlugin.swift:24:54: error: cannot find type 'URLRequest' in scope
22 |   }
23 |
24 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 |     ongoingRequests += 1
26 |
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:53: error: cannot find type 'DispatchQoS' in scope
 9 | ///   - qosClass: The global QOS class to be used or `nil` to use the main thread. Defaults to `nil`.
10 | ///   - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
   |                                                     `- error: cannot find type 'DispatchQoS' in scope
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:41: error: cannot find 'DispatchQueue' in scope
10 | ///   - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
   |                                         `- error: cannot find 'DispatchQueue' in scope
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:80: error: cannot find 'DispatchQueue' in scope
10 | ///   - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
   |                                                                                `- error: cannot find 'DispatchQueue' in scope
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:13:38: error: cannot find 'DispatchTime' in scope
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
   |                                      `- error: cannot find 'DispatchTime' in scope
14 | }
15 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': Invalid Resource 'Secrets/secrets.json': File not found.
[0/1] Planning build
Building for debugging...
[0/22] Write swift-version-24593BA9C3E375BF.txt
[2/62] Compiling Microya RequestLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:11:28: error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
11 |     logClosure: @escaping (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
12 |   ) {
13 |     self.logClosure = logClosure
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:8:28: error: cannot find type 'URLRequest' in scope
 6 | /// Allows to log requests the given way provided by a closure before the requests are sent.
 7 | public class RequestLoggerPlugin<EndpointType: Endpoint>: Plugin<EndpointType> {
 8 |   private let logClosure: (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:16:54: error: cannot find type 'URLRequest' in scope
14 |   }
15 |
16 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
17 |     logClosure(request)
18 |   }
[3/64] Compiling Microya ProgressIndicatorPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/ProgressIndicatorPlugin.swift:24:54: error: cannot find type 'URLRequest' in scope
22 |   }
23 |
24 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 |     ongoingRequests += 1
26 |
[4/156] Compiling Microya HttpAuthPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/HttpAuthPlugin.swift:32:55: error: cannot find type 'URLRequest' in scope
30 |   }
31 |
32 |   override public func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) {
   |                                                       `- error: cannot find type 'URLRequest' in scope
33 |     if let token = tokenClosure() {
34 |       request.addValue("\(scheme.rawValue) \(token)", forHTTPHeaderField: "Authorization")
[5/156] Compiling MungoHealer MungoHealableError.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
[6/156] Compiling MungoHealer BaseError.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
[7/156] Compiling MungoHealer FatalError.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:52:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |   }
51 |
52 |   func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     .init(
54 |       url: url(baseUrl: baseUrl),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:53:6: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 |
52 |   func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
53 |     .init(
   |      `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
54 |       url: url(baseUrl: baseUrl),
55 |       statusCode: statusCode,
[8/156] Compiling MungoHealer HealableError.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:52:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |   }
51 |
52 |   func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     .init(
54 |       url: url(baseUrl: baseUrl),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:53:6: error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
51 |
52 |   func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
53 |     .init(
   |      `- error: 'HTTPURLResponse' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
54 |       url: url(baseUrl: baseUrl),
55 |       statusCode: statusCode,
[9/156] Compiling MungoHealer MungoError.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
 35 |
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
    |                                      `- error: cannot find type 'URLRequest' in scope
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
 39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:38:19: error: cannot find 'URLRequest' in scope
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
    |                   `- error: cannot find 'URLRequest' in scope
 39 |
 40 |     method.apply(to: &request)
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 |   case delete
19 |
20 |   func apply(to request: inout URLRequest) {
   |                                `- error: cannot find type 'URLRequest' in scope
21 |     switch self {
22 |     case .get:
[10/156] Compiling MungoHealer MungoFatalError.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
 35 |
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
    |                                      `- error: cannot find type 'URLRequest' in scope
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
 39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:38:19: error: cannot find 'URLRequest' in scope
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
    |                   `- error: cannot find 'URLRequest' in scope
 39 |
 40 |     method.apply(to: &request)
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 |   case delete
19 |
20 |   func apply(to request: inout URLRequest) {
   |                                `- error: cannot find type 'URLRequest' in scope
21 |     switch self {
22 |     case .get:
[11/156] Compiling BartyCrouchUtility Constants.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/156] Emitting module Microya
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |   /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 |   case unexpectedResponseType(response: URLResponse)
   |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 |   /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// The lower level Result structure received directly from the native `URLSession` data task calls.
 12 |   public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |   /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |   private func decodeBodyToResultType<ResultType: Decodable>(
146 |     data: Data?,
147 |     response: URLResponse?,
    |               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |     endpoint: EndpointType
149 |   ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Endpoint.swift:37:38: error: cannot find type 'URLRequest' in scope
 35 |
 36 | extension Endpoint {
 37 |   func buildRequest(baseUrl: URL) -> URLRequest {
    |                                      `- error: cannot find type 'URLRequest' in scope
 38 |     var request = URLRequest(url: buildRequestUrl(baseUrl: baseUrl))
 39 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/HttpMethod.swift:20:32: error: cannot find type 'URLRequest' in scope
18 |   case delete
19 |
20 |   func apply(to request: inout URLRequest) {
   |                                `- error: cannot find type 'URLRequest' in scope
21 |     switch self {
22 |     case .get:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/MockedResponse.swift:52:41: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
50 |   }
51 |
52 |   func httpUrlResponse(baseUrl: URL) -> HTTPURLResponse {
   |                                         `- error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
53 |     .init(
54 |       url: url(baseUrl: baseUrl),
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/HttpAuthPlugin.swift:32:55: error: cannot find type 'URLRequest' in scope
30 |   }
31 |
32 |   override public func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) {
   |                                                       `- error: cannot find type 'URLRequest' in scope
33 |     if let token = tokenClosure() {
34 |       request.addValue("\(scheme.rawValue) \(token)", forHTTPHeaderField: "Authorization")
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/ProgressIndicatorPlugin.swift:24:54: error: cannot find type 'URLRequest' in scope
22 |   }
23 |
24 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
25 |     ongoingRequests += 1
26 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:11:28: error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
11 |     logClosure: @escaping (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
12 |   ) {
13 |     self.logClosure = logClosure
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:8:28: error: cannot find type 'URLRequest' in scope
 6 | /// Allows to log requests the given way provided by a closure before the requests are sent.
 7 | public class RequestLoggerPlugin<EndpointType: Endpoint>: Plugin<EndpointType> {
 8 |   private let logClosure: (URLRequest) -> Void
   |                            `- error: cannot find type 'URLRequest' in scope
 9 |
10 |   public init(
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Plugins/RequestLoggerPlugin.swift:16:54: error: cannot find type 'URLRequest' in scope
14 |   }
15 |
16 |   override public func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) {
   |                                                      `- error: cannot find type 'URLRequest' in scope
17 |     logClosure(request)
18 |   }
[13/156] Compiling MungoHealer AlertLogErrorHandler.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |   /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 |   case unexpectedResponseType(response: URLResponse)
   |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 |   /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// The lower level Result structure received directly from the native `URLSession` data task calls.
 12 |   public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |   /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |   private func decodeBodyToResultType<ResultType: Decodable>(
146 |     data: Data?,
147 |     response: URLResponse?,
    |               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |     endpoint: EndpointType
149 |   ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:59:18: error: cannot find type 'URLRequest' in scope
 57 |     completion: @escaping (TypedResult<ResultType>) -> Void
 58 |   ) {
 59 |     var request: URLRequest = endpoint.buildRequest(baseUrl: baseUrl)
    |                  `- error: cannot find type 'URLRequest' in scope
 60 |
 61 |     for plugin in plugins {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:69:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     func handleDataTaskCompletion(data: Data?, response: URLResponse?, error: Error?) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |       let urlSessionResult: URLSessionResult = (data: data, response: response, error: error)
 71 |       let typedResult: TypedResult<ResultType> = self.decodeBody(from: urlSessionResult, endpoint: endpoint)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:96:18: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |     else {
 95 |       // this is the main logic, making the actual call
 96 |       URLSession.shared.dataTask(with: request, completionHandler: handleDataTaskCompletion).resume()
    |                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |     }
 98 |   }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:108:25: error: cannot find 'DispatchGroup' in scope
106 |     decodeBodyTo bodyType: ResultType.Type
107 |   ) -> TypedResult<ResultType> {
108 |     let dispatchGroup = DispatchGroup()
    |                         `- error: cannot find 'DispatchGroup' in scope
109 |     dispatchGroup.enter()
110 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:154:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     }
153 |
154 |     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.
155 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedResponseType(response: response)
156 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:158:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 |     }
157 |
158 |     switch httpResponse.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 |     case 200..<300:
160 |       if ResultType.self == EmptyBodyResponse.self {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:165:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 |       guard let data = data else {
165 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |       }
167 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:183:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |         throw ApiError<EndpointType.ClientErrorType>
182 |           .clientError(
183 |             statusCode: httpResponse.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
184 |             clientError: nil
185 |           )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:189:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
187 |
188 |       guard let data = data else {
189 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
190 |       }
191 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:195:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 |       throw ApiError<EndpointType.ClientErrorType>
194 |         .clientError(
195 |           statusCode: httpResponse.statusCode,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 |           clientError: clientError
197 |         )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:200:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |
199 |     case 500..<600:
200 |       throw ApiError<EndpointType.ClientErrorType>.serverError(statusCode: httpResponse.statusCode)
    |                                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:203:98: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
203 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedStatusCode(statusCode: httpResponse.statusCode)
    |                                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 |     }
205 |   }
[14/156] Compiling MungoHealer ErrorHandler.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiError.swift:27:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
25 |
26 |   /// Server responded with a non HTTP response, although an HTTP request was made. Either a bug in `JsonApi` or on the server side.
27 |   case unexpectedResponseType(response: URLResponse)
   |                                         `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
28 |
29 |   /// The `mockingBehavior` was set to non-nil (for testing) but no `mockedResponse` was provided for the requested endpoint.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:12:63: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 10 |
 11 |   /// The lower level Result structure received directly from the native `URLSession` data task calls.
 12 |   public typealias URLSessionResult = (data: Data?, response: URLResponse?, error: Error?)
    |                                                               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 13 |
 14 |   /// The plugins to apply per request.
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:147:15: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
145 |   private func decodeBodyToResultType<ResultType: Decodable>(
146 |     data: Data?,
147 |     response: URLResponse?,
    |               `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
148 |     endpoint: EndpointType
149 |   ) throws -> ResultType {
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:59:18: error: cannot find type 'URLRequest' in scope
 57 |     completion: @escaping (TypedResult<ResultType>) -> Void
 58 |   ) {
 59 |     var request: URLRequest = endpoint.buildRequest(baseUrl: baseUrl)
    |                  `- error: cannot find type 'URLRequest' in scope
 60 |
 61 |     for plugin in plugins {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:69:58: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 67 |     }
 68 |
 69 |     func handleDataTaskCompletion(data: Data?, response: URLResponse?, error: Error?) {
    |                                                          `- error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
 70 |       let urlSessionResult: URLSessionResult = (data: data, response: response, error: error)
 71 |       let typedResult: TypedResult<ResultType> = self.decodeBody(from: urlSessionResult, endpoint: endpoint)
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLResponse = AnyObject
  |                  `- note: 'URLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:96:18: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 94 |     else {
 95 |       // this is the main logic, making the actual call
 96 |       URLSession.shared.dataTask(with: request, completionHandler: handleDataTaskCompletion).resume()
    |                  `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
 97 |     }
 98 |   }
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:108:25: error: cannot find 'DispatchGroup' in scope
106 |     decodeBodyTo bodyType: ResultType.Type
107 |   ) -> TypedResult<ResultType> {
108 |     let dispatchGroup = DispatchGroup()
    |                         `- error: cannot find 'DispatchGroup' in scope
109 |     dispatchGroup.enter()
110 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:154:43: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
152 |     }
153 |
154 |     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.
155 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedResponseType(response: response)
156 |     }
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias HTTPURLResponse = AnyObject
  |                  `- note: 'HTTPURLResponse' has been explicitly marked unavailable here
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:158:25: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
156 |     }
157 |
158 |     switch httpResponse.statusCode {
    |                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
159 |     case 200..<300:
160 |       if ResultType.self == EmptyBodyResponse.self {
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:165:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
163 |
164 |       guard let data = data else {
165 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
166 |       }
167 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:183:38: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
181 |         throw ApiError<EndpointType.ClientErrorType>
182 |           .clientError(
183 |             statusCode: httpResponse.statusCode,
    |                                      `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
184 |             clientError: nil
185 |           )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:189:96: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
187 |
188 |       guard let data = data else {
189 |         throw ApiError<EndpointType.ClientErrorType>.noDataInResponse(statusCode: httpResponse.statusCode)
    |                                                                                                `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
190 |       }
191 |
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:195:36: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
193 |       throw ApiError<EndpointType.ClientErrorType>
194 |         .clientError(
195 |           statusCode: httpResponse.statusCode,
    |                                    `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
196 |           clientError: clientError
197 |         )
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:200:89: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
198 |
199 |     case 500..<600:
200 |       throw ApiError<EndpointType.ClientErrorType>.serverError(statusCode: httpResponse.statusCode)
    |                                                                                         `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/ApiProvider.swift:203:98: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
201 |
202 |     default:
203 |       throw ApiError<EndpointType.ClientErrorType>.unexpectedStatusCode(statusCode: httpResponse.statusCode)
    |                                                                                                  `- error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
204 |     }
205 |   }
[15/156] Compiling BartyCrouchUtility Transformer.swift
[16/156] Emitting module BartyCrouchUtility
[17/156] Compiling BartyCrouchUtility Secret.swift
[19/157] Compiling Microya ResponseLoggerPlugin.swift
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:17:44: error: cannot find type 'URLRequest' in scope
15 |
16 |   /// Called to modify a request before sending.
17 |   open func modifyRequest(_ request: inout URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                            `- error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
/host/spi-builder-workspace/.build/checkouts/Microya/Sources/Microya/Core/Plugin.swift:20:43: error: cannot find type 'URLRequest' in scope
18 |
19 |   /// Called immediately before a request is sent.
20 |   open func willPerformRequest(_ request: URLRequest, endpoint: EndpointType) { /* no-op */  }
   |                                           `- error: cannot find type 'URLRequest' in scope
21 |
22 |   /// Called after a response has been received & decoded, but before calling the completion handler.
[20/157] Compiling HandySwift SortedArray.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[21/157] Compiling SwiftSyntax SyntaxText.swift
/host/spi-builder-workspace/.build/checkouts/SwiftCLI/Sources/SwiftCLI/CLI.swift:12:12: error: no such module 'Darwin'
 10 |     import Glibc
 11 | #else
 12 |     import Darwin
    |            `- error: no such module 'Darwin'
 13 | #endif
 14 |
[22/159] Compiling Rainbow Style.swift
[23/160] Compiling Toml Tokens.swift
[26/161] Emitting module Toml
[29/161] Compiling MungoHealer StringExt.swift
[30/161] Compiling MungoHealer UIWindowExt.swift
[33/162] Emitting module MungoHealer
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:11:53: error: cannot find type 'DispatchQoS' in scope
 9 | ///   - qosClass: The global QOS class to be used or `nil` to use the main thread. Defaults to `nil`.
10 | ///   - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
   |                                                     `- error: cannot find type 'DispatchQoS' in scope
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:41: error: cannot find 'DispatchQueue' in scope
10 | ///   - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
   |                                         `- error: cannot find 'DispatchQueue' in scope
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:12:80: error: cannot find 'DispatchQueue' in scope
10 | ///   - closure: The code to run with a delay.
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
   |                                                                                `- error: cannot find 'DispatchQueue' in scope
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
14 | }
/host/spi-builder-workspace/.build/checkouts/HandySwift/Sources/HandySwift/Globals.swift:13:38: error: cannot find 'DispatchTime' in scope
11 | public func delay(by delayTime: Timespan, qosClass: DispatchQoS.QoSClass? = nil, _ closure: @escaping () -> Void) {
12 |   let dispatchQueue = qosClass != nil ? DispatchQueue.global(qos: qosClass!) : DispatchQueue.main
13 |   dispatchQueue.asyncAfter(deadline: DispatchTime.now() + delayTime, execute: closure)
   |                                      `- error: cannot find 'DispatchTime' in scope
14 | }
15 |
BUILD FAILURE 6.1 wasm