The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build BartyCrouch, reference main (aabff7), with Swift 6.1 for Wasm on 28 May 2025 19:10:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlineDev/BartyCrouch.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/FlineDev/BartyCrouch
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at aabff74 Update README.md
Cloned https://github.com/FlineDev/BartyCrouch.git
Revision (git rev-parse @):
aabff74ecce1d4f893b2fccd5028d866e2100ebd
SUCCESS checkout https://github.com/FlineDev/BartyCrouch.git at main
========================================
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-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/Flinesoft/Microya.git
[1/824] Fetching microya
Fetched https://github.com/Flinesoft/Microya.git from cache (0.24s)
Fetching https://github.com/jdfergason/swift-toml.git
[1/582] Fetching swift-toml
Fetched https://github.com/jdfergason/swift-toml.git from cache (0.30s)
Fetching https://github.com/pointfreeco/swift-custom-dump.git
Fetching https://github.com/Flinesoft/HandySwift.git
Fetching https://github.com/Flinesoft/MungoHealer.git
Fetching https://github.com/jakeheis/SwiftCLI.git
Fetching https://github.com/onevcat/Rainbow.git
Fetching https://github.com/apple/swift-syntax.git
[1/5074] Fetching swiftcli
[357/9655] Fetching swiftcli, swift-custom-dump
[3911/13023] Fetching swiftcli, swift-custom-dump, handyswift
[8450/14219] Fetching swiftcli, swift-custom-dump, handyswift, rainbow
[11773/14667] Fetching swiftcli, swift-custom-dump, handyswift, rainbow, mungohealer
Fetched https://github.com/pointfreeco/swift-custom-dump.git from cache (0.36s)
[9480/10086] Fetching swiftcli, handyswift, rainbow, mungohealer
Fetched https://github.com/Flinesoft/MungoHealer.git from cache (0.41s)
Fetched https://github.com/Flinesoft/HandySwift.git from cache (0.44s)
[1/70449] Fetching swift-syntax
Fetched https://github.com/onevcat/Rainbow.git from cache (5.34s)
Fetched https://github.com/jakeheis/SwiftCLI.git from cache (5.34s)
Fetched https://github.com/apple/swift-syntax.git from cache (5.39s)
Computing version for https://github.com/jakeheis/SwiftCLI.git
Computed https://github.com/jakeheis/SwiftCLI.git at 6.0.3 (5.89s)
Computing version for https://github.com/Flinesoft/MungoHealer.git
Computed https://github.com/Flinesoft/MungoHealer.git at 0.3.4 (0.50s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 508.0.1 (0.61s)
Computing version for https://github.com/onevcat/Rainbow.git
Computed https://github.com/onevcat/Rainbow.git at 3.2.0 (1.93s)
Computing version for https://github.com/Flinesoft/HandySwift.git
Computed https://github.com/Flinesoft/HandySwift.git at 3.4.0 (0.47s)
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.56s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5458] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.62s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 0.9.0 (1.31s)
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/Flinesoft/MungoHealer.git
Working copy of https://github.com/Flinesoft/MungoHealer.git resolved at 0.3.4
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/onevcat/Rainbow.git
Working copy of https://github.com/onevcat/Rainbow.git resolved at 3.2.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/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/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/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 508.0.1
warning: 'spi-builder-workspace': Invalid Resource 'Secrets/secrets.json': File not found.
Building for debugging...
[0/40] Write sources
[0/40] Copying Localizable.strings
[0/40] Write sources
[0/40] Copying Info.plist
[0/40] Write sources
[18/40] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/173] 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 |
[21/175] Compiling SwiftCLI ValueBox.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/175] 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 |
[23/175] Compiling Rainbow Style.swift
[24/176] Compiling Rainbow StringGenerator.swift
[25/176] Compiling Rainbow String+Rainbow.swift
[26/176] Compiling Rainbow XcodeColorsSupport.swift
[27/176] Compiling BartyCrouchUtility Transformer.swift
[28/176] Compiling Toml Tokens.swift
[29/177] Emitting module MungoHealer
[30/177] Compiling HandySwift DataExt.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/177] Compiling HandySwift DictionaryExt.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/177] Compiling HandySwift DispatchTimeIntervalExt.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 |
[33/178] 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")
/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/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.
[37/178] Compiling HandySwift ArrayExt.swift
[38/179] Compiling Toml Serialize.swift
[39/179] Compiling HandySwift DoubleExt.swift
[40/179] Compiling HandySwift IntExt.swift
[41/179] Compiling Toml String.swift
[43/179] Compiling HandySwift CollectionExt.swift
[44/179] Compiling HandySwift ComparableExt.swift
[45/181] Compiling Rainbow Rainbow.swift
/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/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/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 {
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/181] 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)
[50/181] 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 |
[53/181] Emitting module Toml
[54/181] 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 |
[55/181] Compiling HandySwift Unowned.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 |
[58/181] 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 |   }
[59/181] Compiling HandySwift Regex.swift
[61/181] Compiling HandySwift Withable.swift
[62/181] Compiling HandySwift FrequencyTable.swift
[67/181] Emitting module Rainbow
[72/182] Compiling HandySwift TimeIntervalExt.swift
[73/182] Compiling HandySwift Globals.swift
[76/182] Compiling HandySwift NSRangeExt.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 |
[77/182] Compiling HandySwift StringExt.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 |
[78/182] Compiling HandySwift StringProtocolExt.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 |
[82/182] Compiling HandySwift NSObjectExt.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 |
[98/182] Compiling HandySwift DivisibleArithmetic.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 |
[99/182] 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.
[100/182] Emitting module BartyCrouchUtility
[101/182] Compiling BartyCrouchUtility Constants.swift
[102/182] Compiling BartyCrouchUtility Secret.swift
/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 |
/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 |
/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 |
/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:
/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:
/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 |   }
error: emit-module command failed with exit code 1 (use -v to see invocation)
[116/183] 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/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,
/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,
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
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/151] 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/156] 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 BartyCrouchUtility Constants.swift
[5/156] Compiling BartyCrouchUtility Secret.swift
[6/156] Compiling BartyCrouchUtility Transformer.swift
[7/156] Compiling Rainbow Style.swift
[8/157] 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")
[9/157] Compiling MungoHealer Globals.swift
[10/157] Compiling MungoHealer ErrorSource.swift
[11/157] Compiling MungoHealer HealingOption.swift
[12/157] Compiling MungoHealer MungoHealer.swift
[13/157] Compiling Toml Tokens.swift
[14/159] Compiling Microya Plugin.swift
[15/159] Compiling Microya QueryParameterValue.swift
[16/159] Compiling MungoHealer StringExt.swift
[17/159] Compiling MungoHealer UIWindowExt.swift
[18/159] Compiling Microya HttpMethod.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 |
[19/159] Compiling Microya HttpStatus.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 |
[20/159] Compiling Microya MockedResponse.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/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/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.
[23/161] Emitting module Rainbow
[24/161] Compiling Microya ApiError.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 |   }
[25/161] Compiling Microya ApiProvider.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 |   }
[28/161] Compiling Microya Endpoint.swift
[30/161] Compiling SwiftCLI Term.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/161] Compiling SwiftCLI Validation.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/161] Compiling Rainbow StringGenerator.swift
/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 |
/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 |
/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 |
/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:
/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:
/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,
/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,
[46/163] Emitting module MungoHealer
error: emit-module command failed with exit code 1 (use -v to see invocation)
[47/163] 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 |   }
[50/163] Compiling MungoHealer resource_bundle_accessor.swift
/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/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/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 {
[57/164] 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.
[58/164] Compiling HandySwift Unowned.swift
[59/164] Compiling HandySwift Weak.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[60/164] 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 |
/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 |
[64/164] Emitting module BartyCrouchUtility
error: emit-module command failed with exit code 1 (use -v to see invocation)
[65/165] 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)
[71/165] Compiling Rainbow XcodeColorsSupport.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 |
[73/165] 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 |
[74/165] Compiling Rainbow String+Rainbow.swift
[75/165] Compiling Rainbow Rainbow.swift
[78/165] Compiling Toml Serialize.swift
[79/165] Compiling Toml String.swift
[80/165] Compiling Toml Toml.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 |
[84/165] Compiling SwiftCLI ArgumentList.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 |
[85/165] Compiling SwiftCLI ArgumentListManipulator.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 |
[86/165] Compiling SwiftCLI CLI.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 |
[89/165] 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 |
/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 |
[99/166] Emitting module Toml
[108/167] Wrapping AST for BartyCrouchUtility for debugging
[108/167] Wrapping AST for MungoHealer for debugging
BUILD FAILURE 6.1 wasm